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
NtupleManager::FillOptObjects
void FillOptObjects(MatrixMeschach *AtWAMatrix)
Definition: NtupleManager.cc:237
NtupleManager::CloneCopsMeas
TClonesArray * CloneCopsMeas
Definition: NtupleManager.h:58
NtupleManager::CloneTiltmeterMeas
TClonesArray * CloneTiltmeterMeas
Definition: NtupleManager.h:56
NtupleManager::CloneDistancemeter1DimMeas
TClonesArray * CloneDistancemeter1DimMeas
Definition: NtupleManager.h:54
NtupleManager::TiltmeterMeasA
TiltmeterMeas * TiltmeterMeasA
Definition: NtupleManager.h:57
NtupleManager::Distancemeter1DimMeasA
Distancemeter1DimMeas * Distancemeter1DimMeasA
Definition: NtupleManager.h:55
NtupleManager::GetGlobalAngles
void GetGlobalAngles(const CLHEP::HepRotation &rmGlob, double *theta)
Definition: NtupleManager.cc:362
NtupleManager::CocoaTree
TTree * CocoaTree
Definition: NtupleManager.h:42
NtupleManager::NFitParameters
int NFitParameters
Definition: NtupleManager.h:66
NtupleManager::CloneOptObject
TClonesArray * CloneOptObject
Definition: NtupleManager.h:48
NtupleManager::DistancemeterMeasA
DistancemeterMeas * DistancemeterMeasA
Definition: NtupleManager.h:53
NtupleManager::Chi2CalibratedParameters
double Chi2CalibratedParameters
Definition: NtupleManager.h:64
NtupleManager::FillNtupleTree
void FillNtupleTree()
Definition: NtupleManager.cc:108
TiltmeterMeas
Definition: NtupleObjects.h:83
NtupleManager::CloneFitParam
TClonesArray * CloneFitParam
Definition: NtupleManager.h:46
NtupleManager::WriteNtuple
void WriteNtuple()
Definition: NtupleManager.cc:112
NtupleManager::getInstance
static NtupleManager * getInstance()
Definition: NtupleManager.cc:29
theta
Geom::Theta< T > theta() const
Definition: Basic3DVectorLD.h:150
NtupleManager::FillChi2
void FillChi2()
Definition: NtupleManager.cc:119
Sensor2DMeas
Definition: NtupleObjects.h:44
NtupleManager::instance
static NtupleManager * instance
Definition: NtupleManager.h:36
NtupleManager::OptObjectA
OptObject * OptObjectA
Definition: NtupleManager.h:49
NtupleManager::NDegreesOfFreedom
int NDegreesOfFreedom
Definition: NtupleManager.h:65
NtupleManager::FillFitParameters
void FillFitParameters(MatrixMeschach *AtWAMatrix)
Definition: NtupleManager.cc:154
NtupleManager::NTiltmeter
int NTiltmeter
Definition: NtupleManager.h:71
Distancemeter1DimMeas
Definition: NtupleObjects.h:70
CopsMeas
Definition: NtupleObjects.h:96
NtupleManager::CopsMeasA
CopsMeas * CopsMeasA
Definition: NtupleManager.h:59
NtupleManager::NDistancemeter1Dim
int NDistancemeter1Dim
Definition: NtupleManager.h:70
DistancemeterMeas
Definition: NtupleObjects.h:57
NtupleManager
Definition: NtupleManager.h:20
OptObject
Definition: NtupleObjects.h:29
NtupleManager::Chi2Measurements
double Chi2Measurements
Definition: NtupleManager.h:64
NtupleManager::Sensor2DMeasA
Sensor2DMeas * Sensor2DMeasA
Definition: NtupleManager.h:51
NtupleManager::NSensor2D
int NSensor2D
Definition: NtupleManager.h:68
MatrixMeschach.h
NtupleManager::NCops
int NCops
Definition: NtupleManager.h:72
MatrixMeschach
Definition: MatrixMeschach.h:30
NtupleManager::theRootFile
TFile * theRootFile
Definition: NtupleManager.h:40
NtupleManager::FitParamA
FitParam * FitParamA
Definition: NtupleManager.h:47
NtupleManager::InitNtuple
void InitNtuple()
Definition: NtupleManager.cc:91
NtupleManager::NtupleManager
NtupleManager()
Definition: NtupleManager.h:23
NtupleManager::BookNtuple
void BookNtuple()
Definition: NtupleManager.cc:39
NtupleManager::NOptObjects
int NOptObjects
Definition: NtupleManager.h:67
CocoaGlobals.h
NtupleObjects.h
NtupleManager::~NtupleManager
~NtupleManager()
Definition: NtupleManager.h:24
NtupleManager::CloneDistancemeterMeas
TClonesArray * CloneDistancemeterMeas
Definition: NtupleManager.h:52
FitParam
Definition: NtupleObjects.h:14
NtupleManager::NDistancemeter
int NDistancemeter
Definition: NtupleManager.h:69
NtupleManager::CloneSensor2DMeas
TClonesArray * CloneSensor2DMeas
Definition: NtupleManager.h:50
NtupleManager::FillMeasurements
void FillMeasurements()
Definition: NtupleManager.cc:287