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 
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 
84  std::vector<idType> types;
88 
89  std::vector<MonitorElement *> meHcalHitEta_, meHcalHitTimeEta_;
90  std::vector<MonitorElement *> meHcalEnergyl25_, meHcalEnergyl50_;
91  std::vector<MonitorElement *> meHcalEnergyl100_, meHcalEnergyl250_;
96 };
97 
98 #endif
SimHitsValidationHcal::metime_enweighted_HF
MonitorElement * metime_enweighted_HF
Definition: SimHitsValidationHcal.h:95
dqm::impl::MonitorElement
Definition: MonitorElement.h:98
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
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:94
SimHitsValidationHcal::energysum::energysum
energysum()
Definition: SimHitsValidationHcal.h:44
SimHitsValidationHcal::hcons
const HcalDDDRecConstants * hcons
Definition: SimHitsValidationHcal.h:83
SimHitsValidationHcal::hcalHits_
std::string hcalHits_
Definition: SimHitsValidationHcal.h:81
SimHitsValidationHcal::meEnergy_HO
MonitorElement * meEnergy_HO
Definition: SimHitsValidationHcal.h:94
DQMStore.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:84
SimHitsValidationHcal::~SimHitsValidationHcal
~SimHitsValidationHcal() override
Definition: SimHitsValidationHcal.cc:20
SimHitsValidationHcal::maxDepthHF_
int maxDepthHF_
Definition: SimHitsValidationHcal.h:87
SimHitsValidationHcal::energysum::e100
double e100
Definition: SimHitsValidationHcal.h:43
HcalEmpty
Definition: HcalAssistant.h:32
SimHitsValidationHcal::meHcalEnergyl100_
std::vector< MonitorElement * > meHcalEnergyl100_
Definition: SimHitsValidationHcal.h:91
SimHitsValidationHcal::meHcalEnergyl50_
std::vector< MonitorElement * > meHcalEnergyl50_
Definition: SimHitsValidationHcal.h:90
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:69
SimHitsValidationHcal::metime_enweighted_HO
MonitorElement * metime_enweighted_HO
Definition: SimHitsValidationHcal.h:94
SimHitsValidationHcal::maxDepthHO_
int maxDepthHO_
Definition: SimHitsValidationHcal.h:87
SimHitsValidationHcal::SimHitsValidationHcal
SimHitsValidationHcal(const edm::ParameterSet &ps)
Definition: SimHitsValidationHcal.cc:8
SimHitsValidationHcal::metime_HE
MonitorElement * metime_HE
Definition: SimHitsValidationHcal.h:93
SimHitsValidationHcal::metime_enweighted_HB
MonitorElement * metime_enweighted_HB
Definition: SimHitsValidationHcal.h:92
LEDCalibrationChannels.depth
depth
Definition: LEDCalibrationChannels.py:65
SimHitsValidationHcal::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: SimHitsValidationHcal.cc:465
SimHitsValidationHcal::meHcalEnergyl25_
std::vector< MonitorElement * > meHcalEnergyl25_
Definition: SimHitsValidationHcal.h:90
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:36
SimHitsValidationHcal::meHcalHitTimeEta_
std::vector< MonitorElement * > meHcalHitTimeEta_
Definition: SimHitsValidationHcal.h:89
SimHitsValidationHcal::histId
std::pair< int, int > histId(int subdet, int eta, int depth, unsigned int dep)
Definition: SimHitsValidationHcal.cc:355
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:93
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:307
edm::EventSetup
Definition: EventSetup.h:57
SimHitsValidationHcal::idType::depth2
int depth2
Definition: SimHitsValidationHcal.h:59
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
SimHitsValidationHcal::metime_HF
MonitorElement * metime_HF
Definition: SimHitsValidationHcal.h:95
SimHitsValidationHcal::meEnergy_HB
MonitorElement * meEnergy_HB
Definition: SimHitsValidationHcal.h:92
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:91
Frameworkfwd.h
SimHitsValidationHcal::meHcalHitEta_
std::vector< MonitorElement * > meHcalHitEta_
Definition: SimHitsValidationHcal.h:89
SimHitsValidationHcal
Definition: SimHitsValidationHcal.h:29
HcalDDDRecConstants.h
SimHitsValidationHcal::metime_HB
MonitorElement * metime_HB
Definition: SimHitsValidationHcal.h:92
EventSetup.h
PCaloHitContainer.h
SimHitsValidationHcal::verbose_
bool verbose_
Definition: SimHitsValidationHcal.h:85
dqm::implementation::IBooker
Definition: DQMStore.h:43
SimHitsValidationHcal::maxDepthHB_
int maxDepthHB_
Definition: SimHitsValidationHcal.h:86
HcalDDDRecConstants
Definition: HcalDDDRecConstants.h:23
SimHitsValidationHcal::getHistogramTypes
std::vector< std::pair< std::string, std::string > > getHistogramTypes()
Definition: SimHitsValidationHcal.cc:387
SimHitsValidationHcal::idType::idType
idType()
Definition: SimHitsValidationHcal.h:48
SimHitsValidationHcal::analyzeHits
void analyzeHits(std::vector< PCaloHit > &)
Definition: SimHitsValidationHcal.cc:186
ParameterSet.h
SimHitsValidationHcal::meEnergy_HF
MonitorElement * meEnergy_HF
Definition: SimHitsValidationHcal.h:95
edm::Event
Definition: Event.h:73
SimHitsValidationHcal::metime_enweighted_HE
MonitorElement * metime_enweighted_HE
Definition: SimHitsValidationHcal.h:93
SimHitsValidationHcal::etaRange::bins
int bins
Definition: SimHitsValidationHcal.h:72
SimHitsValidationHcal::maxDepthHE_
int maxDepthHE_
Definition: SimHitsValidationHcal.h:86
SimHitsValidationHcal::testNumber_
bool testNumber_
Definition: SimHitsValidationHcal.h:85
d1
static constexpr float d1
Definition: L1EGammaCrystalsEmulatorProducer.cc:84
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:150
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
SimHitsValidationHcal::etaRange::high
double high
Definition: SimHitsValidationHcal.h:73