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