CMS 3D CMS Logo

MaterialBudgetHcalHistos.h
Go to the documentation of this file.
1 #ifndef Validation_Geometry_MaterialBudgetHcalHistos_h
2 #define Validation_Geometry_MaterialBudgetHcalHistos_h 1
3 
7 
8 #include "G4Step.hh"
9 #include "G4Track.hh"
10 
11 #include <TH1F.h>
12 #include <TH2F.h>
13 #include <TProfile.h>
14 #include <TProfile2D.h>
15 
16 #include <string>
17 #include <vector>
18 
20 public:
23 
24  void fillBeginJob(const DDCompactView &);
25  void fillStartTrack(const G4Track *);
26  void fillPerStep(const G4Step *);
27  void fillEndTrack();
28 
29 private:
30  void book();
31  void fillHisto(int ii);
32  void fillLayer();
33  void hend();
34  std::vector<std::string> getNames(DDFilteredView &fv);
35  std::vector<double> getDDDArray(const std::string &str, const DDsvalues_type &sv);
37  bool isItHF(const G4VTouchable *);
38  bool isItEC(std::string);
39 
40 private:
41  static const int maxSet = 25, maxSet2 = 9;
42  std::vector<std::string> sensitives, hfNames, sensitiveEC;
43  std::vector<int> hfLevels;
45  int binEta, binPhi;
46  double maxEta, etaLow, etaHigh;
47  std::vector<std::string> matList;
48  std::vector<double> stepLength, radLength, intLength;
51  TProfile *me100[maxSet], *me200[maxSet], *me300[maxSet];
52  TProfile *me500[maxSet], *me600[maxSet], *me700[maxSet];
53  TProfile *me1500[maxSet2];
54  TProfile2D *me900[maxSet], *me1000[maxSet], *me1100[maxSet];
55  int id, layer, steps;
56  double radLen, intLen, stepLen;
57  double eta, phi;
59 };
60 
61 #endif
MaterialBudgetHcalHistos::nlayHF
int nlayHF
Definition: MaterialBudgetHcalHistos.h:58
MaterialBudgetHcalHistos::nlayHO
int nlayHO
Definition: MaterialBudgetHcalHistos.h:58
MaterialBudgetHcalHistos::me700
TProfile * me700[maxSet]
Definition: MaterialBudgetHcalHistos.h:52
MaterialBudgetHcalHistos::me1300
TH1F * me1300[maxSet2]
Definition: MaterialBudgetHcalHistos.h:49
MaterialBudgetHcalHistos::maxSet2
static const int maxSet2
Definition: MaterialBudgetHcalHistos.h:41
MaterialBudgetHcalHistos::sensitiveEC
std::vector< std::string > sensitiveEC
Definition: MaterialBudgetHcalHistos.h:42
MaterialBudgetHcalHistos::radLength
std::vector< double > radLength
Definition: MaterialBudgetHcalHistos.h:48
MaterialBudgetHcalHistos::me1100
TProfile2D * me1100[maxSet]
Definition: MaterialBudgetHcalHistos.h:54
MaterialBudgetHcalHistos::intLen
double intLen
Definition: MaterialBudgetHcalHistos.h:56
MaterialBudgetHcalHistos::printSum
bool printSum
Definition: MaterialBudgetHcalHistos.h:44
MaterialBudgetHcalHistos::me400
TH1F * me400[maxSet]
Definition: MaterialBudgetHcalHistos.h:49
MaterialBudgetHcalHistos::getNames
std::vector< std::string > getNames(DDFilteredView &fv)
Definition: MaterialBudgetHcalHistos.cc:407
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
MaterialBudgetHcalHistos::me1200
TH2F * me1200[maxSet]
Definition: MaterialBudgetHcalHistos.h:50
MaterialBudgetHcalHistos::fillPerStep
void fillPerStep(const G4Step *)
Definition: MaterialBudgetHcalHistos.cc:108
MaterialBudgetHcalHistos::hend
void hend()
Definition: MaterialBudgetHcalHistos.cc:403
MaterialBudgetHcalHistos::me1000
TProfile2D * me1000[maxSet]
Definition: MaterialBudgetHcalHistos.h:54
MaterialBudgetHcalHistos::isItHF
bool isItHF(const G4VTouchable *)
Definition: MaterialBudgetHcalHistos.cc:452
MaterialBudgetHcalHistos::me900
TProfile2D * me900[maxSet]
Definition: MaterialBudgetHcalHistos.h:54
MaterialBudgetHcalHistos::book
void book()
Definition: MaterialBudgetHcalHistos.cc:246
MaterialBudgetHcalHistos::fillHisto
void fillHisto(int ii)
Definition: MaterialBudgetHcalHistos.cc:337
MaterialBudgetHcalHistos::~MaterialBudgetHcalHistos
virtual ~MaterialBudgetHcalHistos()
Definition: MaterialBudgetHcalHistos.h:22
DDFilteredView.h
DDCompactView
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:80
MaterialBudgetHcalHistos::id
int id
Definition: MaterialBudgetHcalHistos.h:55
pfDeepBoostedJetPreprocessParams_cfi.sv
sv
Definition: pfDeepBoostedJetPreprocessParams_cfi.py:226
str
#define str(s)
Definition: TestProcessor.cc:48
MaterialBudgetHcalHistos::phi
double phi
Definition: MaterialBudgetHcalHistos.h:57
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
MaterialBudgetHcalHistos::me800
TH1F * me800[maxSet]
Definition: MaterialBudgetHcalHistos.h:49
MaterialBudgetHcalHistos::me1500
TProfile * me1500[maxSet2]
Definition: MaterialBudgetHcalHistos.h:53
edm::ParameterSet
Definition: ParameterSet.h:36
MaterialBudgetHcalHistos::fillLayer
void fillLayer()
Definition: MaterialBudgetHcalHistos.cc:362
MaterialBudgetHcalHistos::nlayHE
int nlayHE
Definition: MaterialBudgetHcalHistos.h:58
MaterialBudgetHcalHistos::maxSet
static const int maxSet
Definition: MaterialBudgetHcalHistos.h:41
MaterialBudgetHcalHistos::me100
TProfile * me100[maxSet]
Definition: MaterialBudgetHcalHistos.h:51
MaterialBudgetHcalHistos::isItEC
bool isItEC(std::string)
Definition: MaterialBudgetHcalHistos.cc:465
MaterialBudgetHcalHistos::etaLow
double etaLow
Definition: MaterialBudgetHcalHistos.h:46
MaterialBudgetHcalHistos::binEta
int binEta
Definition: MaterialBudgetHcalHistos.h:45
MaterialBudgetHcalHistos::hfLevels
std::vector< int > hfLevels
Definition: MaterialBudgetHcalHistos.h:43
MaterialBudgetHcalHistos::me300
TProfile * me300[maxSet]
Definition: MaterialBudgetHcalHistos.h:51
MaterialBudgetHcalHistos::etaHigh
double etaHigh
Definition: MaterialBudgetHcalHistos.h:46
MaterialBudgetHcalHistos::steps
int steps
Definition: MaterialBudgetHcalHistos.h:55
MaterialBudgetHcalHistos::layer
int layer
Definition: MaterialBudgetHcalHistos.h:55
MaterialBudgetHcalHistos::stepLen
double stepLen
Definition: MaterialBudgetHcalHistos.h:56
MaterialBudgetHcalHistos::stepLength
std::vector< double > stepLength
Definition: MaterialBudgetHcalHistos.h:48
MaterialBudgetHcalHistos::fillHistos
bool fillHistos
Definition: MaterialBudgetHcalHistos.h:44
MaterialBudgetHcalHistos::matList
std::vector< std::string > matList
Definition: MaterialBudgetHcalHistos.h:47
MaterialBudgetHcalHistos::fillEndTrack
void fillEndTrack()
Definition: MaterialBudgetHcalHistos.cc:231
MaterialBudgetHcalHistos::me600
TProfile * me600[maxSet]
Definition: MaterialBudgetHcalHistos.h:52
MaterialBudgetHcalHistos::binPhi
int binPhi
Definition: MaterialBudgetHcalHistos.h:45
DDsvalues.h
MaterialBudgetHcalHistos::sensitives
std::vector< std::string > sensitives
Definition: MaterialBudgetHcalHistos.h:42
MaterialBudgetHcalHistos::fillStartTrack
void fillStartTrack(const G4Track *)
Definition: MaterialBudgetHcalHistos.cc:81
DDFilteredView
Definition: DDFilteredView.h:20
MaterialBudgetHcalHistos::isSensitive
bool isSensitive(std::string)
Definition: MaterialBudgetHcalHistos.cc:443
MaterialBudgetHcalHistos::maxEta
double maxEta
Definition: MaterialBudgetHcalHistos.h:46
ParameterSet.h
MaterialBudgetHcalHistos::me500
TProfile * me500[maxSet]
Definition: MaterialBudgetHcalHistos.h:52
MaterialBudgetHcalHistos
Definition: MaterialBudgetHcalHistos.h:19
MaterialBudgetHcalHistos::eta
double eta
Definition: MaterialBudgetHcalHistos.h:57
DDsvalues_type
std::vector< std::pair< unsigned int, DDValue > > DDsvalues_type
Definition: DDsvalues.h:12
MaterialBudgetHcalHistos::me1400
TH2F * me1400[maxSet2]
Definition: MaterialBudgetHcalHistos.h:50
MaterialBudgetHcalHistos::me200
TProfile * me200[maxSet]
Definition: MaterialBudgetHcalHistos.h:51
MaterialBudgetHcalHistos::intLength
std::vector< double > intLength
Definition: MaterialBudgetHcalHistos.h:48
cuy.ii
ii
Definition: cuy.py:590
MaterialBudgetHcalHistos::radLen
double radLen
Definition: MaterialBudgetHcalHistos.h:56
MaterialBudgetHcalHistos::getDDDArray
std::vector< double > getDDDArray(const std::string &str, const DDsvalues_type &sv)
Definition: MaterialBudgetHcalHistos.cc:424
MaterialBudgetHcalHistos::fillBeginJob
void fillBeginJob(const DDCompactView &)
Definition: MaterialBudgetHcalHistos.cc:35
MaterialBudgetHcalHistos::hfNames
std::vector< std::string > hfNames
Definition: MaterialBudgetHcalHistos.h:42
MaterialBudgetHcalHistos::MaterialBudgetHcalHistos
MaterialBudgetHcalHistos(const edm::ParameterSet &p)
Definition: MaterialBudgetHcalHistos.cc:19
MaterialBudgetHcalHistos::nlayHB
int nlayHB
Definition: MaterialBudgetHcalHistos.h:58