CMS 3D CMS Logo

HcalSimHitStudy.cc
Go to the documentation of this file.
8 
10 
13 
17 
20 
21 #include <fstream>
22 #include <iostream>
23 #include <map>
24 #include <string>
25 #include <vector>
26 
28 public:
30  ~HcalSimHitStudy() override = default;
31 
32  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
33 
34 protected:
35  // void endJob ();
36  void analyze(const edm::Event &e, const edm::EventSetup &c) override;
37 
38  void analyzeHits(std::vector<PCaloHit> &);
39 
40 private:
44  int maxDepth_;
45 
46  int iphi_bins;
56 
61 
65  std::vector<MonitorElement *> meEtaPhiHitDepth_;
79 };
80 
82  : g4Label(ps.getUntrackedParameter<std::string>("moduleLabel", "g4SimHits")),
83  hcalHits(ps.getUntrackedParameter<std::string>("HitCollection", "HcalHits")),
84  outFile_(ps.getUntrackedParameter<std::string>("outputFile", "hcHit.root")),
85  verbose_(ps.getUntrackedParameter<bool>("Verbose", false)),
86  checkHit_(true),
87  testNumber_(ps.getParameter<bool>("TestNumber")),
88  hep17_(ps.getParameter<bool>("hep17")),
89  tok_hits_(consumes<edm::PCaloHitContainer>(edm::InputTag(g4Label, hcalHits))),
91  edm::LogVerbatim("HcalSim") << "Module Label: " << g4Label << " Hits: " << hcalHits << " / " << checkHit_
92  << " Output: " << outFile_;
93 }
94 
96  hcons_ = &es.getData(tok_HRNDC_);
104 
105  // Get Phi segmentation from geometry, use the max phi number so that all iphi
106  // values are included.
107 
108  int NphiMax = hcons_->getNPhi(0);
109 
110  NphiMax = (hcons_->getNPhi(1) > NphiMax ? hcons_->getNPhi(1) : NphiMax);
111  NphiMax = (hcons_->getNPhi(2) > NphiMax ? hcons_->getNPhi(2) : NphiMax);
112  NphiMax = (hcons_->getNPhi(3) > NphiMax ? hcons_->getNPhi(3) : NphiMax);
113 
114  // Center the iphi bins on the integers
115  iphi_min = 0.5;
116  iphi_max = NphiMax + 0.5;
118 
119  int iEtaHBMax = hcons_->getEtaRange(0).second;
120  int iEtaHEMax = std::max(hcons_->getEtaRange(1).second, 1);
121  int iEtaHFMax = hcons_->getEtaRange(2).second;
122  int iEtaHOMax = hcons_->getEtaRange(3).second;
123 
124  // Retain classic behavior, all plots have same ieta range.
125  // Comment out code to allow each subdetector to have its on range
126 
127  int iEtaMax = (iEtaHBMax > iEtaHEMax ? iEtaHBMax : iEtaHEMax);
128  iEtaMax = (iEtaMax > iEtaHFMax ? iEtaMax : iEtaHFMax);
129  iEtaMax = (iEtaMax > iEtaHOMax ? iEtaMax : iEtaHOMax);
130 
131  iEtaHBMax = iEtaMax;
132  iEtaHEMax = iEtaMax;
133  iEtaHFMax = iEtaMax;
134  iEtaHOMax = iEtaMax;
135 
136  // Give an empty bin around the subdet ieta range to make it clear that all
137  // ieta rings have been included
138  ieta_min_HB = -iEtaHBMax - 1.5;
139  ieta_max_HB = iEtaHBMax + 1.5;
141 
142  ieta_min_HE = -iEtaHEMax - 1.5;
143  ieta_max_HE = iEtaHEMax + 1.5;
145 
146  ieta_min_HF = -iEtaHFMax - 1.5;
147  ieta_max_HF = iEtaHFMax + 1.5;
149 
150  ieta_min_HO = -iEtaHOMax - 1.5;
151  ieta_max_HO = iEtaHOMax + 1.5;
153 
154  Char_t hname[100];
155  Char_t htitle[100];
156 
157  ib.setCurrentFolder("HcalHitsV/HcalSimHitsTask");
158 
159  // Histograms for Hits
160  if (checkHit_) {
161  meAllNHit_ = ib.book1D("Hit01", "Number of Hits in HCal", 20000, 0., 20000.);
162  meBadDetHit_ = ib.book1D("Hit02", "Hits with wrong Det", 100, 0., 100.);
163  meBadSubHit_ = ib.book1D("Hit03", "Hits with wrong Subdet", 100, 0., 100.);
164  meBadIdHit_ = ib.book1D("Hit04", "Hits with wrong ID", 100, 0., 100.);
165  meHBNHit_ = ib.book1D("Hit05", "Number of Hits in HB", 20000, 0., 20000.);
166  meHENHit_ = ib.book1D("Hit06", "Number of Hits in HE", 10000, 0., 10000.);
167  meHONHit_ = ib.book1D("Hit07", "Number of Hits in HO", 10000, 0., 10000.);
168  meHFNHit_ = ib.book1D("Hit08", "Number of Hits in HF", 10000, 0., 10000.);
169  meDetectHit_ = ib.book1D("Hit09", "Detector ID", 50, 0., 50.);
170  meSubdetHit_ = ib.book1D("Hit10", "Subdetectors in HCal", 50, 0., 50.);
171  meDepthHit_ = ib.book1D("Hit11", "Depths in HCal", 20, 0., 20.);
172  meEtaHit_ = ib.book1D("Hit12", "Eta in HCal", ieta_bins_HF, ieta_min_HF, ieta_max_HF);
173  meEtaPhiHit_ =
174  ib.book2D("Hit12b", "Eta-phi in HCal", ieta_bins_HF, ieta_min_HF, ieta_max_HF, iphi_bins, iphi_min, iphi_max);
175  for (int depth = 1; depth <= maxDepth_; depth++) {
176  sprintf(hname, "Hit12bd%d", depth);
177  sprintf(htitle, "Eta-phi in HCal d%d", depth);
178  meEtaPhiHitDepth_.push_back(
179  ib.book2D(hname, htitle, ieta_bins_HF, ieta_min_HF, ieta_max_HF, iphi_bins, iphi_min, iphi_max));
180  }
181  // KC: There are different phi segmentation schemes, this plot uses wider
182  // bins to represent the most sparse segmentation
183  mePhiHit_ = ib.book1D("Hit13", "Phi in HCal (HB,HO)", iphi_bins, iphi_min, iphi_max);
184  mePhiHitb_ = ib.book1D("Hit13b", "Phi in HCal (HE,HF)", iphi_bins, iphi_min, iphi_max);
185  meEnergyHit_ = ib.book1D("Hit14", "Energy in HCal", 2000, 0., 20.);
186  meTimeHit_ = ib.book1D("Hit15", "Time in HCal", 528, 0., 528.);
187  meTimeWHit_ = ib.book1D("Hit16", "Time in HCal (E wtd)", 528, 0., 528.);
188  meHBDepHit_ = ib.book1D("Hit17", "Depths in HB", 20, 0., 20.);
189  meHEDepHit_ = ib.book1D("Hit18", "Depths in HE", 20, 0., 20.);
190  meHODepHit_ = ib.book1D("Hit19", "Depths in HO", 20, 0., 20.);
191  meHFDepHit_ = ib.book1D("Hit20", "Depths in HF", 20, 0., 20.);
192  meHFDepHitw_ = ib.book1D("Hit20b", "Depths in HF (p.e. weighted)", 20, 0., 20.);
193  meHBEtaHit_ = ib.book1D("Hit21", "Eta in HB", ieta_bins_HB, ieta_min_HB, ieta_max_HB);
194  meHEEtaHit_ = ib.book1D("Hit22", "Eta in HE", ieta_bins_HE, ieta_min_HE, ieta_max_HE);
195  meHOEtaHit_ = ib.book1D("Hit23", "Eta in HO", ieta_bins_HO, ieta_min_HO, ieta_max_HO);
196  meHFEtaHit_ = ib.book1D("Hit24", "Eta in HF", ieta_bins_HF, ieta_min_HF, ieta_max_HF);
197  meHBPhiHit_ = ib.book1D("Hit25", "Phi in HB", iphi_bins, iphi_min, iphi_max);
198  meHEPhiHit_ = ib.book1D("Hit26", "Phi in HE", iphi_bins, iphi_min, iphi_max);
199  meHOPhiHit_ = ib.book1D("Hit27", "Phi in HO", iphi_bins, iphi_min, iphi_max);
200  meHFPhiHit_ = ib.book1D("Hit28", "Phi in HF", iphi_bins, iphi_min, iphi_max);
201  meHBEneHit_ = ib.book1D("Hit29", "Energy in HB", 2000, 0., 20.);
202  meHEEneHit_ = ib.book1D("Hit30", "Energy in HE", 500, 0., 5.);
203  meHEP17EneHit_ = ib.book1D("Hit30b", "Energy in HEP17", 500, 0., 5.);
204  meHOEneHit_ = ib.book1D("Hit31", "Energy in HO", 500, 0., 5.);
205  meHFEneHit_ = ib.book1D("Hit32", "Energy in HF", 1001, -0.5, 1000.5);
206 
207  // HxEneMap, HxEneSum, HxEneSum_vs_ieta plot the sum of the simhits energy
208  // within a single ieta-iphi tower.
209 
210  meHBEneMap_ =
211  ib.book2D("HBEneMap", "HBEneMap", ieta_bins_HB, ieta_min_HB, ieta_max_HB, iphi_bins, iphi_min, iphi_max);
212  meHEEneMap_ =
213  ib.book2D("HEEneMap", "HEEneMap", ieta_bins_HE, ieta_min_HE, ieta_max_HE, iphi_bins, iphi_min, iphi_max);
214  meHOEneMap_ =
215  ib.book2D("HOEneMap", "HOEneMap", ieta_bins_HO, ieta_min_HO, ieta_max_HO, iphi_bins, iphi_min, iphi_max);
216  meHFEneMap_ =
217  ib.book2D("HFEneMap", "HFEneMap", ieta_bins_HF, ieta_min_HF, ieta_max_HF, iphi_bins, iphi_min, iphi_max);
218 
219  meHBEneSum_ = ib.book1D("HBEneSum", "HBEneSum", 2000, 0., 20.);
220  meHEEneSum_ = ib.book1D("HEEneSum", "HEEneSum", 500, 0., 5.);
221  meHOEneSum_ = ib.book1D("HOEneSum", "HOEneSum", 500, 0., 5.);
222  meHFEneSum_ = ib.book1D("HFEneSum", "HFEneSum", 1001, -0.5, 1000.5);
223 
224  meHBEneSum_vs_ieta_ = ib.bookProfile(
225  "HBEneSum_vs_ieta", "HBEneSum_vs_ieta", ieta_bins_HB, ieta_min_HB, ieta_max_HB, 2011, -10.5, 2000.5, " ");
226  meHEEneSum_vs_ieta_ = ib.bookProfile(
227  "HEEneSum_vs_ieta", "HEEneSum_vs_ieta", ieta_bins_HE, ieta_min_HE, ieta_max_HE, 2011, -10.5, 2000.5, " ");
228  meHOEneSum_vs_ieta_ = ib.bookProfile(
229  "HOEneSum_vs_ieta", "HOEneSum_vs_ieta", ieta_bins_HO, ieta_min_HO, ieta_max_HO, 2011, -10.5, 2000.5, " ");
230  meHFEneSum_vs_ieta_ = ib.bookProfile(
231  "HFEneSum_vs_ieta", "HFEneSum_vs_ieta", ieta_bins_HF, ieta_min_HF, ieta_max_HF, 2011, -10.5, 2000.5, " ");
232 
233  meHBTimHit_ = ib.book1D("Hit33", "Time in HB", 528, 0., 528.);
234  meHETimHit_ = ib.book1D("Hit34", "Time in HE", 528, 0., 528.);
235  meHOTimHit_ = ib.book1D("Hit35", "Time in HO", 528, 0., 528.);
236  meHFTimHit_ = ib.book1D("Hit36", "Time in HF", 528, 0., 528.);
237  // These are the zoomed in energy ranges
238  meHBEneHit2_ = ib.book1D("Hit37", "Energy in HB 2", 100, 0., 0.0001);
239  meHEEneHit2_ = ib.book1D("Hit38", "Energy in HE 2", 100, 0., 0.0001);
240  meHEP17EneHit2_ = ib.book1D("Hit38b", "Energy in HEP17 2", 100, 0., 0.0001);
241  meHOEneHit2_ = ib.book1D("Hit39", "Energy in HO 2", 100, 0., 0.0001);
242  meHFEneHit2_ = ib.book1D("Hit40", "Energy in HF 2", 100, 0.5, 100.5);
243  meHBL10Ene_ = ib.book1D("Hit41", "Log10Energy in HB", 140, -10., 4.);
244  meHEL10Ene_ = ib.book1D("Hit42", "Log10Energy in HE", 140, -10., 4.);
245  meHFL10Ene_ = ib.book1D("Hit43", "Log10Energy in HF", 50, -1., 4.);
246  meHOL10Ene_ = ib.book1D("Hit44", "Log10Energy in HO", 140, -10., 4.);
247  meHBL10EneP_ = ib.bookProfile("Hit45", "Log10Energy in HB vs Hit contribution", 140, -10., 4., 100, 0., 1.);
248  meHEL10EneP_ = ib.bookProfile("Hit46", "Log10Energy in HE vs Hit contribution", 140, -10., 4., 100, 0., 1.);
249  meHFL10EneP_ = ib.bookProfile("Hit47", "Log10Energy in HF vs Hit contribution", 140, -10., 4., 100, 0., 1.);
250  meHOL10EneP_ = ib.bookProfile("Hit48", "Log10Energy in HO vs Hit contribution", 140, -10., 4., 100, 0., 1.);
251  }
252 }
253 
254 /*void HcalSimHitStudy::endJob() {
255  if (dbe_ && outFile_.size() > 0) dbe_->save(outFile_);
256 }*/
257 
259  edm::LogVerbatim("HcalSim") << "Run = " << e.id().run() << " Event = " << e.id().event();
260 
261  bool getHits = false;
262  if (checkHit_) {
263  const edm::Handle<edm::PCaloHitContainer> &hitsHcal = e.getHandle(tok_hits_);
264  if (hitsHcal.isValid()) {
265  getHits = true;
266  std::vector<PCaloHit> caloHits;
267  caloHits.insert(caloHits.end(), hitsHcal->begin(), hitsHcal->end());
268  edm::LogVerbatim("HcalSim") << "HcalValidation: Hit buffer " << caloHits.size();
269  analyzeHits(caloHits);
270  }
271  }
272 
273  edm::LogVerbatim("HcalSim") << "HcalValidation: Input flags Hits " << getHits;
274 }
275 
276 void HcalSimHitStudy::analyzeHits(std::vector<PCaloHit> &hits) {
277  int nHit = hits.size();
278  int nHB = 0, nHE = 0, nHO = 0, nHF = 0, nBad1 = 0, nBad2 = 0, nBad = 0;
279  std::vector<double> encontHB(140, 0.);
280  std::vector<double> encontHE(140, 0.);
281  std::vector<double> encontHF(140, 0.);
282  std::vector<double> encontHO(140, 0.);
283  double entotHB = 0, entotHE = 0, entotHF = 0, entotHO = 0;
284 
285  double HBEneMap[ieta_bins_HB][iphi_bins];
286  double HEEneMap[ieta_bins_HE][iphi_bins];
287  double HOEneMap[ieta_bins_HO][iphi_bins];
288  double HFEneMap[ieta_bins_HF][iphi_bins];
289 
290  // Works in ieta_min_Hx is < 0
291  int eta_offset_HB = -(int)ieta_min_HB;
292  int eta_offset_HE = -(int)ieta_min_HE;
293  int eta_offset_HO = -(int)ieta_min_HO;
294  int eta_offset_HF = -(int)ieta_min_HF;
295 
296  for (int i = 0; i < ieta_bins_HB; i++) {
297  for (int j = 0; j < iphi_bins; j++) {
298  HBEneMap[i][j] = 0.;
299  }
300  }
301 
302  for (int i = 0; i < ieta_bins_HE; i++) {
303  for (int j = 0; j < iphi_bins; j++) {
304  HEEneMap[i][j] = 0.;
305  }
306  }
307 
308  for (int i = 0; i < ieta_bins_HO; i++) {
309  for (int j = 0; j < iphi_bins; j++) {
310  HOEneMap[i][j] = 0.;
311  }
312  }
313 
314  for (int i = 0; i < ieta_bins_HF; i++) {
315  for (int j = 0; j < iphi_bins; j++) {
316  HFEneMap[i][j] = 0.;
317  }
318  }
319 
320  for (int i = 0; i < nHit; i++) {
321  double energy = hits[i].energy();
322  double log10en = log10(energy);
323  int log10i = int((log10en + 10.) * 10.);
324  double time = hits[i].time();
325  unsigned int id = hits[i].id();
326  int det, subdet, depth, eta, phi;
327  HcalDetId hid;
328  if (testNumber_)
330  else
331  hid = HcalDetId(id);
332  det = hid.det();
333  subdet = hid.subdet();
334  depth = hid.depth();
335  eta = hid.ieta();
336  phi = hid.iphi();
337 
338  edm::LogVerbatim("HcalSim") << "Hit[" << i << "] ID " << std::hex << id << std::dec << " Det " << det << " Sub "
339  << subdet << " depth " << depth << " Eta " << eta << " Phi " << phi << " E " << energy
340  << " time " << time;
341  if (det == 4) { // Check DetId.h
342  if (subdet == static_cast<int>(HcalBarrel))
343  nHB++;
344  else if (subdet == static_cast<int>(HcalEndcap))
345  nHE++;
346  else if (subdet == static_cast<int>(HcalOuter))
347  nHO++;
348  else if (subdet == static_cast<int>(HcalForward))
349  nHF++;
350  else {
351  nBad++;
352  nBad2++;
353  }
354  } else {
355  nBad++;
356  nBad1++;
357  }
358 
359  meDetectHit_->Fill(double(det));
360  if (det == 4) {
361  meSubdetHit_->Fill(double(subdet));
362  meDepthHit_->Fill(double(depth));
363  meEtaHit_->Fill(double(eta));
364  meEtaPhiHit_->Fill(double(eta), double(phi));
365  meEtaPhiHitDepth_[depth - 1]->Fill(double(eta), double(phi));
366 
367  // We will group the phi plots by HB,HO and HE,HF since these groups share
368  // similar segmentation schemes
369  if (subdet == static_cast<int>(HcalBarrel))
370  mePhiHit_->Fill(double(phi));
371  else if (subdet == static_cast<int>(HcalEndcap))
372  mePhiHitb_->Fill(double(phi));
373  else if (subdet == static_cast<int>(HcalOuter))
374  mePhiHit_->Fill(double(phi));
375  else if (subdet == static_cast<int>(HcalForward))
376  mePhiHitb_->Fill(double(phi));
377 
378  // KC: HF energy is in photoelectrons rather than eV, so it will not be
379  // included in total HCal energy
380  if (subdet != static_cast<int>(HcalForward)) {
382 
383  // Since the HF energy is a different scale it does not make sense to
384  // include it in the Energy Weighted Plot
385  meTimeWHit_->Fill(double(time), energy);
386  }
387  meTimeHit_->Fill(time);
388 
389  if (subdet == static_cast<int>(HcalBarrel)) {
390  meHBDepHit_->Fill(double(depth));
391  meHBEtaHit_->Fill(double(eta));
392  meHBPhiHit_->Fill(double(phi));
396  meHBL10Ene_->Fill(log10en);
397  if (log10i >= 0 && log10i < 140)
398  encontHB[log10i] += energy;
399  entotHB += energy;
400 
401  HBEneMap[eta + eta_offset_HB][phi - 1] += energy;
402 
403  } else if (subdet == static_cast<int>(HcalEndcap)) {
404  meHEDepHit_->Fill(double(depth));
405  meHEEtaHit_->Fill(double(eta));
406  meHEPhiHit_->Fill(double(phi));
407 
408  bool isHEP17 = (phi >= 63) && (phi <= 66) && (eta > 0);
409  if (hep17_) {
410  if (!isHEP17) {
413  } else {
416  }
417  } else {
420  }
421 
423  meHEL10Ene_->Fill(log10en);
424  if (log10i >= 0 && log10i < 140)
425  encontHE[log10i] += energy;
426  entotHE += energy;
427 
428  HEEneMap[eta + eta_offset_HE][phi - 1] += energy;
429 
430  } else if (subdet == static_cast<int>(HcalOuter)) {
431  meHODepHit_->Fill(double(depth));
432  meHOEtaHit_->Fill(double(eta));
433  meHOPhiHit_->Fill(double(phi));
437  meHOL10Ene_->Fill(log10en);
438  if (log10i >= 0 && log10i < 140)
439  encontHO[log10i] += energy;
440  entotHO += energy;
441 
442  HOEneMap[eta + eta_offset_HO][phi - 1] += energy;
443 
444  } else if (subdet == static_cast<int>(HcalForward)) {
445  meHFDepHit_->Fill(double(depth));
446  meHFDepHitw_->Fill(double(depth), energy);
447  meHFEtaHit_->Fill(double(eta));
448  meHFPhiHit_->Fill(double(phi));
452  meHFL10Ene_->Fill(log10en);
453  if (log10i >= 0 && log10i < 140)
454  encontHF[log10i] += energy;
455  entotHF += energy;
456 
457  HFEneMap[eta + eta_offset_HF][phi - 1] += energy;
458  }
459  }
460  }
461  if (entotHB != 0)
462  for (int i = 0; i < 140; i++)
463  meHBL10EneP_->Fill(-10. + (float(i) + 0.5) / 10., encontHB[i] / entotHB);
464  if (entotHE != 0)
465  for (int i = 0; i < 140; i++)
466  meHEL10EneP_->Fill(-10. + (float(i) + 0.5) / 10., encontHE[i] / entotHE);
467  if (entotHF != 0)
468  for (int i = 0; i < 140; i++)
469  meHFL10EneP_->Fill(-10. + (float(i) + 0.5) / 10., encontHF[i] / entotHF);
470  if (entotHO != 0)
471  for (int i = 0; i < 140; i++)
472  meHOL10EneP_->Fill(-10. + (float(i) + 0.5) / 10., encontHO[i] / entotHO);
473 
474  meAllNHit_->Fill(double(nHit));
475  meBadDetHit_->Fill(double(nBad1));
476  meBadSubHit_->Fill(double(nBad2));
477  meBadIdHit_->Fill(double(nBad));
478  meHBNHit_->Fill(double(nHB));
479  meHENHit_->Fill(double(nHE));
480  meHONHit_->Fill(double(nHO));
481  meHFNHit_->Fill(double(nHF));
482 
483  for (int i = 0; i < ieta_bins_HB; i++) {
484  for (int j = 0; j < iphi_bins; j++) {
485  if (HBEneMap[i][j] != 0) {
486  meHBEneSum_->Fill(HBEneMap[i][j]);
487  meHBEneSum_vs_ieta_->Fill((i - eta_offset_HB), HBEneMap[i][j]);
488  meHBEneMap_->Fill((i - eta_offset_HB), j + 1, HBEneMap[i][j]);
489  }
490  }
491  }
492 
493  for (int i = 0; i < ieta_bins_HE; i++) {
494  for (int j = 0; j < iphi_bins; j++) {
495  if (HEEneMap[i][j] != 0) {
496  meHEEneSum_->Fill(HEEneMap[i][j]);
497  meHEEneSum_vs_ieta_->Fill((i - eta_offset_HE), HEEneMap[i][j]);
498  meHEEneMap_->Fill((i - eta_offset_HE), j + 1, HEEneMap[i][j]);
499  }
500  }
501  }
502 
503  for (int i = 0; i < ieta_bins_HO; i++) {
504  for (int j = 0; j < iphi_bins; j++) {
505  if (HOEneMap[i][j] != 0) {
506  meHOEneSum_->Fill(HOEneMap[i][j]);
507  meHOEneSum_vs_ieta_->Fill((i - eta_offset_HO), HOEneMap[i][j]);
508  meHOEneMap_->Fill((i - eta_offset_HO), j + 1, HOEneMap[i][j]);
509  }
510  }
511  }
512 
513  for (int i = 0; i < ieta_bins_HF; i++) {
514  for (int j = 0; j < iphi_bins; j++) {
515  if (HFEneMap[i][j] != 0) {
516  meHFEneSum_->Fill(HFEneMap[i][j]);
517  meHFEneSum_vs_ieta_->Fill((i - eta_offset_HF), HFEneMap[i][j]);
518  meHFEneMap_->Fill((i - eta_offset_HF), j + 1, HFEneMap[i][j]);
519  }
520  }
521  }
522 
523  edm::LogVerbatim("HcalSim") << "HcalSimHitStudy::analyzeHits: HB " << nHB << " HE " << nHE << " HO " << nHO << " HF "
524  << nHF << " Bad " << nBad << " All " << nHit;
525 }
526 
529 
MonitorElement * mePhiHit_
MonitorElement * meHBEneMap_
Log< level::Info, true > LogVerbatim
std::pair< int, int > getEtaRange(const int &i) const
ESGetTokenH3DDVariant esConsumes(std::string const &Record, edm::ConsumesCollector &)
Definition: DeDxTools.cc:283
MonitorElement * meHEDepHit_
MonitorElement * meHOL10Ene_
std::vector< PCaloHit > PCaloHitContainer
MonitorElement * meHOEneSum_vs_ieta_
MonitorElement * meHOEneSum_
const edm::EDGetTokenT< edm::PCaloHitContainer > tok_hits_
const bool testNumber_
MonitorElement * meHOPhiHit_
MonitorElement * meDetectHit_
MonitorElement * meHFNHit_
void analyze(const edm::Event &e, const edm::EventSetup &c) override
const bool verbose_
MonitorElement * meHFEtaHit_
int getNPhi(const int &type) const
MonitorElement * meHFL10EneP_
MonitorElement * meHBEneSum_vs_ieta_
MonitorElement * meHFEneHit2_
MonitorElement * meHOL10EneP_
const bool checkHit_
MonitorElement * meHFDepHitw_
MonitorElement * meHBNHit_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MonitorElement * meHFTimHit_
MonitorElement * meHEEneSum_vs_ieta_
constexpr Detector det() const
get the detector field from this detid
Definition: DetId.h:46
MonitorElement * meHBEneHit2_
MonitorElement * meHONHit_
void Fill(long long x)
MonitorElement * meAllNHit_
MonitorElement * meHBL10Ene_
MonitorElement * meHEEneSum_
constexpr HcalSubdetector subdet() const
get the subdetector
Definition: HcalDetId.h:138
const std::string outFile_
MonitorElement * meBadDetHit_
MonitorElement * meHEP17EneHit2_
MonitorElement * meHFL10Ene_
MonitorElement * mePhiHitb_
const std::string hcalHits
MonitorElement * meHETimHit_
constexpr int ieta() const
get the cell ieta
Definition: HcalDetId.h:155
MonitorElement * meTimeHit_
void analyzeHits(std::vector< PCaloHit > &)
const HcalDDDRecConstants * hcons_
MonitorElement * meHFDepHit_
MonitorElement * meHBEneSum_
MonitorElement * meHOEneMap_
MonitorElement * meHBTimHit_
MonitorElement * meHFEneSum_vs_ieta_
Transition
Definition: Transition.h:12
MonitorElement * meTimeWHit_
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
bool getData(T &iHolder) const
Definition: EventSetup.h:122
DetId relabel(const uint32_t testId) const
int getMaxDepth(const int &type) const
MonitorElement * meHBDepHit_
MonitorElement * meHFEneSum_
MonitorElement * meHFEneMap_
~HcalSimHitStudy() override=default
MonitorElement * meBadSubHit_
MonitorElement * meHENHit_
MonitorElement * meBadIdHit_
MonitorElement * meHEL10EneP_
MonitorElement * meEnergyHit_
const edm::ESGetToken< HcalDDDRecConstants, HcalRecNumberingRecord > tok_HRNDC_
MonitorElement * meHOEtaHit_
MonitorElement * meEtaPhiHit_
MonitorElement * meHEEneMap_
MonitorElement * meEtaHit_
bool isValid() const
Definition: HandleBase.h:70
MonitorElement * meHBEneHit_
MonitorElement * meHOTimHit_
MonitorElement * meHBL10EneP_
HLT enums.
MonitorElement * meHEEneHit2_
MonitorElement * meHFPhiHit_
MonitorElement * meDepthHit_
MonitorElement * meHBEtaHit_
const std::string g4Label
MonitorElement * meHODepHit_
std::vector< MonitorElement * > meEtaPhiHitDepth_
MonitorElement * meHEL10Ene_
MonitorElement * meHEEneHit_
MonitorElement * meHEPhiHit_
HcalSimHitStudy(const edm::ParameterSet &ps)
MonitorElement * meSubdetHit_
MonitorElement * meHBPhiHit_
constexpr int iphi() const
get the cell iphi
Definition: HcalDetId.h:157
MonitorElement * meHEP17EneHit_
Definition: Run.h:45
MonitorElement * meHFEneHit_
MonitorElement * meHEEtaHit_
ib
Definition: cuy.py:661
MonitorElement * meHOEneHit_
MonitorElement * meHOEneHit2_
constexpr int depth() const
get the tower depth
Definition: HcalDetId.h:164