CMS 3D CMS Logo

GflashHistogram.h
Go to the documentation of this file.
1 #ifndef GflashHistogram_H
2 #define GflashHistogram_H
3 
4 // created by Soon Yung Jun, Dongwook Jang, 2007/12/07
5 
6 #include <TFile.h>
7 #include <TH1F.h>
8 #include <TH2F.h>
9 #include <TObject.h>
10 #include <TProfile.h>
11 #include <TString.h>
12 #include <TTree.h>
13 
14 #include <string>
15 
16 class GflashHistogram : public TObject {
17 public:
18  static GflashHistogram *instance();
19 
21  ~GflashHistogram() override;
22 
23  void bookHistogram(std::string histFileName = "gflash_histogram.root");
24  void setStoreFlag(bool flag) { theStoreFlag = flag; }
25  bool getStoreFlag() { return theStoreFlag; }
26 
27  // We are declaring histograms here as public
28  // This is just for convenience.
29  // Once we are settled down with all histograms,
30  // probably we will make them as private
31 
32  // add hitograms here
33 
34  // histogram output
35  TFile *histFile_;
36 
37  // histograms for EM shower model in GflashEMShowerProfile
38  TH1F *em_incE;
39  TH1F *em_ssp_rho;
40  TH1F *em_ssp_z;
41  TH1F *em_long;
42  TH2F *em_lateral;
43  TH1F *em_long_sd;
45  TH1F *em_nSpots_sd;
46 
47  // histograms for HAD shower model in GflashHadronShowerModel
48 
51  TH1F *deltaStep;
53  TH1F *energyLoss;
54  TH1F *energyRatio;
55 
56  // histograms for HAD shower model in GflashHadronShowerProfile
57 
58  TH1F *rshower;
59  TH1F *lateralx;
60  TH1F *lateraly;
62 
63  // histograms for Watcher
64 
66  TH2F *g4stepCharge;
67  TH1F *g4nSecondary;
70  TH1F *g4energyPi0;
73 
77 
78  TH1F *g4energyEM;
79  TH1F *g4energyHad;
83  TH1F *g4energyMip;
85 
92 
97 
98  TH1F *g4ssp;
99  TH1F *g4energy;
101  TH1F *g4momentum;
102  TH1F *g4charge;
103 
104  TH2F *g4rshower;
105  TH2F *g4rshowerR1;
106  TH2F *g4rshowerR2;
107  TH2F *g4rshowerR3;
108  TH2F *g4lateralXY;
109  TH2F *g4lateralRZ;
110  TH2F *g4spotXY;
111  TH2F *g4spotRZ;
112  TH2F *g4spotRZ0;
115 
116  TH1F *g4stepRho;
118 
122 
123 private:
126 };
127 
128 #endif
GflashHistogram::theStoreFlag
bool theStoreFlag
Definition: GflashHistogram.h:125
GflashHistogram::g4energyHybridProfile
TH2F * g4energyHybridProfile
Definition: GflashHistogram.h:96
GflashHistogram::getStoreFlag
bool getStoreFlag()
Definition: GflashHistogram.h:25
GflashHistogram::g4rshowerR2
TH2F * g4rshowerR2
Definition: GflashHistogram.h:106
GflashHistogram::g4trajectoryRZ
TH2F * g4trajectoryRZ
Definition: GflashHistogram.h:114
GflashHistogram::postStepPosition
TH1F * postStepPosition
Definition: GflashHistogram.h:50
GflashHistogram::g4spotXY
TH2F * g4spotXY
Definition: GflashHistogram.h:110
GflashHistogram::g4energyTotal
TH1F * g4energyTotal
Definition: GflashHistogram.h:80
GflashHistogram::g4energyHybridTotal
TH1F * g4energyHybridTotal
Definition: GflashHistogram.h:89
GflashHistogram::g4lateralXY
TH2F * g4lateralXY
Definition: GflashHistogram.h:108
GflashHistogram::g4ssp
TH1F * g4ssp
Definition: GflashHistogram.h:98
GflashHistogram::g4energyEMvsHad
TH2F * g4energyEMvsHad
Definition: GflashHistogram.h:84
GflashHistogram::g4rshowerR1
TH2F * g4rshowerR1
Definition: GflashHistogram.h:105
GflashHistogram::g4rshower
TH2F * g4rshower
Definition: GflashHistogram.h:104
GflashHistogram::g4pidSecondary
TH1F * g4pidSecondary
Definition: GflashHistogram.h:68
GflashHistogram::g4energyMip
TH1F * g4energyMip
Definition: GflashHistogram.h:83
GflashHistogram::kineticEnergy
TH1F * kineticEnergy
Definition: GflashHistogram.h:52
GflashHistogram::g4nSecondary
TH1F * g4nSecondary
Definition: GflashHistogram.h:67
GflashHistogram::em_nSpots_sd
TH1F * em_nSpots_sd
Definition: GflashHistogram.h:45
GflashHistogram
Definition: GflashHistogram.h:16
GflashHistogram::setStoreFlag
void setStoreFlag(bool flag)
Definition: GflashHistogram.h:24
GflashHistogram::em_ssp_z
TH1F * em_ssp_z
Definition: GflashHistogram.h:40
GflashHistogram::gfhlongProfile
TH2F * gfhlongProfile
Definition: GflashHistogram.h:61
GflashHistogram::em_ssp_rho
TH1F * em_ssp_rho
Definition: GflashHistogram.h:39
GflashHistogram::g4energySensitiveEMMip
TH1F * g4energySensitiveEMMip
Definition: GflashHistogram.h:90
GflashHistogram::deltaStep
TH1F * deltaStep
Definition: GflashHistogram.h:51
GflashHistogram::g4energyEMProfile
TH2F * g4energyEMProfile
Definition: GflashHistogram.h:93
GflashHistogram::g4spotRZ
TH2F * g4spotRZ
Definition: GflashHistogram.h:111
GflashHistogram::g4trajectoryXY
TH2F * g4trajectoryXY
Definition: GflashHistogram.h:113
GflashHistogram::g4energySensitiveHad
TH1F * g4energySensitiveHad
Definition: GflashHistogram.h:87
GflashHistogram::g4totalEnergySecPhoton
TH1F * g4totalEnergySecPhoton
Definition: GflashHistogram.h:76
GflashHistogram::g4totalEnergySecElectron
TH1F * g4totalEnergySecElectron
Definition: GflashHistogram.h:75
GflashHistogram::histFile_
TFile * histFile_
Definition: GflashHistogram.h:35
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
GflashHistogram::g4stepCharge
TH2F * g4stepCharge
Definition: GflashHistogram.h:66
GflashHistogram::g4energyHadProfile
TH2F * g4energyHadProfile
Definition: GflashHistogram.h:94
GflashHistogram::g4energyPhoton
TH1F * g4energyPhoton
Definition: GflashHistogram.h:72
GflashHistogram::g4energyEM
TH1F * g4energyEM
Definition: GflashHistogram.h:78
GflashHistogram::em_lateral
TH2F * em_lateral
Definition: GflashHistogram.h:42
GflashHistogram::g4momentum
TH1F * g4momentum
Definition: GflashHistogram.h:101
GflashHistogram::g4energySensitiveEMvsHad
TH2F * g4energySensitiveEMvsHad
Definition: GflashHistogram.h:91
GflashHistogram::g4energyLoss
TH1F * g4energyLoss
Definition: GflashHistogram.h:100
GflashHistogram::g4energySensitiveTotal
TH1F * g4energySensitiveTotal
Definition: GflashHistogram.h:88
GflashHistogram::g4vertexTrack
TH1F * g4vertexTrack
Definition: GflashHistogram.h:65
GflashHistogram::em_lateral_sd
TH2F * em_lateral_sd
Definition: GflashHistogram.h:44
GflashHistogram::g4energyEMMip
TH1F * g4energyEMMip
Definition: GflashHistogram.h:81
GflashHistogram::g4lateralRZ
TH2F * g4lateralRZ
Definition: GflashHistogram.h:109
GflashHistogram::em_long
TH1F * em_long
Definition: GflashHistogram.h:41
GflashHistogram::g4longDetector
TH2F * g4longDetector
Definition: GflashHistogram.h:120
GflashHistogram::g4spotRZ0
TH2F * g4spotRZ0
Definition: GflashHistogram.h:112
GflashHistogram::g4energy
TH1F * g4energy
Definition: GflashHistogram.h:99
GflashHistogram::instance
static GflashHistogram * instance()
Definition: GflashHistogram.cc:5
GflashHistogram::~GflashHistogram
~GflashHistogram() override
Definition: GflashHistogram.cc:134
GflashHistogram::g4longSensitive
TH2F * g4longSensitive
Definition: GflashHistogram.h:121
GflashHistogram::em_incE
TH1F * em_incE
Definition: GflashHistogram.h:38
GflashHistogram::bookHistogram
void bookHistogram(std::string histFileName="gflash_histogram.root")
Definition: GflashHistogram.cc:13
GflashHistogram::g4totalEnergySecPi0
TH1F * g4totalEnergySecPi0
Definition: GflashHistogram.h:74
GflashHistogram::energyRatio
TH1F * energyRatio
Definition: GflashHistogram.h:54
GflashHistogram::rshower
TH1F * rshower
Definition: GflashHistogram.h:58
GflashHistogram::lateraly
TH1F * lateraly
Definition: GflashHistogram.h:60
GflashHistogram::g4energyTotalProfile
TH2F * g4energyTotalProfile
Definition: GflashHistogram.h:95
GflashHistogram::g4energySensitiveEM
TH1F * g4energySensitiveEM
Definition: GflashHistogram.h:86
GflashHistogram::g4rshowerR3
TH2F * g4rshowerR3
Definition: GflashHistogram.h:107
GflashHistogram::lateralx
TH1F * lateralx
Definition: GflashHistogram.h:59
GflashHistogram::g4energyHad
TH1F * g4energyHad
Definition: GflashHistogram.h:79
GflashHistogram::g4energyPi0
TH1F * g4energyPi0
Definition: GflashHistogram.h:70
GflashHistogram::g4longProfile
TH2F * g4longProfile
Definition: GflashHistogram.h:119
GflashHistogram::em_long_sd
TH1F * em_long_sd
Definition: GflashHistogram.h:43
GflashHistogram::energyLoss
TH1F * energyLoss
Definition: GflashHistogram.h:53
GflashHistogram::GflashHistogram
GflashHistogram()
Definition: GflashHistogram.cc:11
GflashHistogram::instance_
static GflashHistogram * instance_
Definition: GflashHistogram.h:124
GflashHistogram::g4energyElectron
TH1F * g4energyElectron
Definition: GflashHistogram.h:71
GflashHistogram::g4stepRho
TH1F * g4stepRho
Definition: GflashHistogram.h:116
GflashHistogram::g4trajectoryPhi0
TH1F * g4trajectoryPhi0
Definition: GflashHistogram.h:117
GflashHistogram::preStepPosition
TH1F * preStepPosition
Definition: GflashHistogram.h:49
RemoveAddSevLevel.flag
flag
Definition: RemoveAddSevLevel.py:116
GflashHistogram::g4energyHadMip
TH1F * g4energyHadMip
Definition: GflashHistogram.h:82
GflashHistogram::g4energySecondary
TH1F * g4energySecondary
Definition: GflashHistogram.h:69
GflashHistogram::g4charge
TH1F * g4charge
Definition: GflashHistogram.h:102