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 = "";
36  }
39  {
40  // variable Float_t's
42  = medianX = medianY
45  = sigmaX = sigmaNormX
49 
50  // variable Int_t's
51  entries = 0;
52  }
53 
54 
56  // Data members:
57  // They do not follow convention to have '_' at the end since they will appear
58  // as such in the TTree and that is ugly.
60 
62  meanX, meanNormX, //mean value read out from module histograms
63  meanY, meanNormY,
64  medianX, medianY, //median read out from module histograms
66  rmsLocalX, rmsNormLocalX, rmsX, rmsNormX, //rms value read out from modul histograms
70  posR, posPhi, posEta, //global coordiantes
71  posX, posY, posZ, //global coordiantes
74 
75  UInt_t entries, moduleId, subDetId, //number of entries for each module //moduleId == detId
76  layer, side, half, rod, //half = TPB: halfBarrel, TPE: halfCylinder, TIB: halfShell
77  ring, petal,
78  blade, panel,
79  outerInner, module; //orientation of modules in TIB:1/2= int/ext string, TID:1/2=back/front ring, TEC 1/2=back/front petal
80 
81  Bool_t isDoubleSide, isStereo; // (!isDoubleSide) is a detUnit, (isDoubleSide) is a Det (glued Modules) // (!isStereo) is a rPhi-module, (isStereo) is the stereo module from a Det
82  std::string histNameLocalX, histNameNormLocalX, histNameLocalY, /* histNameNormLocalY, */
84 };
85 
86 #endif
container to hold data to be written into TTree
void clearMergeAffectedPart()
set those values to empty that are affected by merging
TkOffTreeVariables()
constructor initialises to empty values
std::string histNameLocalY
std::string histNameNormLocalX
unsigned int UInt_t
Definition: FUTypes.h:12
std::string histNameLocalX
void clear()
set to empty values
Definition: vlib.h:209