CMS 3D CMS Logo

HcalSimHitsValidation.h
Go to the documentation of this file.
1 #ifndef HcalSimHitsValidation_H
2 #define HcalSimHitsValidation_H
3 
14 
16 
19 
23 
30 
33 
34 #include <algorithm>
35 #include <cmath>
36 #include <ostream>
37 #include <string>
38 #include <utility>
39 #include <vector>
40 
42 public:
44  ~HcalSimHitsValidation() override;
45 
46  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
47 
48  void analyze(edm::Event const &ev, edm::EventSetup const &c) override;
49  void endJob() override;
50 
51 private:
52  double dR(double eta1, double phi1, double eta2, double phi2);
53  double phi12(double phi1, double en1, double phi2, double en2);
54  double dPhiWsign(double phi1, double phi2);
55 
58 
63 
67 
69  bool auxPlots_;
70 
71  // Hits counters
72  std::vector<MonitorElement *> Nhb;
73  std::vector<MonitorElement *> Nhe;
75  std::vector<MonitorElement *> Nhf;
76 
77  // In ALL other cases : 2D ieta-iphi maps
78  // without and with cuts (a la "Scheme B") on energy
79  // - only in the cone around particle for single-part samples (mc = "yes")
80  // - for all calls in milti-particle samples (mc = "no")
81 
82  std::vector<MonitorElement *> emean_vs_ieta_HB;
83  std::vector<MonitorElement *> emean_vs_ieta_HE;
85  std::vector<MonitorElement *> emean_vs_ieta_HF;
86 
87  std::vector<MonitorElement *> occupancy_vs_ieta_HB;
88  std::vector<MonitorElement *> occupancy_vs_ieta_HE;
90  std::vector<MonitorElement *> occupancy_vs_ieta_HF;
91 
92  // for single monoenergetic particles - cone collection profile vs ieta.
96 
97  // energy of rechits
98  std::vector<MonitorElement *> meSimHitsEnergyHB;
99  std::vector<MonitorElement *> meSimHitsEnergyHE;
101  std::vector<MonitorElement *> meSimHitsEnergyHF;
102 
104 
105  // counter
106  int nevtot;
107 
108  // sampling factors
109  double hf1_;
110  double hf2_;
111 };
112 
113 #endif
dqm::impl::MonitorElement
Definition: MonitorElement.h:98
HcalSimHitsValidation::emean_vs_ieta_HE
std::vector< MonitorElement * > emean_vs_ieta_HE
Definition: HcalSimHitsValidation.h:83
HcalSimHitsValidation::tok_hcal_
edm::EDGetTokenT< edm::PCaloHitContainer > tok_hcal_
Definition: HcalSimHitsValidation.h:60
MessageLogger.h
HcalSimHitsValidation::occupancy_vs_ieta_HE
std::vector< MonitorElement * > occupancy_vs_ieta_HE
Definition: HcalSimHitsValidation.h:88
HcalSimHitsValidation::occupancy_vs_ieta_HB
std::vector< MonitorElement * > occupancy_vs_ieta_HB
Definition: HcalSimHitsValidation.h:87
HcalSimHitsValidation::tok_evt_
edm::EDGetTokenT< edm::HepMCProduct > tok_evt_
Definition: HcalSimHitsValidation.h:59
ESHandle.h
HcalSimHitsValidation::outputFile_
std::string outputFile_
Definition: HcalSimHitsValidation.h:56
edm::Run
Definition: Run.h:45
HcalSimHitsValidation::nevtot
int nevtot
Definition: HcalSimHitsValidation.h:106
edm::EDGetTokenT< edm::HepMCProduct >
HcalSimHitsValidation::maxDepthHB_
int maxDepthHB_
Definition: HcalSimHitsValidation.h:65
EBDetId.h
HLT_2018_cff.eta1
eta1
Definition: HLT_2018_cff.py:8220
EEDetId.h
DQMOneEDAnalyzer
Definition: DQMOneEDAnalyzer.h:20
DQMStore.h
HcalSimHitsValidation::meEnConeEtaProfile
MonitorElement * meEnConeEtaProfile
Definition: HcalSimHitsValidation.h:93
HcalSimHitsValidation::meEnConeEtaProfile_EH
MonitorElement * meEnConeEtaProfile_EH
Definition: HcalSimHitsValidation.h:95
HcalSimHitsValidation::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: HcalSimHitsValidation.cc:37
HcalSimHitsValidation::g4Label_
std::string g4Label_
Definition: HcalSimHitsValidation.h:57
HcalSimHitsValidation::endJob
void endJob() override
Definition: HcalSimHitsValidation.cc:248
EcalRecHitCollections.h
HcalSimHitsValidation::ebHits_
std::string ebHits_
Definition: HcalSimHitsValidation.h:57
DQMOneEDAnalyzer.h
HcalSimHitsValidation
Definition: HcalSimHitsValidation.h:41
HcalSimHitsValidation::meSimHitsEnergyHO
MonitorElement * meSimHitsEnergyHO
Definition: HcalSimHitsValidation.h:100
HcalSimHitsValidation::occupancy_vs_ieta_HO
MonitorElement * occupancy_vs_ieta_HO
Definition: HcalSimHitsValidation.h:89
MakerMacros.h
HcalSimHitsValidation::maxDepthHF_
int maxDepthHF_
Definition: HcalSimHitsValidation.h:66
HcalSimHitsValidation::dPhiWsign
double dPhiWsign(double phi1, double phi2)
Definition: HcalSimHitsValidation.cc:517
Service.h
HcalSimHitsValidation::HcalSimHitsValidation
HcalSimHitsValidation(edm::ParameterSet const &conf)
Definition: HcalSimHitsValidation.cc:5
HcalSimHitsValidation::hcons
const HcalDDDRecConstants * hcons
Definition: HcalSimHitsValidation.h:64
edm::ESHandle< CaloGeometry >
HcalSimHitsValidation::Nhf
std::vector< MonitorElement * > Nhf
Definition: HcalSimHitsValidation.h:75
HcalSimHitsValidation::auxPlots_
bool auxPlots_
Definition: HcalSimHitsValidation.h:69
HcalSimHitsValidation::Nho
MonitorElement * Nho
Definition: HcalSimHitsValidation.h:74
HcalSimHitsValidation::Nhe
std::vector< MonitorElement * > Nhe
Definition: HcalSimHitsValidation.h:73
HcalSimHitsValidation::emean_vs_ieta_HB
std::vector< MonitorElement * > emean_vs_ieta_HB
Definition: HcalSimHitsValidation.h:82
HLT_2018_cff.eta2
eta2
Definition: HLT_2018_cff.py:8221
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
CaloSubdetectorGeometry.h
HcalSimHitsValidation::tok_ecalEB_
edm::EDGetTokenT< edm::PCaloHitContainer > tok_ecalEB_
Definition: HcalSimHitsValidation.h:61
edm::ParameterSet
Definition: ParameterSet.h:36
HcalSimHitsValidation::analyze
void analyze(edm::Event const &ev, edm::EventSetup const &c) override
Definition: HcalSimHitsValidation.cc:288
HcalSimHitsValidation::emean_vs_ieta_HO
MonitorElement * emean_vs_ieta_HO
Definition: HcalSimHitsValidation.h:84
Event.h
HcalSimHitsValidation::Nhb
std::vector< MonitorElement * > Nhb
Definition: HcalSimHitsValidation.h:72
HcalSimHitsValidation::eeHits_
std::string eeHits_
Definition: HcalSimHitsValidation.h:57
HcalSimHitsValidation::dR
double dR(double eta1, double phi1, double eta2, double phi2)
Definition: HcalSimHitsValidation.cc:484
HcalDetId.h
ModuleDef.h
HcalSimHitsValidation::testNumber_
bool testNumber_
Definition: HcalSimHitsValidation.h:68
edm::EventSetup
Definition: EventSetup.h:57
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
HcalSimHitsValidation::occupancy_vs_ieta_HF
std::vector< MonitorElement * > occupancy_vs_ieta_HF
Definition: HcalSimHitsValidation.h:90
HcalSimHitsValidation::hcalHits_
std::string hcalHits_
Definition: HcalSimHitsValidation.h:57
HcalElectronicsId.h
CaloCellGeometry.h
HcalSimHitsValidation::hf2_
double hf2_
Definition: HcalSimHitsValidation.h:110
HcalSimHitsValidation::meSimHitsEnergyHB
std::vector< MonitorElement * > meSimHitsEnergyHB
Definition: HcalSimHitsValidation.h:98
HcalSimHitsValidation::tok_ecalEE_
edm::EDGetTokenT< edm::PCaloHitContainer > tok_ecalEE_
Definition: HcalSimHitsValidation.h:62
HcalSimHitsValidation::meSimHitsEnergyHF
std::vector< MonitorElement * > meSimHitsEnergyHF
Definition: HcalSimHitsValidation.h:101
Frameworkfwd.h
HcalSimHitsValidation::phi12
double phi12(double phi1, double en1, double phi2, double en2)
Definition: HcalSimHitsValidation.cc:498
HcalSimHitsValidation::~HcalSimHitsValidation
~HcalSimHitsValidation() override
Definition: HcalSimHitsValidation.cc:35
ev
bool ev
Definition: Hydjet2Hadronizer.cc:95
CaloGeometry.h
HcalDDDRecConstants.h
HcalSourcePositionData.h
EventSetup.h
HcalRecHitCollections.h
PCaloHitContainer.h
dqm::implementation::IBooker
Definition: DQMStore.h:43
HcalSimHitsValidation::meEnConeEtaProfile_E
MonitorElement * meEnConeEtaProfile_E
Definition: HcalSimHitsValidation.h:94
HcalDDDRecConstants
Definition: HcalDDDRecConstants.h:23
HcalSimHitsValidation::emean_vs_ieta_HF
std::vector< MonitorElement * > emean_vs_ieta_HF
Definition: HcalSimHitsValidation.h:85
HcalSimHitsValidation::meSimHitsEnergyHE
std::vector< MonitorElement * > meSimHitsEnergyHE
Definition: HcalSimHitsValidation.h:99
ParameterSet.h
HcalSimHitsValidation::maxDepthHO_
int maxDepthHO_
Definition: HcalSimHitsValidation.h:66
HepMCProduct.h
HcalSimHitsValidation::geometry
edm::ESHandle< CaloGeometry > geometry
Definition: HcalSimHitsValidation.h:103
edm::Event
Definition: Event.h:73
HcalSimHitsValidation::maxDepthHE_
int maxDepthHE_
Definition: HcalSimHitsValidation.h:65
HcalSimHitsValidation::hf1_
double hf1_
Definition: HcalSimHitsValidation.h:109