CMS 3D CMS Logo

AlignmentParametersIORoot.h
Go to the documentation of this file.
1 #ifndef Alignment_CommonAlignmentAlgorithm_AlignmentParametersIORoot_h
2 #define Alignment_CommonAlignmentAlgorithm_AlignmentParametersIORoot_h
3 
11 
15 
17  friend class AlignmentIORoot;
18 
19 private:
22 
24  int writeOne(Alignable* ali) override;
25 
27  AlignmentParameters* readOne(Alignable* ali, int& ierr) override;
28 
30  int open(const char* filename, int iteration, bool writemode) override {
31  return openRoot(filename, iteration, writemode);
32  };
33 
35  int close(void) override;
36 
37  // helper functions
38 
42 
44  void createBranches(void) override;
45 
47  void setBranchAddresses(void) override;
48 
49  // Alignment parameter tree
53 
54  double thePar[nParMax], theCov[nParMax * (nParMax + 1) / 2];
55 };
56 
57 #endif
int open(const char *filename, int iteration, bool writemode) override
Open IO.
static const int nParMax
uint32_t ID
Definition: Definitions.h:26
int writeOne(Alignable *ali) override
Write AlignmentParameters of one Alignable.
Base class for ROOT-based I/O of Alignment parameters etc.
double theCov[nParMax *(nParMax+1)/2]
void createBranches(void) override
Create all branches and give names.
int findEntry(align::ID, align::StructureType)
void setBranchAddresses(void) override
Set branch adresses.
int openRoot(const char *filename, int iteration, bool writemode)
open IO
int close(void) override
Close IO.
AlignmentParameters * readOne(Alignable *ali, int &ierr) override
Read AlignmentParameters of one Alignable.