CMS 3D CMS Logo

NtupleManager.h
Go to the documentation of this file.
1 // COCOA class header file
2 //Id: NtupleManager.h
3 //CAT: Analysis
4 //
5 // History: v1.0
6 // Luca Scodellaro
7 
8 #ifndef _NtupleManager_HH
9 #define _NtupleManager_HH
10 
14 #include "CLHEP/Vector/Rotation.h"
15 
16 class TFile;
17 class TTree;
18 class TClonesArray;
19 
21 public:
22  //---------- Constructors / Destructor
25  static NtupleManager* getInstance();
26  void BookNtuple();
27  void InitNtuple();
28  void FillNtupleTree();
29  void WriteNtuple();
30  void FillChi2();
31  void FillFitParameters(MatrixMeschach* AtWAMatrix);
32  void FillOptObjects(MatrixMeschach* AtWAMatrix);
33  void FillMeasurements();
34 
35 private:
37 
38  void GetGlobalAngles(const CLHEP::HepRotation& rmGlob, double* theta);
39 
40  TFile* theRootFile;
41 
42  TTree* CocoaTree;
43  /* TTree *FitParametersTree; */
44  /* TTree *MeasurementsTree; */
45 
46  TClonesArray* CloneFitParam;
48  TClonesArray* CloneOptObject;
50  TClonesArray* CloneSensor2DMeas;
52  TClonesArray* CloneDistancemeterMeas;
56  TClonesArray* CloneTiltmeterMeas;
58  TClonesArray* CloneCopsMeas;
60 
61  /* bool BookFitParameters; */
62  /* bool BookMeasurements; */
63 
68  int NSensor2D;
72  int NCops;
73 };
74 
75 #endif
DistancemeterMeas * DistancemeterMeasA
Definition: NtupleManager.h:53
int NDistancemeter1Dim
Definition: NtupleManager.h:70
void GetGlobalAngles(const CLHEP::HepRotation &rmGlob, double *theta)
void FillMeasurements()
TClonesArray * CloneOptObject
Definition: NtupleManager.h:48
CopsMeas * CopsMeasA
Definition: NtupleManager.h:59
TClonesArray * CloneTiltmeterMeas
Definition: NtupleManager.h:56
TClonesArray * CloneFitParam
Definition: NtupleManager.h:46
FitParam * FitParamA
Definition: NtupleManager.h:47
OptObject * OptObjectA
Definition: NtupleManager.h:49
TClonesArray * CloneDistancemeterMeas
Definition: NtupleManager.h:52
TClonesArray * CloneSensor2DMeas
Definition: NtupleManager.h:50
Sensor2DMeas * Sensor2DMeasA
Definition: NtupleManager.h:51
TClonesArray * CloneCopsMeas
Definition: NtupleManager.h:58
static NtupleManager * getInstance()
TTree * CocoaTree
Definition: NtupleManager.h:42
double Chi2Measurements
Definition: NtupleManager.h:64
TFile * theRootFile
Definition: NtupleManager.h:40
void FillOptObjects(MatrixMeschach *AtWAMatrix)
void FillFitParameters(MatrixMeschach *AtWAMatrix)
double Chi2CalibratedParameters
Definition: NtupleManager.h:64
TiltmeterMeas * TiltmeterMeasA
Definition: NtupleManager.h:57
Geom::Theta< T > theta() const
static NtupleManager * instance
Definition: NtupleManager.h:36
void FillNtupleTree()
Distancemeter1DimMeas * Distancemeter1DimMeasA
Definition: NtupleManager.h:55
TClonesArray * CloneDistancemeter1DimMeas
Definition: NtupleManager.h:54