CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 {
22 
23 public:
24  //---------- Constructors / Destructor
27  static NtupleManager* getInstance();
28  void BookNtuple();
29  void InitNtuple();
30  void FillNtupleTree();
31  void WriteNtuple();
32  void FillChi2();
33  void FillFitParameters(MatrixMeschach* AtWAMatrix);
34  void FillOptObjects(MatrixMeschach* AtWAMatrix);
35  void FillMeasurements();
36 
37 
38 private:
40 
41  void GetGlobalAngles(const CLHEP::HepRotation& rmGlob, double *theta);
42 
43  TFile *theRootFile;
44 
45  TTree *CocoaTree;
46 /* TTree *FitParametersTree; */
47 /* TTree *MeasurementsTree; */
48 
49  TClonesArray* CloneFitParam; FitParam *FitParamA;
55  TClonesArray* CloneCopsMeas; CopsMeas *CopsMeasA;
56 
57 /* bool BookFitParameters; */
58 /* bool BookMeasurements; */
59 
64  int NSensor2D;
68  int NCops;
69 };
70 
71 #endif
72 
DistancemeterMeas * DistancemeterMeasA
Definition: NtupleManager.h:52
int NDistancemeter1Dim
Definition: NtupleManager.h:66
void GetGlobalAngles(const CLHEP::HepRotation &rmGlob, double *theta)
Geom::Theta< T > theta() const
void FillMeasurements()
TClonesArray * CloneOptObject
Definition: NtupleManager.h:50
CopsMeas * CopsMeasA
Definition: NtupleManager.h:55
TClonesArray * CloneTiltmeterMeas
Definition: NtupleManager.h:54
TClonesArray * CloneFitParam
Definition: NtupleManager.h:49
FitParam * FitParamA
Definition: NtupleManager.h:49
OptObject * OptObjectA
Definition: NtupleManager.h:50
TClonesArray * CloneDistancemeterMeas
Definition: NtupleManager.h:52
TClonesArray * CloneSensor2DMeas
Definition: NtupleManager.h:51
Sensor2DMeas * Sensor2DMeasA
Definition: NtupleManager.h:51
TClonesArray * CloneCopsMeas
Definition: NtupleManager.h:55
static NtupleManager * getInstance()
TTree * CocoaTree
Definition: NtupleManager.h:45
double Chi2Measurements
Definition: NtupleManager.h:60
TFile * theRootFile
Definition: NtupleManager.h:43
void FillOptObjects(MatrixMeschach *AtWAMatrix)
void FillFitParameters(MatrixMeschach *AtWAMatrix)
double Chi2CalibratedParameters
Definition: NtupleManager.h:60
TiltmeterMeas * TiltmeterMeasA
Definition: NtupleManager.h:54
static NtupleManager * instance
Definition: NtupleManager.h:39
void FillNtupleTree()
Distancemeter1DimMeas * Distancemeter1DimMeasA
Definition: NtupleManager.h:53
TClonesArray * CloneDistancemeter1DimMeas
Definition: NtupleManager.h:53