Revision: | 1.5 |
Committed: | Mon Oct 8 14:38:15 2007 UTC (17 years, 7 months ago) by cklae |
Content type: | text/plain |
Branch: | MAIN |
CVS Tags: | CMSSW_2_2_13_offpatch1, CMSSW_2_2_13_HLT, CMSSW_2_2_13, CMSSW_2_2_12_HLT, CMSSW_2_2_12, CMSSW_2_2_11_offpatch1, CMSSW_2_2_11, CMSSW_2_2_11_HLT, CMSSW_2_2_10_HLT, CMSSW_2_2_10, CMSSW_2_2_9, CMSSW_2_1_19, CMSSW_2_2_8, CMSSW_2_2_7, CMSSW_2_2_6_HLT, CMSSW_2_2_6, CMSSW_2_2_5, CMSSW_2_2_4, CMSSW_2_2_3, CMSSW_2_2_2, CMSSW_2_2_1, CMSSW_2_2_0, CMSSW_2_1_17, CMSSW_3_0_0_pre2, CMSSW_2_2_0_pre1, CMSSW_2_1_12, CMSSW_3_0_0_pre1, CMSSW_2_1_11, CMSSW_2_1_10_patch2, CMSSW_2_1_10_patch1, CMSSW_2_1_10, CMSSW_2_1_9, CMSSW_2_1_8, CMSSW_2_1_7, CMSSW_2_1_6, CMSSW_2_1_5, CMSSW_2_1_4, CMSSW_2_1_3, CMSSW_2_1_2, CMSSW_2_1_1, CMSSW_2_1_0, CMSSW_2_0_12, CMSSW_2_1_0_pre11, CMSSW_2_1_0_pre10, CMSSW_2_1_0_pre9, CMSSW_2_1_0_pre8, CMSSW_2_0_11, CMSSW_2_1_0_pre7, CMSSW_2_0_10, CMSSW_2_1_0_pre6, CMSSW_2_0_9, CMSSW_2_1_0_pre5, CMSSW_2_0_8, CMSSW_2_1_0_pre4, CMSSW_2_0_7, CMSSW_2_0_6, CMSSW_2_0_5, CMSSW_2_1_0_pre3, V02-02-05, CMSSW_2_0_4, CMSSW_2_0_3, V02-02-04, CMSSW_2_0_2, CMSSW_2_0_1, CMSSW_2_1_0_pre2, V02-02-03, CMSSW_2_0_0, CMSSW_2_1_0_pre1, CMSSW_1_8_4, CMSSW_2_0_0_pre9, CMSSW_2_0_0_pre8, V02-02-02, CMSSW_1_8_3, CMSSW_2_0_0_pre7, CMSSW_1_8_2, CMSSW_2_0_0_pre6, CMSSW_2_0_0_pre5, CMSSW_1_8_1, CMSSW_2_0_0_pre4, CMSSW_1_8_0, CMSSW_2_0_0_pre3, CMSSW_1_8_0_pre10, CMSSW_1_8_0_pre9, V02-02-01, V02-02-00, V02-01-02, V02-00-02-01, V02-01-01, V02-01-00, CMSSW_2_0_0_pre2, CMSSW_2_0_0_pre1, CMSSW_1_8_0_pre8, CMSSW_1_8_0_pre7, CMSSW_1_8_0_pre6, CMSSW_1_8_0_pre5, CMSSW_1_8_0_pre4, V02-00-02, CMSSW_1_8_0_pre3a, CMSSW_1_8_0_pre2, V02-00-01, CMSSW_1_8_0_pre1, V02-00-00 |
Branch point for: | NewHierarchy165 |
Changes since 1.4: | +10 -9 lines |
Log Message: | Changes wrt CommmonAlignment and TrackerAlignment (use align::ID and StructureType). Clean up header files. |
# | 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 | cklae | 1.5 | /// $Date: 2007/03/16 16:35:03 $ |
9 | /// $Revision: 1.4 $ | ||
10 | flucke | 1.3 | /// (last update by $Author: flucke $) |
11 | fronga | 1.1 | |
12 | cklae | 1.5 | #include "Alignment/CommonAlignment/interface/StructureType.h" |
13 | fronga | 1.1 | #include "Alignment/CommonAlignmentAlgorithm/interface/AlignmentIORootBase.h" |
14 | #include "Alignment/CommonAlignmentAlgorithm/interface/AlignmentParametersIO.h" | ||
15 | |||
16 | flucke | 1.2 | class AlignmentParametersIORoot : public AlignmentIORootBase, public AlignmentParametersIO |
17 | fronga | 1.1 | { |
18 | friend class AlignmentIORoot; | ||
19 | |||
20 | private: | ||
21 | |||
22 | /// Constructor | ||
23 | AlignmentParametersIORoot(); | ||
24 | |||
25 | /// Write AlignmentParameters of one Alignable | ||
26 | int writeOne(Alignable* ali); | ||
27 | |||
28 | /// Read AlignmentParameters of one Alignable | ||
29 | AlignmentParameters* readOne(Alignable* ali, int& ierr); | ||
30 | |||
31 | /// Open IO | ||
32 | flucke | 1.2 | int open(const char* filename, int iteration, bool writemode) |
33 | fronga | 1.1 | {return openRoot(filename,iteration,writemode);}; |
34 | |||
35 | /// Close IO | ||
36 | int close(void) {return closeRoot();}; | ||
37 | |||
38 | // helper functions | ||
39 | |||
40 | cklae | 1.5 | /// Find entry number corresponding to ID and structure type. |
41 | /// Returns -1 on failure. | ||
42 | int findEntry(align::ID, align::StructureType); | ||
43 | fronga | 1.1 | |
44 | /// Create all branches and give names | ||
45 | void createBranches(void); | ||
46 | |||
47 | /// Set branch adresses | ||
48 | void setBranchAddresses(void); | ||
49 | |||
50 | // Alignment parameter tree | ||
51 | cklae | 1.5 | int theCovRang, theCovarRang, theHieraLevel; |
52 | align::ID theId; | ||
53 | align::StructureType theObjId; | ||
54 | |||
55 | fronga | 1.1 | double thePar[nParMax],theCov[nParMax*(nParMax+1)/2]; |
56 | |||
57 | }; | ||
58 | |||
59 | #endif |