CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 <TObject.h>
7 #include <TFile.h>
8 #include <TTree.h>
9 #include <TH1F.h>
10 #include <TH2F.h>
11 #include <TProfile.h>
12 #include <TString.h>
13 
14 #include <string>
15 
16 class GflashHistogram : public TObject {
17 
18  public:
19 
20  static GflashHistogram* instance();
21 
24 
25  void bookHistogram(std::string histFileName="gflash_histogram.root");
26  void setStoreFlag(bool flag) { theStoreFlag = flag; }
27  bool getStoreFlag() { return theStoreFlag; }
28 
29  // We are declaring histograms here as public
30  // This is just for convenience.
31  // Once we are settled down with all histograms,
32  // probably we will make them as private
33 
34  // add hitograms here
35 
36  // histogram output
37  TFile* histFile_;
38 
39  // histograms for EM shower model in GflashEMShowerProfile
40  TH1F* em_incE;
41  TH1F* em_ssp_rho;
42  TH1F* em_ssp_z;
43  TH1F* em_long;
44  TH2F* em_lateral;
45  TH1F* em_long_sd;
47  TH1F* em_nSpots_sd;
48 
49  // histograms for HAD shower model in GflashHadronShowerModel
50 
53  TH1F* deltaStep;
55  TH1F* energyLoss;
56  TH1F* energyRatio;
57 
58  // histograms for HAD shower model in GflashHadronShowerProfile
59 
60  TH1F* rshower;
61  TH1F* lateralx;
62  TH1F* lateraly;
64 
65  // histograms for Watcher
66 
68  TH2F* g4stepCharge;
69  TH1F* g4nSecondary;
72  TH1F* g4energyPi0;
75 
79 
80  TH1F* g4energyEM;
81  TH1F* g4energyHad;
85  TH1F* g4energyMip;
87 
94 
99 
100  TH1F* g4ssp;
101  TH1F* g4energy;
103  TH1F* g4momentum;
104  TH1F* g4charge;
105 
106  TH2F* g4rshower;
107  TH2F* g4rshowerR1;
108  TH2F* g4rshowerR2;
109  TH2F* g4rshowerR3;
110  TH2F* g4lateralXY;
111  TH2F* g4lateralRZ;
112  TH2F* g4spotXY;
113  TH2F* g4spotRZ;
114  TH2F* g4spotRZ0;
117 
118  TH1F* g4stepRho;
120 
124 
125  private:
126 
129 
130 };
131 
132 #endif
static GflashHistogram * instance()
TH1F * g4energySecondary
TH2F * g4energyHybridProfile
TH1F * g4totalEnergySecPhoton
TH1F * g4energySensitiveHad
TH1F * g4energySensitiveEM
static GflashHistogram * instance_
TH1F * g4energySensitiveEMMip
TH2F * g4energyEMProfile
TH1F * g4totalEnergySecElectron
TH1F * g4energySensitiveTotal
void bookHistogram(std::string histFileName="gflash_histogram.root")
TH1F * g4totalEnergySecPi0
TH2F * g4energyTotalProfile
TH2F * g4energyHadProfile
TH1F * g4energyHybridTotal
TH2F * g4energySensitiveEMvsHad
void setStoreFlag(bool flag)