CMS 3D CMS Logo

MaterialBudgetTree.h
Go to the documentation of this file.
1 #ifndef MaterialBudgetTree_h
2 #define MaterialBudgetTree_h 1
3 
4 #include "TFile.h"
5 #include "TTree.h"
6 #include "G4ThreeVector.hh"
7 
9 
11 public:
12  MaterialBudgetTree(std::shared_ptr<MaterialBudgetData> data, const std::string& fileName);
13  ~MaterialBudgetTree() override {}
14 
15  void fillStartTrack() override;
16  void fillPerStep() override;
17  void fillEndTrack() override;
18  void endOfRun() override;
19 
20 private:
21  void book(); // user booking
22  std::unique_ptr<TFile> theFile;
23  std::unique_ptr<TTree> theTree;
24 
25  static const int MAXSTEPS = 10000;
26 
27  float t_MB;
28  float t_IL;
29 
31  float t_ParticlePt;
36 
37  int t_Nsteps;
38 
47 
56 
60  double t_FinalX[MAXSTEPS];
61  double t_FinalY[MAXSTEPS];
62  double t_FinalZ[MAXSTEPS];
63 
65  const char* t_VolumeName[MAXSTEPS];
79 
81  const char* t_MaterialName[MAXSTEPS];
84  float t_MaterialDensity[MAXSTEPS]; // g/cm3
108 };
109 
110 #endif
MaterialBudgetTree::t_DeltaIL_CAB
float t_DeltaIL_CAB[MAXSTEPS]
Definition: MaterialBudgetTree.h:51
MaterialBudgetTree::t_ParticlePt
float t_ParticlePt
Definition: MaterialBudgetTree.h:31
MaterialBudgetTree::t_VolumeXaxis3
float t_VolumeXaxis3[MAXSTEPS]
Definition: MaterialBudgetTree.h:72
MaterialBudgetTree::t_VolumeZaxis3
float t_VolumeZaxis3[MAXSTEPS]
Definition: MaterialBudgetTree.h:78
MaterialBudgetTree::t_MaterialX0
float t_MaterialX0[MAXSTEPS]
Definition: MaterialBudgetTree.h:82
MaterialBudgetTree::t_ParticleStepInitialBeta
float t_ParticleStepInitialBeta[MAXSTEPS]
Definition: MaterialBudgetTree.h:93
MaterialBudgetTree::t_Nsteps
int t_Nsteps
Definition: MaterialBudgetTree.h:37
MaterialBudgetTree
Definition: MaterialBudgetTree.h:10
MaterialBudgetTree::t_ParticleStepInitialEta
float t_ParticleStepInitialEta[MAXSTEPS]
Definition: MaterialBudgetTree.h:87
MaterialBudgetTree::t_ParticleStepFinalPhi
float t_ParticleStepFinalPhi[MAXSTEPS]
Definition: MaterialBudgetTree.h:98
MaterialBudgetTree::t_MaterialName
const char * t_MaterialName[MAXSTEPS]
Definition: MaterialBudgetTree.h:81
MaterialBudgetTree::t_InitialX
double t_InitialX[MAXSTEPS]
Definition: MaterialBudgetTree.h:57
MaterialBudgetTree::t_MaterialDensity
float t_MaterialDensity[MAXSTEPS]
Definition: MaterialBudgetTree.h:84
MaterialBudgetTree::t_FinalZ
double t_FinalZ[MAXSTEPS]
Definition: MaterialBudgetTree.h:62
MaterialBudgetTree::t_ParticleStepFinalPx
float t_ParticleStepFinalPx[MAXSTEPS]
Definition: MaterialBudgetTree.h:100
MaterialBudgetTree::t_DeltaMB_CAB
float t_DeltaMB_CAB[MAXSTEPS]
Definition: MaterialBudgetTree.h:42
MaterialBudgetTree::t_ParticleStepFinalEta
float t_ParticleStepFinalEta[MAXSTEPS]
Definition: MaterialBudgetTree.h:97
MaterialBudgetTree::t_VolumeYaxis1
float t_VolumeYaxis1[MAXSTEPS]
Definition: MaterialBudgetTree.h:73
MaterialBudgetTree::t_DeltaIL_OTH
float t_DeltaIL_OTH[MAXSTEPS]
Definition: MaterialBudgetTree.h:54
MaterialBudgetTree::t_ParticleStepInitialGamma
float t_ParticleStepInitialGamma[MAXSTEPS]
Definition: MaterialBudgetTree.h:94
MaterialBudgetTree::t_ParticleStepFinalPz
float t_ParticleStepFinalPz[MAXSTEPS]
Definition: MaterialBudgetTree.h:102
MillePedeFileConverter_cfg.fileName
fileName
Definition: MillePedeFileConverter_cfg.py:32
MaterialBudgetTree::book
void book()
Definition: MaterialBudgetTree.cc:13
MaterialBudgetTree::t_DeltaMB_SEN
float t_DeltaMB_SEN[MAXSTEPS]
Definition: MaterialBudgetTree.h:41
MaterialBudgetTree::t_ParticleStepFinalBeta
float t_ParticleStepFinalBeta[MAXSTEPS]
Definition: MaterialBudgetTree.h:103
MaterialBudgetTree::t_FinalY
double t_FinalY[MAXSTEPS]
Definition: MaterialBudgetTree.h:61
MaterialBudgetTree::t_VolumeZaxis1
float t_VolumeZaxis1[MAXSTEPS]
Definition: MaterialBudgetTree.h:76
MaterialBudgetTree::endOfRun
void endOfRun() override
Definition: MaterialBudgetTree.cc:210
MaterialBudgetTree::t_DeltaIL
float t_DeltaIL[MAXSTEPS]
Definition: MaterialBudgetTree.h:48
MaterialBudgetTree::fillStartTrack
void fillStartTrack() override
Definition: MaterialBudgetTree.cc:108
MaterialBudgetTree::t_DeltaMB_SUP
float t_DeltaMB_SUP[MAXSTEPS]
Definition: MaterialBudgetTree.h:40
MaterialBudgetTree::t_VolumeName
const char * t_VolumeName[MAXSTEPS]
Definition: MaterialBudgetTree.h:65
MaterialBudgetTree::fillEndTrack
void fillEndTrack() override
Definition: MaterialBudgetTree.cc:112
MaterialBudgetTree::t_IL
float t_IL
Definition: MaterialBudgetTree.h:28
MaterialBudgetTree::t_DeltaIL_AIR
float t_DeltaIL_AIR[MAXSTEPS]
Definition: MaterialBudgetTree.h:55
MaterialBudgetTree::t_DeltaIL_COL
float t_DeltaIL_COL[MAXSTEPS]
Definition: MaterialBudgetTree.h:52
MaterialBudgetTree::t_VolumeZaxis2
float t_VolumeZaxis2[MAXSTEPS]
Definition: MaterialBudgetTree.h:77
MaterialBudgetTree::t_MB
float t_MB
Definition: MaterialBudgetTree.h:27
MaterialBudgetTree::t_VolumeXaxis2
float t_VolumeXaxis2[MAXSTEPS]
Definition: MaterialBudgetTree.h:71
MaterialBudgetTree::t_ParticleStepInitialPx
float t_ParticleStepInitialPx[MAXSTEPS]
Definition: MaterialBudgetTree.h:90
MaterialBudgetTree::t_VolumeCopy
int t_VolumeCopy[MAXSTEPS]
Definition: MaterialBudgetTree.h:66
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
MaterialBudgetTree::t_InitialY
double t_InitialY[MAXSTEPS]
Definition: MaterialBudgetTree.h:58
MaterialBudgetTree::t_ParticleStepInitialPz
float t_ParticleStepInitialPz[MAXSTEPS]
Definition: MaterialBudgetTree.h:92
MaterialBudgetTree::MAXSTEPS
static const int MAXSTEPS
Definition: MaterialBudgetTree.h:25
MaterialBudgetTree::t_ParticleStepInitialEnergy
float t_ParticleStepInitialEnergy[MAXSTEPS]
Definition: MaterialBudgetTree.h:89
MaterialBudgetTree::t_ParticleEta
float t_ParticleEta
Definition: MaterialBudgetTree.h:32
MaterialBudgetTree::t_VolumeYaxis2
float t_VolumeYaxis2[MAXSTEPS]
Definition: MaterialBudgetTree.h:74
MaterialBudgetTree::MaterialBudgetTree
MaterialBudgetTree(std::shared_ptr< MaterialBudgetData > data, const std::string &fileName)
Definition: MaterialBudgetTree.cc:6
MaterialBudgetTree::t_MaterialLambda0
float t_MaterialLambda0[MAXSTEPS]
Definition: MaterialBudgetTree.h:83
MaterialBudgetTree::t_DeltaMB_ELE
float t_DeltaMB_ELE[MAXSTEPS]
Definition: MaterialBudgetTree.h:44
MaterialBudgetTree::t_ParticleStepPostInteraction
int t_ParticleStepPostInteraction[MAXSTEPS]
Definition: MaterialBudgetTree.h:107
MaterialBudgetTree::t_VolumeZ
float t_VolumeZ[MAXSTEPS]
Definition: MaterialBudgetTree.h:69
MaterialBudgetTree::t_ParticlePhi
float t_ParticlePhi
Definition: MaterialBudgetTree.h:33
MaterialBudgetTree::t_ParticleStepFinalGamma
float t_ParticleStepFinalGamma[MAXSTEPS]
Definition: MaterialBudgetTree.h:104
MaterialBudgetTree::t_DeltaMB_AIR
float t_DeltaMB_AIR[MAXSTEPS]
Definition: MaterialBudgetTree.h:46
MaterialBudgetTree::t_FinalX
double t_FinalX[MAXSTEPS]
Definition: MaterialBudgetTree.h:60
MaterialBudgetTree::t_ParticleStepFinalEnergy
float t_ParticleStepFinalEnergy[MAXSTEPS]
Definition: MaterialBudgetTree.h:99
MaterialBudgetTree::t_VolumeID
int t_VolumeID[MAXSTEPS]
Definition: MaterialBudgetTree.h:64
MaterialBudgetTree::theTree
std::unique_ptr< TTree > theTree
Definition: MaterialBudgetTree.h:23
MaterialBudgetTree::t_VolumeY
float t_VolumeY[MAXSTEPS]
Definition: MaterialBudgetTree.h:68
MaterialBudgetTree::t_DeltaIL_SUP
float t_DeltaIL_SUP[MAXSTEPS]
Definition: MaterialBudgetTree.h:49
MaterialBudgetTree::t_MaterialID
int t_MaterialID[MAXSTEPS]
Definition: MaterialBudgetTree.h:80
MaterialBudgetTree::t_ParticleID
int t_ParticleID
Definition: MaterialBudgetTree.h:30
MaterialBudgetTree::theFile
std::unique_ptr< TFile > theFile
Definition: MaterialBudgetTree.h:22
MaterialBudgetTree::t_ParticleStepID
int t_ParticleStepID[MAXSTEPS]
Definition: MaterialBudgetTree.h:85
MaterialBudgetTree::t_ParticleStepPreInteraction
int t_ParticleStepPreInteraction[MAXSTEPS]
Definition: MaterialBudgetTree.h:106
MaterialBudgetTree::t_VolumeXaxis1
float t_VolumeXaxis1[MAXSTEPS]
Definition: MaterialBudgetTree.h:70
MaterialBudgetTree::t_ParticleStepFinalPt
float t_ParticleStepFinalPt[MAXSTEPS]
Definition: MaterialBudgetTree.h:96
MaterialBudgetTree::t_ParticleEnergy
float t_ParticleEnergy
Definition: MaterialBudgetTree.h:34
MaterialBudgetTree::t_ParticleStepFinalPy
float t_ParticleStepFinalPy[MAXSTEPS]
Definition: MaterialBudgetTree.h:101
MaterialBudgetTree::t_VolumeX
float t_VolumeX[MAXSTEPS]
Definition: MaterialBudgetTree.h:67
MaterialBudgetTree::t_DeltaMB
float t_DeltaMB[MAXSTEPS]
Definition: MaterialBudgetTree.h:39
MaterialBudgetTree::t_ParticleStepFinalMass
float t_ParticleStepFinalMass[MAXSTEPS]
Definition: MaterialBudgetTree.h:105
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
MaterialBudgetTree::~MaterialBudgetTree
~MaterialBudgetTree() override
Definition: MaterialBudgetTree.h:13
MaterialBudgetTree::t_ParticleStepInitialMass
float t_ParticleStepInitialMass[MAXSTEPS]
Definition: MaterialBudgetTree.h:95
MaterialBudgetTree::t_ParticleMass
float t_ParticleMass
Definition: MaterialBudgetTree.h:35
MaterialBudgetTree::t_DeltaMB_COL
float t_DeltaMB_COL[MAXSTEPS]
Definition: MaterialBudgetTree.h:43
MaterialBudgetTree::t_DeltaMB_OTH
float t_DeltaMB_OTH[MAXSTEPS]
Definition: MaterialBudgetTree.h:45
MaterialBudgetFormat.h
MaterialBudgetTree::t_DeltaIL_SEN
float t_DeltaIL_SEN[MAXSTEPS]
Definition: MaterialBudgetTree.h:50
MaterialBudgetFormat
Definition: MaterialBudgetFormat.h:9
MaterialBudgetTree::t_InitialZ
double t_InitialZ[MAXSTEPS]
Definition: MaterialBudgetTree.h:59
MaterialBudgetTree::t_ParticleStepInitialPhi
float t_ParticleStepInitialPhi[MAXSTEPS]
Definition: MaterialBudgetTree.h:88
MaterialBudgetTree::t_ParticleStepInitialPt
float t_ParticleStepInitialPt[MAXSTEPS]
Definition: MaterialBudgetTree.h:86
MaterialBudgetTree::t_VolumeYaxis3
float t_VolumeYaxis3[MAXSTEPS]
Definition: MaterialBudgetTree.h:75
MaterialBudgetTree::fillPerStep
void fillPerStep() override
Definition: MaterialBudgetTree.cc:110
MaterialBudgetTree::t_ParticleStepInitialPy
float t_ParticleStepInitialPy[MAXSTEPS]
Definition: MaterialBudgetTree.h:91
MaterialBudgetTree::t_DeltaIL_ELE
float t_DeltaIL_ELE[MAXSTEPS]
Definition: MaterialBudgetTree.h:53