CMS 3D CMS Logo

SimHitsValidationHcal.h
Go to the documentation of this file.
1 #ifndef ValidationSimHitsValidationHcal_H
2 #define ValidationSimHitsValidationHcal_H
3 
6 
11 
14 
17 
23 
24 #include <fstream>
25 #include <iostream>
26 #include <map>
27 #include <string>
28 #include <vector>
29 
31 public:
33  ~SimHitsValidationHcal() override;
34  static void fillDescriptions(edm::ConfigurationDescriptions &descriptions);
35 
36 protected:
37  void analyze(const edm::Event &e, const edm::EventSetup &c) override;
38  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
39 
40  void analyzeHits(std::vector<PCaloHit> &);
41 
42 private:
43  struct energysum {
44  double e25, e50, e100, e250;
45  energysum() { e25 = e50 = e100 = e250 = 0.0; }
46  };
47 
48  struct idType {
49  idType() {
50  subdet = HcalEmpty;
51  z = depth1 = depth2 = 0;
52  }
53  idType(HcalSubdetector det, int iz, int d1, int d2) {
54  subdet = det;
55  z = iz;
56  depth1 = d1;
57  depth2 = d2;
58  }
60  int z, depth1, depth2;
61  };
62 
63  struct etaRange {
65  bins = 0;
66  low = high = 0;
67  }
68  etaRange(int bin, double min, double max) {
69  bins = bin;
70  low = min;
71  high = max;
72  }
73  int bins;
74  double low, high;
75  };
76 
77  std::vector<std::pair<std::string, std::string>> getHistogramTypes();
79  std::pair<int, int> histId(int subdet, int eta, int depth, unsigned int dep);
80 
86  std::vector<idType> types;
90 
91  std::vector<MonitorElement *> meHcalHitEta_, meHcalHitTimeEta_;
92  std::vector<MonitorElement *> meHcalEnergyl25_, meHcalEnergyl50_;
93  std::vector<MonitorElement *> meHcalEnergyl100_, meHcalEnergyl250_;
98 };
99 
100 #endif
SimHitsValidationHcal::metime_enweighted_HF
MonitorElement * metime_enweighted_HF
Definition: SimHitsValidationHcal.h:97
dqm::impl::MonitorElement
Definition: MonitorElement.h:98
SimHitsValidationHcal::tok_HRNDC_
edm::ESGetToken< HcalDDDRecConstants, HcalRecNumberingRecord > tok_HRNDC_
Definition: SimHitsValidationHcal.h:84
MessageLogger.h
SimHitsValidationHcal::etaRange::etaRange
etaRange(int bin, double min, double max)
Definition: SimHitsValidationHcal.h:68
SimHitsValidationHcal::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: SimHitsValidationHcal.cc:22
ESHandle.h
edm::Run
Definition: Run.h:45
min
T min(T a, T b)
Definition: MathUtil.h:58
edm::EDGetTokenT< edm::PCaloHitContainer >
SimHitsValidationHcal::metime_HO
MonitorElement * metime_HO
Definition: SimHitsValidationHcal.h:96
SimHitsValidationHcal::energysum::energysum
energysum()
Definition: SimHitsValidationHcal.h:45
SimHitsValidationHcal::hcons
const HcalDDDRecConstants * hcons
Definition: SimHitsValidationHcal.h:85
SimHitsValidationHcal::hcalHits_
std::string hcalHits_
Definition: SimHitsValidationHcal.h:82
SimHitsValidationHcal::meEnergy_HO
MonitorElement * meEnergy_HO
Definition: SimHitsValidationHcal.h:96
DQMStore.h
HcalRecNumberingRecord.h
SimHitsValidationHcal::tok_hits_
edm::EDGetTokenT< edm::PCaloHitContainer > tok_hits_
Definition: SimHitsValidationHcal.h:83
SimHitsValidationHcal::energysum::e250
double e250
Definition: SimHitsValidationHcal.h:44
SimHitsValidationHcal::types
std::vector< idType > types
Definition: SimHitsValidationHcal.h:86
SimHitsValidationHcal::~SimHitsValidationHcal
~SimHitsValidationHcal() override
Definition: SimHitsValidationHcal.cc:20
SimHitsValidationHcal::maxDepthHF_
int maxDepthHF_
Definition: SimHitsValidationHcal.h:89
SimHitsValidationHcal::energysum::e100
double e100
Definition: SimHitsValidationHcal.h:44
HcalEmpty
Definition: HcalAssistant.h:32
SimHitsValidationHcal::meHcalEnergyl100_
std::vector< MonitorElement * > meHcalEnergyl100_
Definition: SimHitsValidationHcal.h:93
SimHitsValidationHcal::meHcalEnergyl50_
std::vector< MonitorElement * > meHcalEnergyl50_
Definition: SimHitsValidationHcal.h:92
SimHitsValidationHcal::energysum
Definition: SimHitsValidationHcal.h:43
MakerMacros.h
SimHitsValidationHcal::energysum::e50
double e50
Definition: SimHitsValidationHcal.h:44
SimHitsValidationHcal::initialized
bool initialized
Definition: SimHitsValidationHcal.h:81
Service.h
PVValHelper::eta
Definition: PVValidationHelpers.h:69
SimHitsValidationHcal::metime_enweighted_HO
MonitorElement * metime_enweighted_HO
Definition: SimHitsValidationHcal.h:96
SimHitsValidationHcal::maxDepthHO_
int maxDepthHO_
Definition: SimHitsValidationHcal.h:89
SimHitsValidationHcal::SimHitsValidationHcal
SimHitsValidationHcal(const edm::ParameterSet &ps)
Definition: SimHitsValidationHcal.cc:7
SimHitsValidationHcal::metime_HE
MonitorElement * metime_HE
Definition: SimHitsValidationHcal.h:95
SimHitsValidationHcal::metime_enweighted_HB
MonitorElement * metime_enweighted_HB
Definition: SimHitsValidationHcal.h:94
LEDCalibrationChannels.depth
depth
Definition: LEDCalibrationChannels.py:65
SimHitsValidationHcal::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: SimHitsValidationHcal.cc:464
SimHitsValidationHcal::meHcalEnergyl25_
std::vector< MonitorElement * > meHcalEnergyl25_
Definition: SimHitsValidationHcal.h:92
DQMEDAnalyzer.h
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DQMEDAnalyzer
Definition: DQMEDAnalyzer.py:1
edm::ParameterSet
Definition: ParameterSet.h:47
SimHitsValidationHcal::meHcalHitTimeEta_
std::vector< MonitorElement * > meHcalHitTimeEta_
Definition: SimHitsValidationHcal.h:91
SimHitsValidationHcal::histId
std::pair< int, int > histId(int subdet, int eta, int depth, unsigned int dep)
Definition: SimHitsValidationHcal.cc:354
Event.h
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
SimHitsValidationHcal::etaRange::etaRange
etaRange()
Definition: SimHitsValidationHcal.h:64
HcalDetId.h
PCaloHit.h
SimHitsValidationHcal::meEnergy_HE
MonitorElement * meEnergy_HE
Definition: SimHitsValidationHcal.h:95
SimHitsValidationHcal::g4Label_
std::string g4Label_
Definition: SimHitsValidationHcal.h:82
SimHitsValidationHcal::idType::depth1
int depth1
Definition: SimHitsValidationHcal.h:60
SimHitsValidationHcal::idType::idType
idType(HcalSubdetector det, int iz, int d1, int d2)
Definition: SimHitsValidationHcal.h:53
SimHitsValidationHcal::etaRange
Definition: SimHitsValidationHcal.h:63
SimHitsValidationHcal::idType::subdet
HcalSubdetector subdet
Definition: SimHitsValidationHcal.h:59
SimHitsValidationHcal::getLimits
etaRange getLimits(idType)
Definition: SimHitsValidationHcal.cc:306
edm::EventSetup
Definition: EventSetup.h:57
SimHitsValidationHcal::idType::depth2
int depth2
Definition: SimHitsValidationHcal.h:60
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
SimHitsValidationHcal::metime_HF
MonitorElement * metime_HF
Definition: SimHitsValidationHcal.h:97
edm::ESGetToken< HcalDDDRecConstants, HcalRecNumberingRecord >
SimHitsValidationHcal::meEnergy_HB
MonitorElement * meEnergy_HB
Definition: SimHitsValidationHcal.h:94
SimHitsValidationHcal::energysum::e25
double e25
Definition: SimHitsValidationHcal.h:44
newFWLiteAna.bin
bin
Definition: newFWLiteAna.py:161
HcalSubdetector
HcalSubdetector
Definition: HcalAssistant.h:31
SimHitsValidationHcal::idType
Definition: SimHitsValidationHcal.h:48
SimHitsValidationHcal::etaRange::low
double low
Definition: SimHitsValidationHcal.h:74
SimHitsValidationHcal::meHcalEnergyl250_
std::vector< MonitorElement * > meHcalEnergyl250_
Definition: SimHitsValidationHcal.h:93
Frameworkfwd.h
SimHitsValidationHcal::meHcalHitEta_
std::vector< MonitorElement * > meHcalHitEta_
Definition: SimHitsValidationHcal.h:91
SimHitsValidationHcal
Definition: SimHitsValidationHcal.h:30
HcalDDDRecConstants.h
SimHitsValidationHcal::metime_HB
MonitorElement * metime_HB
Definition: SimHitsValidationHcal.h:94
EventSetup.h
PCaloHitContainer.h
SimHitsValidationHcal::verbose_
bool verbose_
Definition: SimHitsValidationHcal.h:87
dqm::implementation::IBooker
Definition: DQMStore.h:43
SimHitsValidationHcal::maxDepthHB_
int maxDepthHB_
Definition: SimHitsValidationHcal.h:88
HcalDDDRecConstants
Definition: HcalDDDRecConstants.h:23
SimHitsValidationHcal::getHistogramTypes
std::vector< std::pair< std::string, std::string > > getHistogramTypes()
Definition: SimHitsValidationHcal.cc:386
SimHitsValidationHcal::idType::idType
idType()
Definition: SimHitsValidationHcal.h:49
SimHitsValidationHcal::analyzeHits
void analyzeHits(std::vector< PCaloHit > &)
Definition: SimHitsValidationHcal.cc:185
ParameterSet.h
SimHitsValidationHcal::meEnergy_HF
MonitorElement * meEnergy_HF
Definition: SimHitsValidationHcal.h:97
edm::Event
Definition: Event.h:73
SimHitsValidationHcal::metime_enweighted_HE
MonitorElement * metime_enweighted_HE
Definition: SimHitsValidationHcal.h:95
SimHitsValidationHcal::etaRange::bins
int bins
Definition: SimHitsValidationHcal.h:73
SimHitsValidationHcal::maxDepthHE_
int maxDepthHE_
Definition: SimHitsValidationHcal.h:88
SimHitsValidationHcal::testNumber_
bool testNumber_
Definition: SimHitsValidationHcal.h:87
d1
static constexpr float d1
Definition: L1EGammaCrystalsEmulatorProducer.cc:84
SimHitsValidationHcal::idType::z
int z
Definition: SimHitsValidationHcal.h:60
SimHitsValidationHcal::analyze
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Definition: SimHitsValidationHcal.cc:149
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
SimHitsValidationHcal::etaRange::high
double high
Definition: SimHitsValidationHcal.h:74