CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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:24
int writeOne(Alignable *ali) override
Write AlignmentParameters of one Alignable.
Base class for ROOT-based I/O of Alignment parameters etc.
tuple iteration
Definition: align_cfg.py:5
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
tuple filename
Definition: lut2db_cfg.py:20
int close(void) override
Close IO.
AlignmentParameters * readOne(Alignable *ali, int &ierr) override
Read AlignmentParameters of one Alignable.