ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/CMSSW/Alignment/CommonAlignmentAlgorithm/interface/AlignmentParametersIORoot.h
Revision: 1.2
Committed: Mon Nov 13 08:40:12 2006 UTC (18 years, 5 months ago) by flucke
Content type: text/plain
Branch: MAIN
CVS Tags: CMSSW_1_2_6, CMSSW_1_2_5, CMSSW_1_2_4, CMSSW_1_2_0_4821, CMSSW_1_2_0_g4_82p01, CMSSW_1_2_3, CMSSW_1_2_0_g4_82, CMSSW_1_2_2, CMSSW_1_2_1, CMSSW_1_2_0_g4_81, CMSSW_1_2_0_SL4, CMSSW_1_2_0, CMSSW_1_2_0_pre9, CMSSW_1_2_0_pre8_g4_81, CMSSW_1_2_0_pre8, V00-07-03, CMSSW_1_2_0_pre6, CMSSW_1_2_0_pre5, V00-07-02
Changes since 1.1: +2 -3 lines
Log Message:
- many const char* instead of char* as argument
- some few class arguments by const reference

File Contents

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