ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/CMSSW/Alignment/CommonAlignmentAlgorithm/interface/AlignableDataIORoot.h
Revision: 1.2
Committed: Mon Aug 14 17:28:01 2006 UTC (18 years, 8 months ago) by fpschill
Content type: text/plain
Branch: MAIN
CVS Tags: CMSSW_1_1_2, CMSSW_1_2_0_pre7, V00-07-01, V00-07-00, V00-06-00, CMSSW_1_2_0_pre4, V00-05-00, CMSSW_1_1_1, CMSSW_1_2_0_pre3, V00-04-00, CMSSW_1_0_6, V00-03-00, CMSSW_1_2_0_pre2, CMSSW_1_0_5, CMSSW_1_1_0, CMSSW_1_2_0_pre1, CMSSW_1_0_4, CMSSW_1_1_0_pre4, CMSSW_1_0_3, CMSSW_1_0_0_g4_81, CMSSW_1_1_0_pre3, CMSSW_1_0_2, CMSSW_1_0_1, CMSSW_1_1_0_pre2, CMSSW_1_0_0, CMSSW_1_0_0_pre5, CMSSW_1_1_0_pre1, CMSSW_1_0_0_pre4, CMSSW_1_0_0_pre3, CMSSW_1_0_0_pre2, V00-02-00
Changes since 1.1: +2 -1 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 fronga 1.1 #ifndef Alignment_CommonAlignmentAlgorithm_AlignableDataIORoot_h
2     #define Alignment_CommonAlignmentAlgorithm_AlignableDataIORoot_h
3    
4     #include <map>
5    
6     #include "TTree.h"
7    
8     #include "Alignment/CommonAlignmentAlgorithm/interface/AlignableDataIO.h"
9     #include "Alignment/CommonAlignmentAlgorithm/interface/AlignmentIORootBase.h"
10     #include "Alignment/CommonAlignmentAlgorithm/interface/AlignableData.h"
11     #include "Alignment/CommonAlignment/interface/Alignable.h"
12    
13     /// concrete class for ROOT based IO of Alignable positions
14    
15     class AlignableDataIORoot : public AlignmentIORootBase,
16     public AlignableDataIO
17     {
18    
19     friend class AlignmentIORoot;
20    
21     private:
22     /// constructor
23     AlignableDataIORoot(PosType p);
24    
25     /// open IO
26     int open(char* filename, int iteration, bool writemode)
27     { newopen=true; return openRoot(filename,iteration,writemode); }
28    
29     /// close IO
30     int close(void){ return closeRoot(); }
31    
32     /// write absolute positions
33     int writeAbsRaw(AlignableAbsData ad);
34     /// read absolute positions
35     AlignableAbsData readAbsRaw(Alignable* ali,int& ierr);
36     /// write relative positions
37     int writeRelRaw(AlignableRelData ad);
38     /// read relative positions
39     AlignableRelData readRelRaw(Alignable* ali,int& ierr);
40    
41     int findEntry(unsigned int detId,int comp);
42     void createBranches(void);
43     void setBranchAddresses(void);
44    
45     // data members
46    
47     /// root tree contents
48     int ObjId;
49 fpschill 1.2 //unsigned int Id;
50     int Id;
51 fronga 1.1 double Pos[3];
52     double Rot[9];
53    
54     bool newopen;
55     typedef std::map< std::pair<int,int> , int > treemaptype;
56     treemaptype treemap;
57    
58     };
59    
60    
61    
62     #endif