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 
35 #include <algorithm>
36 #include <cmath>
37 #include <ostream>
38 #include <string>
39 #include <utility>
40 #include <vector>
41 
43 public:
45  ~HcalSimHitsValidation() override;
46 
47  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
48 
49  void analyze(edm::Event const &ev, edm::EventSetup const &c) override;
50  void endJob() override;
51 
52 private:
53  double dR(double eta1, double phi1, double eta2, double phi2);
54  double phi12(double phi1, double en1, double phi2, double en2);
55  double dPhiWsign(double phi1, double phi2);
56 
59 
64 
68 
70  bool auxPlots_;
71 
72  // Hits counters
73  std::vector<MonitorElement *> Nhb;
74  std::vector<MonitorElement *> Nhe;
76  std::vector<MonitorElement *> Nhf;
77 
78  // In ALL other cases : 2D ieta-iphi maps
79  // without and with cuts (a la "Scheme B") on energy
80  // - only in the cone around particle for single-part samples (mc = "yes")
81  // - for all calls in milti-particle samples (mc = "no")
82 
83  std::vector<MonitorElement *> emean_vs_ieta_HB;
84  std::vector<MonitorElement *> emean_vs_ieta_HE;
86  std::vector<MonitorElement *> emean_vs_ieta_HF;
87 
88  std::vector<MonitorElement *> occupancy_vs_ieta_HB;
89  std::vector<MonitorElement *> occupancy_vs_ieta_HE;
91  std::vector<MonitorElement *> occupancy_vs_ieta_HF;
92 
93  // for single monoenergetic particles - cone collection profile vs ieta.
97 
98  // energy of rechits
99  std::vector<MonitorElement *> meSimHitsEnergyHB;
100  std::vector<MonitorElement *> meSimHitsEnergyHE;
102  std::vector<MonitorElement *> meSimHitsEnergyHF;
103 
105 
106  // counter
107  int nevtot;
108 
109  // sampling factors
110  double hf1_;
111  double hf2_;
112 };
113 
114 #endif
MonitorElement * meEnConeEtaProfile
double dR(double eta1, double phi1, double eta2, double phi2)
std::vector< MonitorElement * > emean_vs_ieta_HF
double phi12(double phi1, double en1, double phi2, double en2)
std::vector< MonitorElement * > occupancy_vs_ieta_HF
void analyze(edm::Event const &ev, edm::EventSetup const &c) override
std::vector< MonitorElement * > Nhf
std::vector< MonitorElement * > meSimHitsEnergyHE
MonitorElement * meSimHitsEnergyHO
bool ev
edm::EDGetTokenT< edm::PCaloHitContainer > tok_ecalEB_
MonitorElement * meEnConeEtaProfile_E
std::vector< MonitorElement * > emean_vs_ieta_HB
std::vector< MonitorElement * > meSimHitsEnergyHB
edm::EDGetTokenT< edm::PCaloHitContainer > tok_ecalEE_
MonitorElement * emean_vs_ieta_HO
std::vector< MonitorElement * > emean_vs_ieta_HE
edm::EDGetTokenT< edm::PCaloHitContainer > tok_hcal_
double dPhiWsign(double phi1, double phi2)
std::vector< MonitorElement * > occupancy_vs_ieta_HE
HcalSimHitsValidation(edm::ParameterSet const &conf)
const HcalDDDRecConstants * hcons
MonitorElement * meEnConeEtaProfile_EH
MonitorElement * occupancy_vs_ieta_HO
edm::ESHandle< CaloGeometry > geometry
std::vector< MonitorElement * > occupancy_vs_ieta_HB
edm::EDGetTokenT< edm::HepMCProduct > tok_evt_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
std::vector< MonitorElement * > Nhb
std::vector< MonitorElement * > Nhe
Definition: Run.h:45
std::vector< MonitorElement * > meSimHitsEnergyHF