CMS 3D CMS Logo

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