test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TkOffTreeVariables.h
Go to the documentation of this file.
1 #ifndef Alignment_OfflineValidation_TkOffTreeVariables_h
2 #define Alignment_OfflineValidation_TkOffTreeVariables_h
3 
4 #include <string>
5 // For ROOT types with '_t':
6 #include <Rtypes.h>
7 
10 {
12  TkOffTreeVariables() { this->clear();}
13 
15  void clear() {
16  // First clear things that are changing if TTrees are merged:
17  this->clearMergeAffectedPart();
18 
19  // Now the rest:
20  // Float_t's
21  posR = posPhi = posEta = posX = posY = posZ
23  // Int_t's
25  = layer = side = half = rod
26  = ring = petal
27  = blade = panel
28  = outerInner = module = 0;
29  // Bool_t's
30  isDoubleSide = isStereo = false;
31  // std::string's
33  = histNameLocalY /* = histNameNormLocalY */
35  = histNameY = histNameNormY = "";
38  = profileNameResYvsY = "";
39 
40  }
43  {
44  // variable Float_t's
46  = medianX = medianY
49  = sigmaX = sigmaNormX
53 
56 
57  // variable Int_t's
58  entries = 0;
59  }
60 
61 
63  // Data members:
64  // They do not follow convention to have '_' at the end since they will appear
65  // as such in the TTree and that is ugly.
67 
69  meanX, meanNormX, //mean value read out from module histograms
70  meanY, meanNormY,
71  medianX, medianY, //median read out from module histograms
73  rmsLocalX, rmsNormLocalX, rmsX, rmsNormX, //rms value read out from modul histograms
77  posR, posPhi, posEta, //global coordiantes
78  posX, posY, posZ, //global coordiantes
81 
82  UInt_t entries; // number of entries for each module
83  UInt_t moduleId, subDetId, //moduleId == detId
84  layer, side, half, rod, // half = TPB: halfBarrel, TPE: halfCylinder, TIB: halfShell
85  ring, petal,
86  blade, panel,
87  outerInner, module; //orientation of modules in TIB:1/2= int/ext string, TID:1/2=back/front ring, TEC 1/2=back/front petal
88 
89  Bool_t isDoubleSide; // (!isDoubleSide) is a detUnit, (isDoubleSide) is a Det (glued Modules)
90  Bool_t isStereo; // (!isStereo) is a rPhi-module, (isStereo) is the stereo module from a Det
91 
94 
97 
99 
100 };
101 
102 #endif
container to hold data to be written into TTree
std::string profileNameResXvsX
void clearMergeAffectedPart()
set those values to empty that are affected by merging
std::string profileNameResYvsX
TkOffTreeVariables()
constructor initialises to empty values
std::string histNameLocalY
std::string histNameNormLocalX
std::string histNameLocalX
std::string profileNameResXvsY
void clear()
set to empty values
Definition: vlib.h:208
std::string profileNameResYvsY