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 
10 
11 #include "G4Step.hh"
12 #include "G4Track.hh"
13 
14 #include <TH1F.h>
15 #include <TH2F.h>
16 #include <TProfile.h>
17 #include <TProfile2D.h>
18 
19 #include <string>
20 #include <vector>
21 
23 public:
26 
27  void fillBeginJob(const DDCompactView &);
28  void fillBeginJob(const cms::DDCompactView &);
29  void fillStartTrack(const G4Track *);
30  void fillPerStep(const G4Step *);
31  void fillEndTrack();
32 
33 private:
34  void book();
35  void fillHisto(int ii);
36  void fillLayer();
37  void hend();
38  std::vector<std::string> getNames(DDFilteredView &fv);
39  std::vector<std::string> getNames(cms::DDFilteredView &fv);
40  std::vector<double> getDDDArray(const std::string &str, const DDsvalues_type &sv);
41  bool isSensitive(const std::string &);
42  bool isItHF(const G4VTouchable *);
43  bool isItEC(const std::string &);
44 
45 private:
46  static const int maxSet_ = 25, maxSet2_ = 9;
47  std::vector<std::string> sensitives_, hfNames_, sensitiveEC_;
48  std::vector<int> hfLevels_;
53  std::vector<std::string> matList_;
54  std::vector<double> stepLength_, radLength_, intLength_;
57  TProfile *me100[maxSet_], *me200[maxSet_], *me300[maxSet_];
58  TProfile *me500[maxSet_], *me600[maxSet_], *me700[maxSet_];
59  TProfile *me1500[maxSet2_];
63  TProfile2D *me900[maxSet_], *me1000[maxSet_], *me1100[maxSet_];
64  int id_, layer_, steps_;
66  double eta_, phi_;
68 };
69 
70 #endif
MaterialBudgetHcalHistos::isItEC
bool isItEC(const std::string &)
Definition: MaterialBudgetHcalHistos.cc:629
MaterialBudgetHcalHistos::me2100
TProfile * me2100[maxSet_]
Definition: MaterialBudgetHcalHistos.h:61
MaterialBudgetHcalHistos::etaMidMin_
double etaMidMin_
Definition: MaterialBudgetHcalHistos.h:51
MaterialBudgetHcalHistos::me1800
TProfile * me1800[maxSet_]
Definition: MaterialBudgetHcalHistos.h:60
MaterialBudgetHcalHistos::me400
TH1F * me400[maxSet_]
Definition: MaterialBudgetHcalHistos.h:55
MaterialBudgetHcalHistos::me2300
TProfile * me2300[maxSet_]
Definition: MaterialBudgetHcalHistos.h:62
MaterialBudgetHcalHistos::me800
TH1F * me800[maxSet_]
Definition: MaterialBudgetHcalHistos.h:55
MaterialBudgetHcalHistos::me1100
TProfile2D * me1100[maxSet_]
Definition: MaterialBudgetHcalHistos.h:63
MaterialBudgetHcalHistos::getNames
std::vector< std::string > getNames(DDFilteredView &fv)
Definition: MaterialBudgetHcalHistos.cc:558
MaterialBudgetHcalHistos::me300
TProfile * me300[maxSet_]
Definition: MaterialBudgetHcalHistos.h:57
MaterialBudgetHcalHistos::sensitiveEC_
std::vector< std::string > sensitiveEC_
Definition: MaterialBudgetHcalHistos.h:47
MaterialBudgetHcalHistos::fillPerStep
void fillPerStep(const G4Step *)
Definition: MaterialBudgetHcalHistos.cc:187
MaterialBudgetHcalHistos::etaLowMin_
double etaLowMin_
Definition: MaterialBudgetHcalHistos.h:51
MaterialBudgetHcalHistos::me700
TProfile * me700[maxSet_]
Definition: MaterialBudgetHcalHistos.h:58
MaterialBudgetHcalHistos::hfLevels_
std::vector< int > hfLevels_
Definition: MaterialBudgetHcalHistos.h:48
MaterialBudgetHcalHistos::nlayHO_
int nlayHO_
Definition: MaterialBudgetHcalHistos.h:67
MaterialBudgetHcalHistos::hend
void hend()
Definition: MaterialBudgetHcalHistos.cc:554
MaterialBudgetHcalHistos::etaMaxP_
double etaMaxP_
Definition: MaterialBudgetHcalHistos.h:52
MaterialBudgetHcalHistos::isItHF
bool isItHF(const G4VTouchable *)
Definition: MaterialBudgetHcalHistos.cc:614
cms::DDFilteredView
Definition: DDFilteredView.h:70
MaterialBudgetHcalHistos::etaLow_
double etaLow_
Definition: MaterialBudgetHcalHistos.h:51
MaterialBudgetHcalHistos::nlayHB_
int nlayHB_
Definition: MaterialBudgetHcalHistos.h:67
MaterialBudgetHcalHistos::printSum_
bool printSum_
Definition: MaterialBudgetHcalHistos.h:49
MaterialBudgetHcalHistos::layer_
int layer_
Definition: MaterialBudgetHcalHistos.h:64
MaterialBudgetHcalHistos::book
void book()
Definition: MaterialBudgetHcalHistos.cc:331
MaterialBudgetHcalHistos::fillHisto
void fillHisto(int ii)
Definition: MaterialBudgetHcalHistos.cc:470
MaterialBudgetHcalHistos::nlayHE_
int nlayHE_
Definition: MaterialBudgetHcalHistos.h:67
MaterialBudgetHcalHistos::~MaterialBudgetHcalHistos
virtual ~MaterialBudgetHcalHistos()
Definition: MaterialBudgetHcalHistos.h:25
DDFilteredView.h
MaterialBudgetHcalHistos::maxSet2_
static const int maxSet2_
Definition: MaterialBudgetHcalHistos.h:46
MaterialBudgetHcalHistos::me2200
TProfile * me2200[maxSet_]
Definition: MaterialBudgetHcalHistos.h:62
MaterialBudgetHcalHistos::stepLength_
std::vector< double > stepLength_
Definition: MaterialBudgetHcalHistos.h:54
MaterialBudgetHcalHistos::fromdd4hep_
bool fromdd4hep_
Definition: MaterialBudgetHcalHistos.h:49
MaterialBudgetHcalHistos::me2400
TProfile * me2400[maxSet_]
Definition: MaterialBudgetHcalHistos.h:62
MaterialBudgetHcalHistos::radLen_
double radLen_
Definition: MaterialBudgetHcalHistos.h:65
DDCompactView
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:81
pfDeepBoostedJetPreprocessParams_cfi.sv
sv
Definition: pfDeepBoostedJetPreprocessParams_cfi.py:352
MaterialBudgetHcalHistos::nlayHF_
int nlayHF_
Definition: MaterialBudgetHcalHistos.h:67
MaterialBudgetHcalHistos::stepLen_
double stepLen_
Definition: MaterialBudgetHcalHistos.h:65
str
#define str(s)
Definition: TestProcessor.cc:53
MaterialBudgetHcalHistos::me1300
TH1F * me1300[maxSet2_]
Definition: MaterialBudgetHcalHistos.h:55
MaterialBudgetHcalHistos::etaHighMax_
double etaHighMax_
Definition: MaterialBudgetHcalHistos.h:52
DDFilteredView.h
MaterialBudgetHcalHistos::me1000
TProfile2D * me1000[maxSet_]
Definition: MaterialBudgetHcalHistos.h:63
MaterialBudgetHcalHistos::phi_
double phi_
Definition: MaterialBudgetHcalHistos.h:66
DDCompactView.h
MaterialBudgetHcalHistos::maxSet_
static const int maxSet_
Definition: MaterialBudgetHcalHistos.h:46
MaterialBudgetHcalHistos::intLen_
double intLen_
Definition: MaterialBudgetHcalHistos.h:65
MaterialBudgetHcalHistos::isSensitive
bool isSensitive(const std::string &)
Definition: MaterialBudgetHcalHistos.cc:604
MaterialBudgetHcalHistos::etaHighMin_
double etaHighMin_
Definition: MaterialBudgetHcalHistos.h:52
MaterialBudgetHcalHistos::etaHigh_
double etaHigh_
Definition: MaterialBudgetHcalHistos.h:51
MaterialBudgetHcalHistos::binEta_
int binEta_
Definition: MaterialBudgetHcalHistos.h:50
edm::ParameterSet
Definition: ParameterSet.h:47
MaterialBudgetHcalHistos::etaLowMax_
double etaLowMax_
Definition: MaterialBudgetHcalHistos.h:51
MaterialBudgetHcalHistos::fillLayer
void fillLayer()
Definition: MaterialBudgetHcalHistos.cc:513
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
MaterialBudgetHcalHistos::me1900
TProfile * me1900[maxSet_]
Definition: MaterialBudgetHcalHistos.h:61
MaterialBudgetHcalHistos::intLength_
std::vector< double > intLength_
Definition: MaterialBudgetHcalHistos.h:54
MaterialBudgetHcalHistos::me600
TProfile * me600[maxSet_]
Definition: MaterialBudgetHcalHistos.h:58
MaterialBudgetHcalHistos::me200
TProfile * me200[maxSet_]
Definition: MaterialBudgetHcalHistos.h:57
MaterialBudgetHcalHistos::me1700
TProfile * me1700[maxSet_]
Definition: MaterialBudgetHcalHistos.h:60
MaterialBudgetHcalHistos::etaMinP_
double etaMinP_
Definition: MaterialBudgetHcalHistos.h:52
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
MaterialBudgetHcalHistos::radLength_
std::vector< double > radLength_
Definition: MaterialBudgetHcalHistos.h:54
MaterialBudgetHcalHistos::me1500
TProfile * me1500[maxSet2_]
Definition: MaterialBudgetHcalHistos.h:59
MaterialBudgetHcalHistos::etaMidMax_
double etaMidMax_
Definition: MaterialBudgetHcalHistos.h:52
MaterialBudgetHcalHistos::fillEndTrack
void fillEndTrack()
Definition: MaterialBudgetHcalHistos.cc:315
MaterialBudgetHcalHistos::id_
int id_
Definition: MaterialBudgetHcalHistos.h:64
cms::DDCompactView
Definition: DDCompactView.h:31
MaterialBudgetHcalHistos::me2000
TProfile * me2000[maxSet_]
Definition: MaterialBudgetHcalHistos.h:61
MaterialBudgetHcalHistos::sensitives_
std::vector< std::string > sensitives_
Definition: MaterialBudgetHcalHistos.h:47
MaterialBudgetHcalHistos::fillHistos_
bool fillHistos_
Definition: MaterialBudgetHcalHistos.h:49
MaterialBudgetHcalHistos::me900
TProfile2D * me900[maxSet_]
Definition: MaterialBudgetHcalHistos.h:63
DDsvalues.h
MaterialBudgetHcalHistos::fillStartTrack
void fillStartTrack(const G4Track *)
Definition: MaterialBudgetHcalHistos.cc:158
DDFilteredView
Definition: DDFilteredView.h:20
MaterialBudgetHcalHistos::me1200
TH2F * me1200[maxSet_]
Definition: MaterialBudgetHcalHistos.h:56
MaterialBudgetHcalHistos::me1600
TProfile * me1600[maxSet_]
Definition: MaterialBudgetHcalHistos.h:60
ParameterSet.h
MaterialBudgetHcalHistos::me500
TProfile * me500[maxSet_]
Definition: MaterialBudgetHcalHistos.h:58
MaterialBudgetHcalHistos
Definition: MaterialBudgetHcalHistos.h:22
DDsvalues_type
std::vector< std::pair< unsigned int, DDValue > > DDsvalues_type
Definition: DDsvalues.h:12
MaterialBudgetHcalHistos::me1400
TH2F * me1400[maxSet2_]
Definition: MaterialBudgetHcalHistos.h:56
cuy.ii
ii
Definition: cuy.py:589
MaterialBudgetHcalHistos::getDDDArray
std::vector< double > getDDDArray(const std::string &str, const DDsvalues_type &sv)
Definition: MaterialBudgetHcalHistos.cc:587
MaterialBudgetHcalHistos::steps_
int steps_
Definition: MaterialBudgetHcalHistos.h:64
MaterialBudgetHcalHistos::matList_
std::vector< std::string > matList_
Definition: MaterialBudgetHcalHistos.h:53
MaterialBudgetHcalHistos::maxEta_
double maxEta_
Definition: MaterialBudgetHcalHistos.h:51
MaterialBudgetHcalHistos::fillBeginJob
void fillBeginJob(const DDCompactView &)
Definition: MaterialBudgetHcalHistos.cc:49
MaterialBudgetHcalHistos::me100
TProfile * me100[maxSet_]
Definition: MaterialBudgetHcalHistos.h:57
MaterialBudgetHcalHistos::binPhi_
int binPhi_
Definition: MaterialBudgetHcalHistos.h:50
MaterialBudgetHcalHistos::hfNames_
std::vector< std::string > hfNames_
Definition: MaterialBudgetHcalHistos.h:47
MaterialBudgetHcalHistos::MaterialBudgetHcalHistos
MaterialBudgetHcalHistos(const edm::ParameterSet &p)
Definition: MaterialBudgetHcalHistos.cc:20
MaterialBudgetHcalHistos::eta_
double eta_
Definition: MaterialBudgetHcalHistos.h:66