ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/CMSSW/Alignment/CommonAlignmentAlgorithm/interface/AlignmentParametersIORoot.h
Revision: 1.3
Committed: Thu Nov 30 09:56:03 2006 UTC (18 years, 5 months ago) by flucke
Content type: text/plain
Branch: MAIN
CVS Tags: CMSSW_1_3_6, CMSSW_1_3_1_HLT6, CMSSW_1_3_5, CMSSW_1_3_1_HLT5, CMSSW_1_3_1_HLT4, CMSSW_1_3_1_HLT3, CMSSW_1_3_4, CMSSW_1_3_3, CMSSW_1_3_2, CMSSW_1_3_1, CMSSW_1_4_0_pre2, CMSSW_1_3_0, CMSSW_1_3_0_pre7, CMSSW_1_4_0_pre1, CMSSW_1_3_0_pre6, cklae_20070314, V01-02-00, V01-01-04, CMSSW_1_3_0_pre5, CMSSW_1_3_0_pre4, V01-01-03, CMSSW_1_3_0_pre3, V01-01-02, CMSSW_1_3_0_SLC4_pre2, CMSSW_1_3_0_pre2, V01-01-01, V01-01-00, CMSSW_1_3_0_SLC4_pre1, CMSSW_1_3_0_pre1, V01-00-00, V00-08-01, V00-08-00
Changes since 1.2: +9 -10 lines
Log Message:
- add mehtods to write original rigid-body (mis-)placement parameters
- cleaning of includes/docu/messaging

File Contents

# User Rev Content
1 fronga 1.1 #ifndef Alignment_CommonAlignmentAlgorithm_AlignmentParametersIORoot_h
2     #define Alignment_CommonAlignmentAlgorithm_AlignmentParametersIORoot_h
3    
4 flucke 1.3 /// \class AlignmentParametersIORoot
5     ///
6     /// Concrete class for ROOT-based I/O of AlignmentParameters
7     ///
8     /// $Date: 2006/10/19 14:20:59 $
9     /// $Revision: 1.2 $
10     /// (last update by $Author: flucke $)
11 fronga 1.1
12     #include "Alignment/CommonAlignmentAlgorithm/interface/AlignmentIORootBase.h"
13     #include "Alignment/CommonAlignmentAlgorithm/interface/AlignmentParametersIO.h"
14    
15 flucke 1.3 class Alignable;
16     class AlignmentParameters;
17 fronga 1.1
18 flucke 1.2 class AlignmentParametersIORoot : public AlignmentIORootBase, public AlignmentParametersIO
19 fronga 1.1 {
20     friend class AlignmentIORoot;
21    
22     private:
23    
24     /// Constructor
25     AlignmentParametersIORoot();
26    
27     /// Write AlignmentParameters of one Alignable
28     int writeOne(Alignable* ali);
29    
30     /// Read AlignmentParameters of one Alignable
31     AlignmentParameters* readOne(Alignable* ali, int& ierr);
32    
33     /// Open IO
34 flucke 1.2 int open(const char* filename, int iteration, bool writemode)
35 fronga 1.1 {return openRoot(filename,iteration,writemode);};
36    
37     /// Close IO
38     int close(void) {return closeRoot();};
39    
40     // helper functions
41    
42     /// Find entry number corresponding to Id. Returns -1 on failure.
43     int findEntry(unsigned int detId,int comp);
44    
45     /// Create all branches and give names
46     void createBranches(void);
47    
48     /// Set branch adresses
49     void setBranchAddresses(void);
50    
51     // Alignment parameter tree
52     int theObjId, theCovRang, theCovarRang;
53     unsigned int theId;
54     double thePar[nParMax],theCov[nParMax*(nParMax+1)/2];
55    
56     };
57    
58     #endif