ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/CMSSW/Alignment/CommonAlignmentAlgorithm/interface/AlignmentParametersIORoot.h
Revision: 1.4
Committed: Fri Mar 16 16:35:03 2007 UTC (18 years, 1 month ago) by flucke
Content type: text/plain
Branch: MAIN
CVS Tags: CMSSW_1_6_12, CMSSW_1_6_12_pre2, CMSSW_1_6_12_pre1, CMSSW_1_6_11, CMSSW_1_7_7, CMSSW_1_6_11_pre1, CMSSW_1_7_6, CMSSW_1_6_10, CMSSW_1_6_10_pre2, CMSSW_1_6_10_pre1, CMSSW_1_6_9, CMSSW_1_6_9_pre2, CMSSW_1_6_9_pre1, CMSSW_1_7_5, CMSSW_1_7_4, CMSSW_1_7_3, CMSSW_1_6_8, CMSSW_1_6_8_pre2, CMSSW_1_7_2, CMSSW_1_6_8_pre1, CMSSW_1_7_1, CMSSW_1_7_0, CMSSW_1_7_0_pre13, CMSSW_1_4_10, CMSSW_1_7_0_pre12, CMSSW_1_7_0_pre11, CMSSW_1_7_0_pre10, CMSSW_1_7_0_pre9, CMSSW_1_7_0_pre8, CMSSW_1_7_0_pre7, CMSSW_1_4_9, CMSSW_1_4_8, CMSSW_1_6_7, CMSSW_1_7_0_pre6, CMSSW_1_6_6, CMSSW_1_6_5, CMSSW_1_6_5_pre1, CMSSW_1_6_4, CMSSW_1_7_0_pre5, CMSSW_1_6_3, CMSSW_1_6_1, CMSSW_1_7_0_pre4, V01-04-00-08, CMSSW_1_7_0_pre3, CMSSW_1_7_0_pre2, CMSSW_1_6_0, CMSSW_1_6_0_pre14, CMSSW_1_7_0_pre1, CMSSW_1_6_0_DAQ3, CMSSW_1_6_0_pre13, CMSSW_1_6_0_pre12, CMSSW_1_6_0_pre11, CMSSW_1_6_0_pre10, CMSSW_1_4_7, CMSSW_1_6_0_pre9, CMSSW_1_6_0_pre8, CMSSW_1_5_4, CMSSW_1_6_0_pre7, CMSSW_1_5_3, CMSSW_1_6_0_pre6, CMSSW_1_4_6, CMSSW_1_6_0_DAQ1, CMSSW_1_6_0_pre5, V01-04-00-07, V01-09-00, V01-04-00-06, CMSSW_1_6_0_pre4, CMSSW_1_5_2, CMSSW_1_6_0_pre3, CMSSW_1_6_0_pre2, CMSSW_1_6_0_pre1, CMSSW_1_5_1, CMSSW_1_4_5, CMSSW_1_5_0, V01-08-01, V01-04-00-05, CMSSW_1_4_3g483, CMSSW_1_4_4, CMSSW_1_5_0_pre6, CMSSW_1_4_3, V01-04-00-03, V01-08-00, CMSSW_1_5_0_pre5, CMSSW_1_4_2, CMSSW_1_4_1, CMSSW_1_5_0_pre4, V01-07-04, CMSSW_1_5_0_pre3, V01-07-03, V01-07-02, CMSSW_1_4_0_DAQ1, V01-06-01, V01-07-01, V01-04-00-02, CMSSW_1_4_0, CMSSW_1_5_0_pre2, CMSSW_1_4_0_pre7, CMSSW_1_4_0_pre6, CMSSW_1_4_0_pre5, V01-07-00, V01-04-00-01, CMSSW_1_5_0_pre1, CMSSW_1_4_0_pre4, V01-06-00, V01-05-00, V01-04-01, CMSSW_1_4_0_pre3, V01-04-00, V01-03-01, V01-03-00
Branch point for: V01-04-00-04
Changes since 1.3: +3 -3 lines
Log Message:
write hierarchy level of parameters

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 flucke 1.4 /// $Date: 2006/11/30 09:56:03 $
9     /// $Revision: 1.3 $
10 flucke 1.3 /// (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 flucke 1.4 int theObjId, theCovRang, theCovarRang, theHieraLevel;
53 fronga 1.1 unsigned int theId;
54     double thePar[nParMax],theCov[nParMax*(nParMax+1)/2];
55    
56     };
57    
58     #endif