CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Private Attributes
HcalSimHitStudy Class Reference

#include <HcalSimHitStudy.h>

Inheritance diagram for HcalSimHitStudy:
DQMEDAnalyzer edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >

Public Member Functions

void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
 
 HcalSimHitStudy (const edm::ParameterSet &ps)
 
 ~HcalSimHitStudy () override
 
- Public Member Functions inherited from DQMEDAnalyzer
void accumulate (edm::Event const &event, edm::EventSetup const &setup) final
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
void beginStream (edm::StreamID id) final
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 DQMEDAnalyzer ()
 
void endLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void endRun (edm::Run const &run, edm::EventSetup const &setup) final
 
virtual bool getCanSaveByLumi ()
 
- Public Member Functions inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >
 EDProducer ()=default
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndRuns () const final
 

Protected Member Functions

void analyze (const edm::Event &e, const edm::EventSetup &c) override
 
void analyzeHits (std::vector< PCaloHit > &)
 
- Protected Member Functions inherited from DQMEDAnalyzer
uint64_t meId () const
 

Private Attributes

bool checkHit_
 
std::string g4Label
 
std::string hcalHits
 
const HcalDDDRecConstantshcons
 
bool hep17_
 
int ieta_bins_HB
 
int ieta_bins_HE
 
int ieta_bins_HF
 
int ieta_bins_HO
 
float ieta_max_HB
 
float ieta_max_HE
 
float ieta_max_HF
 
float ieta_max_HO
 
float ieta_min_HB
 
float ieta_min_HE
 
float ieta_min_HF
 
float ieta_min_HO
 
int iphi_bins
 
float iphi_max
 
float iphi_min
 
int maxDepth_
 
int maxDepthHB_
 
int maxDepthHE_
 
int maxDepthHF_
 
int maxDepthHO_
 
MonitorElementmeAllNHit_
 
MonitorElementmeBadDetHit_
 
MonitorElementmeBadIdHit_
 
MonitorElementmeBadSubHit_
 
MonitorElementmeDepthHit_
 
MonitorElementmeDetectHit_
 
MonitorElementmeEnergyHit_
 
MonitorElementmeEtaHit_
 
MonitorElementmeEtaPhiHit_
 
std::vector< MonitorElement * > meEtaPhiHitDepth_
 
MonitorElementmeHBDepHit_
 
MonitorElementmeHBEneHit2_
 
MonitorElementmeHBEneHit_
 
MonitorElementmeHBEneMap_
 
MonitorElementmeHBEneSum_
 
MonitorElementmeHBEneSum_vs_ieta_
 
MonitorElementmeHBEtaHit_
 
MonitorElementmeHBL10Ene_
 
MonitorElementmeHBL10EneP_
 
MonitorElementmeHBNHit_
 
MonitorElementmeHBPhiHit_
 
MonitorElementmeHBTimHit_
 
MonitorElementmeHEDepHit_
 
MonitorElementmeHEEneHit2_
 
MonitorElementmeHEEneHit_
 
MonitorElementmeHEEneMap_
 
MonitorElementmeHEEneSum_
 
MonitorElementmeHEEneSum_vs_ieta_
 
MonitorElementmeHEEtaHit_
 
MonitorElementmeHEL10Ene_
 
MonitorElementmeHEL10EneP_
 
MonitorElementmeHENHit_
 
MonitorElementmeHEP17EneHit2_
 
MonitorElementmeHEP17EneHit_
 
MonitorElementmeHEPhiHit_
 
MonitorElementmeHETimHit_
 
MonitorElementmeHFDepHit_
 
MonitorElementmeHFDepHitw_
 
MonitorElementmeHFEneHit2_
 
MonitorElementmeHFEneHit_
 
MonitorElementmeHFEneMap_
 
MonitorElementmeHFEneSum_
 
MonitorElementmeHFEneSum_vs_ieta_
 
MonitorElementmeHFEtaHit_
 
MonitorElementmeHFL10Ene_
 
MonitorElementmeHFL10EneP_
 
MonitorElementmeHFNHit_
 
MonitorElementmeHFPhiHit_
 
MonitorElementmeHFTimHit_
 
MonitorElementmeHODepHit_
 
MonitorElementmeHOEneHit2_
 
MonitorElementmeHOEneHit_
 
MonitorElementmeHOEneMap_
 
MonitorElementmeHOEneSum_
 
MonitorElementmeHOEneSum_vs_ieta_
 
MonitorElementmeHOEtaHit_
 
MonitorElementmeHOL10Ene_
 
MonitorElementmeHOL10EneP_
 
MonitorElementmeHONHit_
 
MonitorElementmeHOPhiHit_
 
MonitorElementmeHOTimHit_
 
MonitorElementmePhiHit_
 
MonitorElementmePhiHitb_
 
MonitorElementmeSubdetHit_
 
MonitorElementmeTimeHit_
 
MonitorElementmeTimeWHit_
 
std::string outFile_
 
bool testNumber_
 
edm::EDGetTokenT< edm::PCaloHitContainertok_hits_
 
bool verbose_
 

Additional Inherited Members

- Public Types inherited from DQMEDAnalyzer
typedef dqm::reco::DQMStore DQMStore
 
typedef dqm::reco::MonitorElement MonitorElement
 
- Public Types inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >
typedef CacheContexts< T... > CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T... > HasAbility
 
typedef CacheTypes::LuminosityBlockCache LuminosityBlockCache
 
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCacheLuminosityBlockContext
 
typedef CacheTypes::LuminosityBlockSummaryCache LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache, GlobalCacheRunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 
- Static Public Member Functions inherited from DQMEDAnalyzer
static void globalEndJob (DQMEDAnalyzerGlobalCache const *)
 
static void globalEndLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup, LuminosityBlockContext const *context)
 
static void globalEndRunProduce (edm::Run &run, edm::EventSetup const &setup, RunContext const *context)
 
static std::unique_ptr< DQMEDAnalyzerGlobalCacheinitializeGlobalCache (edm::ParameterSet const &)
 
- Protected Attributes inherited from DQMEDAnalyzer
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::EDPutTokenT< DQMTokenrunToken_
 
unsigned int streamId_
 

Detailed Description

Definition at line 30 of file HcalSimHitStudy.h.

Constructor & Destructor Documentation

◆ HcalSimHitStudy()

HcalSimHitStudy::HcalSimHitStudy ( const edm::ParameterSet ps)

Definition at line 7 of file HcalSimHitStudy.cc.

7  {
8  g4Label = ps.getUntrackedParameter<std::string>("moduleLabel", "g4SimHits");
9  hcalHits = ps.getUntrackedParameter<std::string>("HitCollection", "HcalHits");
10  outFile_ = ps.getUntrackedParameter<std::string>("outputFile", "hcHit.root");
11  verbose_ = ps.getUntrackedParameter<bool>("Verbose", false);
12  testNumber_ = ps.getParameter<bool>("TestNumber");
13  hep17_ = ps.getParameter<bool>("hep17");
14  checkHit_ = true;
15 
16  tok_hits_ = consumes<edm::PCaloHitContainer>(edm::InputTag(g4Label, hcalHits));
17 
18  edm::LogInfo("HcalSim") << "Module Label: " << g4Label << " Hits: " << hcalHits << " / " << checkHit_
19  << " Output: " << outFile_;
20 }

References checkHit_, g4Label, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), hcalHits, hep17_, outFile_, AlCaHLTBitMon_QueryRunRegistry::string, testNumber_, tok_hits_, and verbose_.

◆ ~HcalSimHitStudy()

HcalSimHitStudy::~HcalSimHitStudy ( )
override

Definition at line 22 of file HcalSimHitStudy.cc.

22 {}

Member Function Documentation

◆ analyze()

void HcalSimHitStudy::analyze ( const edm::Event e,
const edm::EventSetup c 
)
overrideprotectedvirtual

Reimplemented from DQMEDAnalyzer.

Definition at line 189 of file HcalSimHitStudy.cc.

189  {
190  LogDebug("HcalSim") << "Run = " << e.id().run() << " Event = " << e.id().event();
191 
192  std::vector<PCaloHit> caloHits;
194 
195  bool getHits = false;
196  if (checkHit_) {
197  e.getByToken(tok_hits_, hitsHcal);
198  if (hitsHcal.isValid())
199  getHits = true;
200  }
201 
202  LogDebug("HcalSim") << "HcalValidation: Input flags Hits " << getHits;
203 
204  if (getHits) {
205  caloHits.insert(caloHits.end(), hitsHcal->begin(), hitsHcal->end());
206  LogDebug("HcalSim") << "HcalValidation: Hit buffer " << caloHits.size();
207  analyzeHits(caloHits);
208  }
209 }

References analyzeHits(), checkHit_, MillePedeFileConverter_cfg::e, edm::HandleBase::isValid(), LogDebug, and tok_hits_.

◆ analyzeHits()

void HcalSimHitStudy::analyzeHits ( std::vector< PCaloHit > &  hits)
protected

Definition at line 211 of file HcalSimHitStudy.cc.

211  {
212  int nHit = hits.size();
213  int nHB = 0, nHE = 0, nHO = 0, nHF = 0, nBad1 = 0, nBad2 = 0, nBad = 0;
214  std::vector<double> encontHB(140, 0.);
215  std::vector<double> encontHE(140, 0.);
216  std::vector<double> encontHF(140, 0.);
217  std::vector<double> encontHO(140, 0.);
218  double entotHB = 0, entotHE = 0, entotHF = 0, entotHO = 0;
219 
220  double HBEneMap[ieta_bins_HB][iphi_bins];
221  double HEEneMap[ieta_bins_HE][iphi_bins];
222  double HOEneMap[ieta_bins_HO][iphi_bins];
223  double HFEneMap[ieta_bins_HF][iphi_bins];
224 
225  // Works in ieta_min_Hx is < 0
226  int eta_offset_HB = -(int)ieta_min_HB;
227  int eta_offset_HE = -(int)ieta_min_HE;
228  int eta_offset_HO = -(int)ieta_min_HO;
229  int eta_offset_HF = -(int)ieta_min_HF;
230 
231  for (int i = 0; i < ieta_bins_HB; i++) {
232  for (int j = 0; j < iphi_bins; j++) {
233  HBEneMap[i][j] = 0.;
234  }
235  }
236 
237  for (int i = 0; i < ieta_bins_HE; i++) {
238  for (int j = 0; j < iphi_bins; j++) {
239  HEEneMap[i][j] = 0.;
240  }
241  }
242 
243  for (int i = 0; i < ieta_bins_HO; i++) {
244  for (int j = 0; j < iphi_bins; j++) {
245  HOEneMap[i][j] = 0.;
246  }
247  }
248 
249  for (int i = 0; i < ieta_bins_HF; i++) {
250  for (int j = 0; j < iphi_bins; j++) {
251  HFEneMap[i][j] = 0.;
252  }
253  }
254 
255  for (int i = 0; i < nHit; i++) {
256  double energy = hits[i].energy();
257  double log10en = log10(energy);
258  int log10i = int((log10en + 10.) * 10.);
259  double time = hits[i].time();
260  unsigned int id_ = hits[i].id();
261  int det, subdet, depth, eta, phi;
262  HcalDetId hid;
263  if (testNumber_)
264  hid = HcalHitRelabeller::relabel(id_, hcons);
265  else
266  hid = HcalDetId(id_);
267  det = hid.det();
268  subdet = hid.subdet();
269  depth = hid.depth();
270  eta = hid.ieta();
271  phi = hid.iphi();
272 
273  LogDebug("HcalSim") << "Hit[" << i << "] ID " << std::hex << id_ << std::dec << " Det " << det << " Sub " << subdet
274  << " depth " << depth << " Eta " << eta << " Phi " << phi << " E " << energy << " time "
275  << time;
276  if (det == 4) { // Check DetId.h
277  if (subdet == static_cast<int>(HcalBarrel))
278  nHB++;
279  else if (subdet == static_cast<int>(HcalEndcap))
280  nHE++;
281  else if (subdet == static_cast<int>(HcalOuter))
282  nHO++;
283  else if (subdet == static_cast<int>(HcalForward))
284  nHF++;
285  else {
286  nBad++;
287  nBad2++;
288  }
289  } else {
290  nBad++;
291  nBad1++;
292  }
293 
294  meDetectHit_->Fill(double(det));
295  if (det == 4) {
296  meSubdetHit_->Fill(double(subdet));
297  meDepthHit_->Fill(double(depth));
298  meEtaHit_->Fill(double(eta));
299  meEtaPhiHit_->Fill(double(eta), double(phi));
300  meEtaPhiHitDepth_[depth - 1]->Fill(double(eta), double(phi));
301 
302  // We will group the phi plots by HB,HO and HE,HF since these groups share
303  // similar segmentation schemes
304  if (subdet == static_cast<int>(HcalBarrel))
305  mePhiHit_->Fill(double(phi));
306  else if (subdet == static_cast<int>(HcalEndcap))
307  mePhiHitb_->Fill(double(phi));
308  else if (subdet == static_cast<int>(HcalOuter))
309  mePhiHit_->Fill(double(phi));
310  else if (subdet == static_cast<int>(HcalForward))
311  mePhiHitb_->Fill(double(phi));
312 
313  // KC: HF energy is in photoelectrons rather than eV, so it will not be
314  // included in total HCal energy
315  if (subdet != static_cast<int>(HcalForward)) {
317 
318  // Since the HF energy is a different scale it does not make sense to
319  // include it in the Energy Weighted Plot
320  meTimeWHit_->Fill(double(time), energy);
321  }
322  meTimeHit_->Fill(time);
323 
324  if (subdet == static_cast<int>(HcalBarrel)) {
325  meHBDepHit_->Fill(double(depth));
326  meHBEtaHit_->Fill(double(eta));
327  meHBPhiHit_->Fill(double(phi));
331  meHBL10Ene_->Fill(log10en);
332  if (log10i >= 0 && log10i < 140)
333  encontHB[log10i] += energy;
334  entotHB += energy;
335 
336  HBEneMap[eta + eta_offset_HB][phi - 1] += energy;
337 
338  } else if (subdet == static_cast<int>(HcalEndcap)) {
339  meHEDepHit_->Fill(double(depth));
340  meHEEtaHit_->Fill(double(eta));
341  meHEPhiHit_->Fill(double(phi));
342 
343  bool isHEP17 = (phi >= 63) && (phi <= 66) && (eta > 0);
344  if (hep17_) {
345  if (!isHEP17) {
348  } else {
351  }
352  } else {
355  }
356 
358  meHEL10Ene_->Fill(log10en);
359  if (log10i >= 0 && log10i < 140)
360  encontHE[log10i] += energy;
361  entotHE += energy;
362 
363  HEEneMap[eta + eta_offset_HE][phi - 1] += energy;
364 
365  } else if (subdet == static_cast<int>(HcalOuter)) {
366  meHODepHit_->Fill(double(depth));
367  meHOEtaHit_->Fill(double(eta));
368  meHOPhiHit_->Fill(double(phi));
372  meHOL10Ene_->Fill(log10en);
373  if (log10i >= 0 && log10i < 140)
374  encontHO[log10i] += energy;
375  entotHO += energy;
376 
377  HOEneMap[eta + eta_offset_HO][phi - 1] += energy;
378 
379  } else if (subdet == static_cast<int>(HcalForward)) {
380  meHFDepHit_->Fill(double(depth));
381  meHFDepHitw_->Fill(double(depth), energy);
382  meHFEtaHit_->Fill(double(eta));
383  meHFPhiHit_->Fill(double(phi));
387  meHFL10Ene_->Fill(log10en);
388  if (log10i >= 0 && log10i < 140)
389  encontHF[log10i] += energy;
390  entotHF += energy;
391 
392  HFEneMap[eta + eta_offset_HF][phi - 1] += energy;
393  }
394  }
395  }
396  if (entotHB != 0)
397  for (int i = 0; i < 140; i++)
398  meHBL10EneP_->Fill(-10. + (float(i) + 0.5) / 10., encontHB[i] / entotHB);
399  if (entotHE != 0)
400  for (int i = 0; i < 140; i++)
401  meHEL10EneP_->Fill(-10. + (float(i) + 0.5) / 10., encontHE[i] / entotHE);
402  if (entotHF != 0)
403  for (int i = 0; i < 140; i++)
404  meHFL10EneP_->Fill(-10. + (float(i) + 0.5) / 10., encontHF[i] / entotHF);
405  if (entotHO != 0)
406  for (int i = 0; i < 140; i++)
407  meHOL10EneP_->Fill(-10. + (float(i) + 0.5) / 10., encontHO[i] / entotHO);
408 
409  meAllNHit_->Fill(double(nHit));
410  meBadDetHit_->Fill(double(nBad1));
411  meBadSubHit_->Fill(double(nBad2));
412  meBadIdHit_->Fill(double(nBad));
413  meHBNHit_->Fill(double(nHB));
414  meHENHit_->Fill(double(nHE));
415  meHONHit_->Fill(double(nHO));
416  meHFNHit_->Fill(double(nHF));
417 
418  for (int i = 0; i < ieta_bins_HB; i++) {
419  for (int j = 0; j < iphi_bins; j++) {
420  if (HBEneMap[i][j] != 0) {
421  meHBEneSum_->Fill(HBEneMap[i][j]);
422  meHBEneSum_vs_ieta_->Fill((i - eta_offset_HB), HBEneMap[i][j]);
423  meHBEneMap_->Fill((i - eta_offset_HB), j + 1, HBEneMap[i][j]);
424  }
425  }
426  }
427 
428  for (int i = 0; i < ieta_bins_HE; i++) {
429  for (int j = 0; j < iphi_bins; j++) {
430  if (HEEneMap[i][j] != 0) {
431  meHEEneSum_->Fill(HEEneMap[i][j]);
432  meHEEneSum_vs_ieta_->Fill((i - eta_offset_HE), HEEneMap[i][j]);
433  meHEEneMap_->Fill((i - eta_offset_HE), j + 1, HEEneMap[i][j]);
434  }
435  }
436  }
437 
438  for (int i = 0; i < ieta_bins_HO; i++) {
439  for (int j = 0; j < iphi_bins; j++) {
440  if (HOEneMap[i][j] != 0) {
441  meHOEneSum_->Fill(HOEneMap[i][j]);
442  meHOEneSum_vs_ieta_->Fill((i - eta_offset_HO), HOEneMap[i][j]);
443  meHOEneMap_->Fill((i - eta_offset_HO), j + 1, HOEneMap[i][j]);
444  }
445  }
446  }
447 
448  for (int i = 0; i < ieta_bins_HF; i++) {
449  for (int j = 0; j < iphi_bins; j++) {
450  if (HFEneMap[i][j] != 0) {
451  meHFEneSum_->Fill(HFEneMap[i][j]);
452  meHFEneSum_vs_ieta_->Fill((i - eta_offset_HF), HFEneMap[i][j]);
453  meHFEneMap_->Fill((i - eta_offset_HF), j + 1, HFEneMap[i][j]);
454  }
455  }
456  }
457 
458  LogDebug("HcalSim") << "HcalSimHitStudy::analyzeHits: HB " << nHB << " HE " << nHE << " HO " << nHO << " HF " << nHF
459  << " Bad " << nBad << " All " << nHit;
460 }

References TauDecayModes::dec, LEDCalibrationChannels::depth, HcalDetId::depth(), DetId::det(), HCALHighEnergyHPDFilter_cfi::energy, PVValHelper::eta, dqm::impl::MonitorElement::Fill(), HcalBarrel, HcalEndcap, HcalForward, HcalOuter, hcons, hep17_, hfClusterShapes_cfi::hits, mps_fire::i, HcalDetId::ieta(), ieta_bins_HB, ieta_bins_HE, ieta_bins_HF, ieta_bins_HO, ieta_min_HB, ieta_min_HE, ieta_min_HF, ieta_min_HO, createfilelist::int, HcalDetId::iphi(), iphi_bins, dqmiolumiharvest::j, LogDebug, meAllNHit_, meBadDetHit_, meBadIdHit_, meBadSubHit_, meDepthHit_, meDetectHit_, meEnergyHit_, meEtaHit_, meEtaPhiHit_, meEtaPhiHitDepth_, meHBDepHit_, meHBEneHit2_, meHBEneHit_, meHBEneMap_, meHBEneSum_, meHBEneSum_vs_ieta_, meHBEtaHit_, meHBL10Ene_, meHBL10EneP_, meHBNHit_, meHBPhiHit_, meHBTimHit_, meHEDepHit_, meHEEneHit2_, meHEEneHit_, meHEEneMap_, meHEEneSum_, meHEEneSum_vs_ieta_, meHEEtaHit_, meHEL10Ene_, meHEL10EneP_, meHENHit_, meHEP17EneHit2_, meHEP17EneHit_, meHEPhiHit_, meHETimHit_, meHFDepHit_, meHFDepHitw_, meHFEneHit2_, meHFEneHit_, meHFEneMap_, meHFEneSum_, meHFEneSum_vs_ieta_, meHFEtaHit_, meHFL10Ene_, meHFL10EneP_, meHFNHit_, meHFPhiHit_, meHFTimHit_, meHODepHit_, meHOEneHit2_, meHOEneHit_, meHOEneMap_, meHOEneSum_, meHOEneSum_vs_ieta_, meHOEtaHit_, meHOL10Ene_, meHOL10EneP_, meHONHit_, meHOPhiHit_, meHOTimHit_, mePhiHit_, mePhiHitb_, meSubdetHit_, meTimeHit_, meTimeWHit_, phi, HcalHitRelabeller::relabel(), HcalDetId::subdet(), testNumber_, and ntuplemaker::time.

Referenced by analyze().

◆ bookHistograms()

void HcalSimHitStudy::bookHistograms ( DQMStore::IBooker ib,
edm::Run const &  run,
edm::EventSetup const &  es 
)
overridevirtual

Implements DQMEDAnalyzer.

Definition at line 24 of file HcalSimHitStudy.cc.

24  {
26  es.get<HcalRecNumberingRecord>().get(pHRNDC);
27  hcons = &(*pHRNDC);
35 
36  // Get Phi segmentation from geometry, use the max phi number so that all iphi
37  // values are included.
38 
39  int NphiMax = hcons->getNPhi(0);
40 
41  NphiMax = (hcons->getNPhi(1) > NphiMax ? hcons->getNPhi(1) : NphiMax);
42  NphiMax = (hcons->getNPhi(2) > NphiMax ? hcons->getNPhi(2) : NphiMax);
43  NphiMax = (hcons->getNPhi(3) > NphiMax ? hcons->getNPhi(3) : NphiMax);
44 
45  // Center the iphi bins on the integers
46  iphi_min = 0.5;
47  iphi_max = NphiMax + 0.5;
49 
50  int iEtaHBMax = hcons->getEtaRange(0).second;
51  int iEtaHEMax = std::max(hcons->getEtaRange(1).second, 1);
52  int iEtaHFMax = hcons->getEtaRange(2).second;
53  int iEtaHOMax = hcons->getEtaRange(3).second;
54 
55  // Retain classic behavior, all plots have same ieta range.
56  // Comment out code to allow each subdetector to have its on range
57 
58  int iEtaMax = (iEtaHBMax > iEtaHEMax ? iEtaHBMax : iEtaHEMax);
59  iEtaMax = (iEtaMax > iEtaHFMax ? iEtaMax : iEtaHFMax);
60  iEtaMax = (iEtaMax > iEtaHOMax ? iEtaMax : iEtaHOMax);
61 
62  iEtaHBMax = iEtaMax;
63  iEtaHEMax = iEtaMax;
64  iEtaHFMax = iEtaMax;
65  iEtaHOMax = iEtaMax;
66 
67  // Give an empty bin around the subdet ieta range to make it clear that all
68  // ieta rings have been included
69  ieta_min_HB = -iEtaHBMax - 1.5;
70  ieta_max_HB = iEtaHBMax + 1.5;
72 
73  ieta_min_HE = -iEtaHEMax - 1.5;
74  ieta_max_HE = iEtaHEMax + 1.5;
76 
77  ieta_min_HF = -iEtaHFMax - 1.5;
78  ieta_max_HF = iEtaHFMax + 1.5;
80 
81  ieta_min_HO = -iEtaHOMax - 1.5;
82  ieta_max_HO = iEtaHOMax + 1.5;
84 
85  Char_t hname[100];
86  Char_t htitle[100];
87 
88  ib.setCurrentFolder("HcalHitsV/HcalSimHitsTask");
89 
90  // Histograms for Hits
91  if (checkHit_) {
92  meAllNHit_ = ib.book1D("Hit01", "Number of Hits in HCal", 20000, 0., 20000.);
93  meBadDetHit_ = ib.book1D("Hit02", "Hits with wrong Det", 100, 0., 100.);
94  meBadSubHit_ = ib.book1D("Hit03", "Hits with wrong Subdet", 100, 0., 100.);
95  meBadIdHit_ = ib.book1D("Hit04", "Hits with wrong ID", 100, 0., 100.);
96  meHBNHit_ = ib.book1D("Hit05", "Number of Hits in HB", 20000, 0., 20000.);
97  meHENHit_ = ib.book1D("Hit06", "Number of Hits in HE", 10000, 0., 10000.);
98  meHONHit_ = ib.book1D("Hit07", "Number of Hits in HO", 10000, 0., 10000.);
99  meHFNHit_ = ib.book1D("Hit08", "Number of Hits in HF", 10000, 0., 10000.);
100  meDetectHit_ = ib.book1D("Hit09", "Detector ID", 50, 0., 50.);
101  meSubdetHit_ = ib.book1D("Hit10", "Subdetectors in HCal", 50, 0., 50.);
102  meDepthHit_ = ib.book1D("Hit11", "Depths in HCal", 20, 0., 20.);
103  meEtaHit_ = ib.book1D("Hit12", "Eta in HCal", ieta_bins_HF, ieta_min_HF, ieta_max_HF);
104  meEtaPhiHit_ =
105  ib.book2D("Hit12b", "Eta-phi in HCal", ieta_bins_HF, ieta_min_HF, ieta_max_HF, iphi_bins, iphi_min, iphi_max);
106  for (int depth = 1; depth <= maxDepth_; depth++) {
107  sprintf(hname, "Hit12bd%d", depth);
108  sprintf(htitle, "Eta-phi in HCal d%d", depth);
109  meEtaPhiHitDepth_.push_back(
110  ib.book2D(hname, htitle, ieta_bins_HF, ieta_min_HF, ieta_max_HF, iphi_bins, iphi_min, iphi_max));
111  }
112  // KC: There are different phi segmentation schemes, this plot uses wider
113  // bins to represent the most sparse segmentation
114  mePhiHit_ = ib.book1D("Hit13", "Phi in HCal (HB,HO)", iphi_bins, iphi_min, iphi_max);
115  mePhiHitb_ = ib.book1D("Hit13b", "Phi in HCal (HE,HF)", iphi_bins, iphi_min, iphi_max);
116  meEnergyHit_ = ib.book1D("Hit14", "Energy in HCal", 2000, 0., 20.);
117  meTimeHit_ = ib.book1D("Hit15", "Time in HCal", 528, 0., 528.);
118  meTimeWHit_ = ib.book1D("Hit16", "Time in HCal (E wtd)", 528, 0., 528.);
119  meHBDepHit_ = ib.book1D("Hit17", "Depths in HB", 20, 0., 20.);
120  meHEDepHit_ = ib.book1D("Hit18", "Depths in HE", 20, 0., 20.);
121  meHODepHit_ = ib.book1D("Hit19", "Depths in HO", 20, 0., 20.);
122  meHFDepHit_ = ib.book1D("Hit20", "Depths in HF", 20, 0., 20.);
123  meHFDepHitw_ = ib.book1D("Hit20b", "Depths in HF (p.e. weighted)", 20, 0., 20.);
124  meHBEtaHit_ = ib.book1D("Hit21", "Eta in HB", ieta_bins_HB, ieta_min_HB, ieta_max_HB);
125  meHEEtaHit_ = ib.book1D("Hit22", "Eta in HE", ieta_bins_HE, ieta_min_HE, ieta_max_HE);
126  meHOEtaHit_ = ib.book1D("Hit23", "Eta in HO", ieta_bins_HO, ieta_min_HO, ieta_max_HO);
127  meHFEtaHit_ = ib.book1D("Hit24", "Eta in HF", ieta_bins_HF, ieta_min_HF, ieta_max_HF);
128  meHBPhiHit_ = ib.book1D("Hit25", "Phi in HB", iphi_bins, iphi_min, iphi_max);
129  meHEPhiHit_ = ib.book1D("Hit26", "Phi in HE", iphi_bins, iphi_min, iphi_max);
130  meHOPhiHit_ = ib.book1D("Hit27", "Phi in HO", iphi_bins, iphi_min, iphi_max);
131  meHFPhiHit_ = ib.book1D("Hit28", "Phi in HF", iphi_bins, iphi_min, iphi_max);
132  meHBEneHit_ = ib.book1D("Hit29", "Energy in HB", 2000, 0., 20.);
133  meHEEneHit_ = ib.book1D("Hit30", "Energy in HE", 500, 0., 5.);
134  meHEP17EneHit_ = ib.book1D("Hit30b", "Energy in HEP17", 500, 0., 5.);
135  meHOEneHit_ = ib.book1D("Hit31", "Energy in HO", 500, 0., 5.);
136  meHFEneHit_ = ib.book1D("Hit32", "Energy in HF", 1001, -0.5, 1000.5);
137 
138  // HxEneMap, HxEneSum, HxEneSum_vs_ieta plot the sum of the simhits energy
139  // within a single ieta-iphi tower.
140 
141  meHBEneMap_ =
142  ib.book2D("HBEneMap", "HBEneMap", ieta_bins_HB, ieta_min_HB, ieta_max_HB, iphi_bins, iphi_min, iphi_max);
143  meHEEneMap_ =
144  ib.book2D("HEEneMap", "HEEneMap", ieta_bins_HE, ieta_min_HE, ieta_max_HE, iphi_bins, iphi_min, iphi_max);
145  meHOEneMap_ =
146  ib.book2D("HOEneMap", "HOEneMap", ieta_bins_HO, ieta_min_HO, ieta_max_HO, iphi_bins, iphi_min, iphi_max);
147  meHFEneMap_ =
148  ib.book2D("HFEneMap", "HFEneMap", ieta_bins_HF, ieta_min_HF, ieta_max_HF, iphi_bins, iphi_min, iphi_max);
149 
150  meHBEneSum_ = ib.book1D("HBEneSum", "HBEneSum", 2000, 0., 20.);
151  meHEEneSum_ = ib.book1D("HEEneSum", "HEEneSum", 500, 0., 5.);
152  meHOEneSum_ = ib.book1D("HOEneSum", "HOEneSum", 500, 0., 5.);
153  meHFEneSum_ = ib.book1D("HFEneSum", "HFEneSum", 1001, -0.5, 1000.5);
154 
155  meHBEneSum_vs_ieta_ = ib.bookProfile(
156  "HBEneSum_vs_ieta", "HBEneSum_vs_ieta", ieta_bins_HB, ieta_min_HB, ieta_max_HB, 2011, -10.5, 2000.5, " ");
157  meHEEneSum_vs_ieta_ = ib.bookProfile(
158  "HEEneSum_vs_ieta", "HEEneSum_vs_ieta", ieta_bins_HE, ieta_min_HE, ieta_max_HE, 2011, -10.5, 2000.5, " ");
159  meHOEneSum_vs_ieta_ = ib.bookProfile(
160  "HOEneSum_vs_ieta", "HOEneSum_vs_ieta", ieta_bins_HO, ieta_min_HO, ieta_max_HO, 2011, -10.5, 2000.5, " ");
161  meHFEneSum_vs_ieta_ = ib.bookProfile(
162  "HFEneSum_vs_ieta", "HFEneSum_vs_ieta", ieta_bins_HF, ieta_min_HF, ieta_max_HF, 2011, -10.5, 2000.5, " ");
163 
164  meHBTimHit_ = ib.book1D("Hit33", "Time in HB", 528, 0., 528.);
165  meHETimHit_ = ib.book1D("Hit34", "Time in HE", 528, 0., 528.);
166  meHOTimHit_ = ib.book1D("Hit35", "Time in HO", 528, 0., 528.);
167  meHFTimHit_ = ib.book1D("Hit36", "Time in HF", 528, 0., 528.);
168  // These are the zoomed in energy ranges
169  meHBEneHit2_ = ib.book1D("Hit37", "Energy in HB 2", 100, 0., 0.0001);
170  meHEEneHit2_ = ib.book1D("Hit38", "Energy in HE 2", 100, 0., 0.0001);
171  meHEP17EneHit2_ = ib.book1D("Hit38b", "Energy in HEP17 2", 100, 0., 0.0001);
172  meHOEneHit2_ = ib.book1D("Hit39", "Energy in HO 2", 100, 0., 0.0001);
173  meHFEneHit2_ = ib.book1D("Hit40", "Energy in HF 2", 100, 0.5, 100.5);
174  meHBL10Ene_ = ib.book1D("Hit41", "Log10Energy in HB", 140, -10., 4.);
175  meHEL10Ene_ = ib.book1D("Hit42", "Log10Energy in HE", 140, -10., 4.);
176  meHFL10Ene_ = ib.book1D("Hit43", "Log10Energy in HF", 50, -1., 4.);
177  meHOL10Ene_ = ib.book1D("Hit44", "Log10Energy in HO", 140, -10., 4.);
178  meHBL10EneP_ = ib.bookProfile("Hit45", "Log10Energy in HB vs Hit contribution", 140, -10., 4., 100, 0., 1.);
179  meHEL10EneP_ = ib.bookProfile("Hit46", "Log10Energy in HE vs Hit contribution", 140, -10., 4., 100, 0., 1.);
180  meHFL10EneP_ = ib.bookProfile("Hit47", "Log10Energy in HF vs Hit contribution", 140, -10., 4., 100, 0., 1.);
181  meHOL10EneP_ = ib.bookProfile("Hit48", "Log10Energy in HO vs Hit contribution", 140, -10., 4., 100, 0., 1.);
182  }
183 }

References checkHit_, LEDCalibrationChannels::depth, edm::EventSetup::get(), get, HcalDDDRecConstants::getEtaRange(), HcalDDDRecConstants::getMaxDepth(), HcalDDDRecConstants::getNPhi(), hcons, cuy::ib, ieta_bins_HB, ieta_bins_HE, ieta_bins_HF, ieta_bins_HO, ieta_max_HB, ieta_max_HE, ieta_max_HF, ieta_max_HO, ieta_min_HB, ieta_min_HE, ieta_min_HF, ieta_min_HO, hcalTTPDigis_cfi::iEtaMax, createfilelist::int, iphi_bins, iphi_max, iphi_min, SiStripPI::max, maxDepth_, maxDepthHB_, maxDepthHE_, maxDepthHF_, maxDepthHO_, meAllNHit_, meBadDetHit_, meBadIdHit_, meBadSubHit_, meDepthHit_, meDetectHit_, meEnergyHit_, meEtaHit_, meEtaPhiHit_, meEtaPhiHitDepth_, meHBDepHit_, meHBEneHit2_, meHBEneHit_, meHBEneMap_, meHBEneSum_, meHBEneSum_vs_ieta_, meHBEtaHit_, meHBL10Ene_, meHBL10EneP_, meHBNHit_, meHBPhiHit_, meHBTimHit_, meHEDepHit_, meHEEneHit2_, meHEEneHit_, meHEEneMap_, meHEEneSum_, meHEEneSum_vs_ieta_, meHEEtaHit_, meHEL10Ene_, meHEL10EneP_, meHENHit_, meHEP17EneHit2_, meHEP17EneHit_, meHEPhiHit_, meHETimHit_, meHFDepHit_, meHFDepHitw_, meHFEneHit2_, meHFEneHit_, meHFEneMap_, meHFEneSum_, meHFEneSum_vs_ieta_, meHFEtaHit_, meHFL10Ene_, meHFL10EneP_, meHFNHit_, meHFPhiHit_, meHFTimHit_, meHODepHit_, meHOEneHit2_, meHOEneHit_, meHOEneMap_, meHOEneSum_, meHOEneSum_vs_ieta_, meHOEtaHit_, meHOL10Ene_, meHOL10EneP_, meHONHit_, meHOPhiHit_, meHOTimHit_, mePhiHit_, mePhiHitb_, meSubdetHit_, meTimeHit_, and meTimeWHit_.

Member Data Documentation

◆ checkHit_

bool HcalSimHitStudy::checkHit_
private

Definition at line 61 of file HcalSimHitStudy.h.

Referenced by analyze(), bookHistograms(), and HcalSimHitStudy().

◆ g4Label

std::string HcalSimHitStudy::g4Label
private

Definition at line 60 of file HcalSimHitStudy.h.

Referenced by HcalSimHitStudy().

◆ hcalHits

std::string HcalSimHitStudy::hcalHits
private

Definition at line 60 of file HcalSimHitStudy.h.

Referenced by HcalSimHitStudy().

◆ hcons

const HcalDDDRecConstants* HcalSimHitStudy::hcons
private

Definition at line 44 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ hep17_

bool HcalSimHitStudy::hep17_
private

Definition at line 61 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and HcalSimHitStudy().

◆ ieta_bins_HB

int HcalSimHitStudy::ieta_bins_HB
private

Definition at line 51 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ ieta_bins_HE

int HcalSimHitStudy::ieta_bins_HE
private

Definition at line 53 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ ieta_bins_HF

int HcalSimHitStudy::ieta_bins_HF
private

Definition at line 57 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ ieta_bins_HO

int HcalSimHitStudy::ieta_bins_HO
private

Definition at line 55 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ ieta_max_HB

float HcalSimHitStudy::ieta_max_HB
private

Definition at line 52 of file HcalSimHitStudy.h.

Referenced by bookHistograms().

◆ ieta_max_HE

float HcalSimHitStudy::ieta_max_HE
private

Definition at line 54 of file HcalSimHitStudy.h.

Referenced by bookHistograms().

◆ ieta_max_HF

float HcalSimHitStudy::ieta_max_HF
private

Definition at line 58 of file HcalSimHitStudy.h.

Referenced by bookHistograms().

◆ ieta_max_HO

float HcalSimHitStudy::ieta_max_HO
private

Definition at line 56 of file HcalSimHitStudy.h.

Referenced by bookHistograms().

◆ ieta_min_HB

float HcalSimHitStudy::ieta_min_HB
private

Definition at line 52 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ ieta_min_HE

float HcalSimHitStudy::ieta_min_HE
private

Definition at line 54 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ ieta_min_HF

float HcalSimHitStudy::ieta_min_HF
private

Definition at line 58 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ ieta_min_HO

float HcalSimHitStudy::ieta_min_HO
private

Definition at line 56 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ iphi_bins

int HcalSimHitStudy::iphi_bins
private

Definition at line 49 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ iphi_max

float HcalSimHitStudy::iphi_max
private

Definition at line 50 of file HcalSimHitStudy.h.

Referenced by bookHistograms().

◆ iphi_min

float HcalSimHitStudy::iphi_min
private

Definition at line 50 of file HcalSimHitStudy.h.

Referenced by bookHistograms().

◆ maxDepth_

int HcalSimHitStudy::maxDepth_
private

Definition at line 47 of file HcalSimHitStudy.h.

Referenced by bookHistograms().

◆ maxDepthHB_

int HcalSimHitStudy::maxDepthHB_
private

Definition at line 45 of file HcalSimHitStudy.h.

Referenced by bookHistograms().

◆ maxDepthHE_

int HcalSimHitStudy::maxDepthHE_
private

Definition at line 45 of file HcalSimHitStudy.h.

Referenced by bookHistograms().

◆ maxDepthHF_

int HcalSimHitStudy::maxDepthHF_
private

Definition at line 46 of file HcalSimHitStudy.h.

Referenced by bookHistograms().

◆ maxDepthHO_

int HcalSimHitStudy::maxDepthHO_
private

Definition at line 46 of file HcalSimHitStudy.h.

Referenced by bookHistograms().

◆ meAllNHit_

MonitorElement* HcalSimHitStudy::meAllNHit_
private

Definition at line 65 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meBadDetHit_

MonitorElement * HcalSimHitStudy::meBadDetHit_
private

Definition at line 65 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meBadIdHit_

MonitorElement * HcalSimHitStudy::meBadIdHit_
private

Definition at line 65 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meBadSubHit_

MonitorElement * HcalSimHitStudy::meBadSubHit_
private

Definition at line 65 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meDepthHit_

MonitorElement * HcalSimHitStudy::meDepthHit_
private

Definition at line 67 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meDetectHit_

MonitorElement* HcalSimHitStudy::meDetectHit_
private

Definition at line 67 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meEnergyHit_

MonitorElement * HcalSimHitStudy::meEnergyHit_
private

Definition at line 69 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meEtaHit_

MonitorElement * HcalSimHitStudy::meEtaHit_
private

Definition at line 67 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meEtaPhiHit_

MonitorElement * HcalSimHitStudy::meEtaPhiHit_
private

Definition at line 67 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meEtaPhiHitDepth_

std::vector<MonitorElement *> HcalSimHitStudy::meEtaPhiHitDepth_
private

Definition at line 68 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHBDepHit_

MonitorElement* HcalSimHitStudy::meHBDepHit_
private

Definition at line 70 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHBEneHit2_

MonitorElement* HcalSimHitStudy::meHBEneHit2_
private

Definition at line 78 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHBEneHit_

MonitorElement* HcalSimHitStudy::meHBEneHit_
private

Definition at line 73 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHBEneMap_

MonitorElement* HcalSimHitStudy::meHBEneMap_
private

Definition at line 74 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHBEneSum_

MonitorElement* HcalSimHitStudy::meHBEneSum_
private

Definition at line 75 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHBEneSum_vs_ieta_

MonitorElement* HcalSimHitStudy::meHBEneSum_vs_ieta_
private

Definition at line 76 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHBEtaHit_

MonitorElement* HcalSimHitStudy::meHBEtaHit_
private

Definition at line 71 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHBL10Ene_

MonitorElement* HcalSimHitStudy::meHBL10Ene_
private

Definition at line 79 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHBL10EneP_

MonitorElement* HcalSimHitStudy::meHBL10EneP_
private

Definition at line 80 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHBNHit_

MonitorElement* HcalSimHitStudy::meHBNHit_
private

Definition at line 66 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHBPhiHit_

MonitorElement* HcalSimHitStudy::meHBPhiHit_
private

Definition at line 72 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHBTimHit_

MonitorElement* HcalSimHitStudy::meHBTimHit_
private

Definition at line 77 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHEDepHit_

MonitorElement * HcalSimHitStudy::meHEDepHit_
private

Definition at line 70 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHEEneHit2_

MonitorElement * HcalSimHitStudy::meHEEneHit2_
private

Definition at line 78 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHEEneHit_

MonitorElement * HcalSimHitStudy::meHEEneHit_
private

Definition at line 73 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHEEneMap_

MonitorElement * HcalSimHitStudy::meHEEneMap_
private

Definition at line 74 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHEEneSum_

MonitorElement * HcalSimHitStudy::meHEEneSum_
private

Definition at line 75 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHEEneSum_vs_ieta_

MonitorElement * HcalSimHitStudy::meHEEneSum_vs_ieta_
private

Definition at line 76 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHEEtaHit_

MonitorElement * HcalSimHitStudy::meHEEtaHit_
private

Definition at line 71 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHEL10Ene_

MonitorElement * HcalSimHitStudy::meHEL10Ene_
private

Definition at line 79 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHEL10EneP_

MonitorElement * HcalSimHitStudy::meHEL10EneP_
private

Definition at line 80 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHENHit_

MonitorElement * HcalSimHitStudy::meHENHit_
private

Definition at line 66 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHEP17EneHit2_

MonitorElement * HcalSimHitStudy::meHEP17EneHit2_
private

Definition at line 81 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHEP17EneHit_

MonitorElement* HcalSimHitStudy::meHEP17EneHit_
private

Definition at line 81 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHEPhiHit_

MonitorElement * HcalSimHitStudy::meHEPhiHit_
private

Definition at line 72 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHETimHit_

MonitorElement * HcalSimHitStudy::meHETimHit_
private

Definition at line 77 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHFDepHit_

MonitorElement * HcalSimHitStudy::meHFDepHit_
private

Definition at line 70 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHFDepHitw_

MonitorElement * HcalSimHitStudy::meHFDepHitw_
private

Definition at line 70 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHFEneHit2_

MonitorElement * HcalSimHitStudy::meHFEneHit2_
private

Definition at line 78 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHFEneHit_

MonitorElement * HcalSimHitStudy::meHFEneHit_
private

Definition at line 73 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHFEneMap_

MonitorElement * HcalSimHitStudy::meHFEneMap_
private

Definition at line 74 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHFEneSum_

MonitorElement * HcalSimHitStudy::meHFEneSum_
private

Definition at line 75 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHFEneSum_vs_ieta_

MonitorElement * HcalSimHitStudy::meHFEneSum_vs_ieta_
private

Definition at line 76 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHFEtaHit_

MonitorElement * HcalSimHitStudy::meHFEtaHit_
private

Definition at line 71 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHFL10Ene_

MonitorElement * HcalSimHitStudy::meHFL10Ene_
private

Definition at line 79 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHFL10EneP_

MonitorElement * HcalSimHitStudy::meHFL10EneP_
private

Definition at line 80 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHFNHit_

MonitorElement * HcalSimHitStudy::meHFNHit_
private

Definition at line 66 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHFPhiHit_

MonitorElement * HcalSimHitStudy::meHFPhiHit_
private

Definition at line 72 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHFTimHit_

MonitorElement * HcalSimHitStudy::meHFTimHit_
private

Definition at line 77 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHODepHit_

MonitorElement * HcalSimHitStudy::meHODepHit_
private

Definition at line 70 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHOEneHit2_

MonitorElement * HcalSimHitStudy::meHOEneHit2_
private

Definition at line 78 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHOEneHit_

MonitorElement * HcalSimHitStudy::meHOEneHit_
private

Definition at line 73 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHOEneMap_

MonitorElement * HcalSimHitStudy::meHOEneMap_
private

Definition at line 74 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHOEneSum_

MonitorElement * HcalSimHitStudy::meHOEneSum_
private

Definition at line 75 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHOEneSum_vs_ieta_

MonitorElement * HcalSimHitStudy::meHOEneSum_vs_ieta_
private

Definition at line 76 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHOEtaHit_

MonitorElement * HcalSimHitStudy::meHOEtaHit_
private

Definition at line 71 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHOL10Ene_

MonitorElement * HcalSimHitStudy::meHOL10Ene_
private

Definition at line 79 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHOL10EneP_

MonitorElement * HcalSimHitStudy::meHOL10EneP_
private

Definition at line 80 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHONHit_

MonitorElement * HcalSimHitStudy::meHONHit_
private

Definition at line 66 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHOPhiHit_

MonitorElement * HcalSimHitStudy::meHOPhiHit_
private

Definition at line 72 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meHOTimHit_

MonitorElement * HcalSimHitStudy::meHOTimHit_
private

Definition at line 77 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ mePhiHit_

MonitorElement* HcalSimHitStudy::mePhiHit_
private

Definition at line 69 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ mePhiHitb_

MonitorElement * HcalSimHitStudy::mePhiHitb_
private

Definition at line 69 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meSubdetHit_

MonitorElement * HcalSimHitStudy::meSubdetHit_
private

Definition at line 67 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meTimeHit_

MonitorElement * HcalSimHitStudy::meTimeHit_
private

Definition at line 69 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ meTimeWHit_

MonitorElement * HcalSimHitStudy::meTimeWHit_
private

Definition at line 69 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and bookHistograms().

◆ outFile_

std::string HcalSimHitStudy::outFile_
private

Definition at line 60 of file HcalSimHitStudy.h.

Referenced by HcalSimHitStudy().

◆ testNumber_

bool HcalSimHitStudy::testNumber_
private

Definition at line 61 of file HcalSimHitStudy.h.

Referenced by analyzeHits(), and HcalSimHitStudy().

◆ tok_hits_

edm::EDGetTokenT<edm::PCaloHitContainer> HcalSimHitStudy::tok_hits_
private

Definition at line 63 of file HcalSimHitStudy.h.

Referenced by analyze(), and HcalSimHitStudy().

◆ verbose_

bool HcalSimHitStudy::verbose_
private

Definition at line 61 of file HcalSimHitStudy.h.

Referenced by HcalSimHitStudy().

HcalSimHitStudy::meEtaPhiHit_
MonitorElement * meEtaPhiHit_
Definition: HcalSimHitStudy.h:67
mps_fire.i
i
Definition: mps_fire.py:355
hfClusterShapes_cfi.hits
hits
Definition: hfClusterShapes_cfi.py:5
HcalSimHitStudy::meHODepHit_
MonitorElement * meHODepHit_
Definition: HcalSimHitStudy.h:70
HcalDetId::iphi
constexpr int iphi() const
get the cell iphi
Definition: HcalDetId.h:157
HcalSimHitStudy::meHEEneSum_
MonitorElement * meHEEneSum_
Definition: HcalSimHitStudy.h:75
HcalSimHitStudy::meHOL10EneP_
MonitorElement * meHOL10EneP_
Definition: HcalSimHitStudy.h:80
HcalSimHitStudy::meHOEneSum_vs_ieta_
MonitorElement * meHOEneSum_vs_ieta_
Definition: HcalSimHitStudy.h:76
HcalSimHitStudy::maxDepthHF_
int maxDepthHF_
Definition: HcalSimHitStudy.h:46
HcalSimHitStudy::meHOEneMap_
MonitorElement * meHOEneMap_
Definition: HcalSimHitStudy.h:74
HcalSimHitStudy::ieta_bins_HF
int ieta_bins_HF
Definition: HcalSimHitStudy.h:57
HcalSimHitStudy::meHENHit_
MonitorElement * meHENHit_
Definition: HcalSimHitStudy.h:66
DetId::det
constexpr Detector det() const
get the detector field from this detid
Definition: DetId.h:46
HcalSimHitStudy::meHFEneSum_vs_ieta_
MonitorElement * meHFEneSum_vs_ieta_
Definition: HcalSimHitStudy.h:76
edm::LogInfo
Definition: MessageLogger.h:254
HcalSimHitStudy::outFile_
std::string outFile_
Definition: HcalSimHitStudy.h:60
HcalSimHitStudy::meHEL10Ene_
MonitorElement * meHEL10Ene_
Definition: HcalSimHitStudy.h:79
HcalSimHitStudy::ieta_min_HF
float ieta_min_HF
Definition: HcalSimHitStudy.h:58
HcalSimHitStudy::hep17_
bool hep17_
Definition: HcalSimHitStudy.h:61
HcalSimHitStudy::testNumber_
bool testNumber_
Definition: HcalSimHitStudy.h:61
HcalDetId::depth
constexpr int depth() const
get the tower depth
Definition: HcalDetId.h:164
HcalSimHitStudy::meHOEtaHit_
MonitorElement * meHOEtaHit_
Definition: HcalSimHitStudy.h:71
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
HcalDDDRecConstants::getNPhi
int getNPhi(const int &type) const
Definition: HcalDDDRecConstants.h:93
HcalSimHitStudy::meHEEneMap_
MonitorElement * meHEEneMap_
Definition: HcalSimHitStudy.h:74
HcalSimHitStudy::g4Label
std::string g4Label
Definition: HcalSimHitStudy.h:60
HcalSimHitStudy::meHBEneSum_vs_ieta_
MonitorElement * meHBEneSum_vs_ieta_
Definition: HcalSimHitStudy.h:76
HcalBarrel
Definition: HcalAssistant.h:33
HcalSimHitStudy::meHEL10EneP_
MonitorElement * meHEL10EneP_
Definition: HcalSimHitStudy.h:80
HcalSimHitStudy::meHOTimHit_
MonitorElement * meHOTimHit_
Definition: HcalSimHitStudy.h:77
edm::Handle
Definition: AssociativeIterator.h:50
HcalSimHitStudy::meHBL10EneP_
MonitorElement * meHBL10EneP_
Definition: HcalSimHitStudy.h:80
HcalSimHitStudy::meHFEneMap_
MonitorElement * meHFEneMap_
Definition: HcalSimHitStudy.h:74
HcalSimHitStudy::ieta_max_HE
float ieta_max_HE
Definition: HcalSimHitStudy.h:54
HcalSimHitStudy::meHOEneHit_
MonitorElement * meHOEneHit_
Definition: HcalSimHitStudy.h:73
HcalSimHitStudy::mePhiHit_
MonitorElement * mePhiHit_
Definition: HcalSimHitStudy.h:69
HcalSimHitStudy::meHFTimHit_
MonitorElement * meHFTimHit_
Definition: HcalSimHitStudy.h:77
HcalSimHitStudy::meHEEneHit2_
MonitorElement * meHEEneHit2_
Definition: HcalSimHitStudy.h:78
HcalSimHitStudy::meEtaPhiHitDepth_
std::vector< MonitorElement * > meEtaPhiHitDepth_
Definition: HcalSimHitStudy.h:68
HcalSimHitStudy::meHBEneMap_
MonitorElement * meHBEneMap_
Definition: HcalSimHitStudy.h:74
HcalSimHitStudy::hcalHits
std::string hcalHits
Definition: HcalSimHitStudy.h:60
PVValHelper::eta
Definition: PVValidationHelpers.h:69
HcalSimHitStudy::meHBEneHit2_
MonitorElement * meHBEneHit2_
Definition: HcalSimHitStudy.h:78
HcalSimHitStudy::meSubdetHit_
MonitorElement * meSubdetHit_
Definition: HcalSimHitStudy.h:67
HcalSimHitStudy::meHONHit_
MonitorElement * meHONHit_
Definition: HcalSimHitStudy.h:66
dqm::impl::MonitorElement::Fill
void Fill(long long x)
Definition: MonitorElement.h:290
HcalSimHitStudy::meHFDepHit_
MonitorElement * meHFDepHit_
Definition: HcalSimHitStudy.h:70
edm::ESHandle
Definition: DTSurvey.h:22
HcalSimHitStudy::meBadIdHit_
MonitorElement * meBadIdHit_
Definition: HcalSimHitStudy.h:65
HcalSimHitStudy::maxDepth_
int maxDepth_
Definition: HcalSimHitStudy.h:47
HcalSimHitStudy::maxDepthHE_
int maxDepthHE_
Definition: HcalSimHitStudy.h:45
HcalOuter
Definition: HcalAssistant.h:35
HCALHighEnergyHPDFilter_cfi.energy
energy
Definition: HCALHighEnergyHPDFilter_cfi.py:5
HcalSimHitStudy::meHEP17EneHit_
MonitorElement * meHEP17EneHit_
Definition: HcalSimHitStudy.h:81
HcalSimHitStudy::ieta_min_HE
float ieta_min_HE
Definition: HcalSimHitStudy.h:54
HcalSimHitStudy::ieta_bins_HE
int ieta_bins_HE
Definition: HcalSimHitStudy.h:53
HcalSimHitStudy::meHFL10Ene_
MonitorElement * meHFL10Ene_
Definition: HcalSimHitStudy.h:79
LEDCalibrationChannels.depth
depth
Definition: LEDCalibrationChannels.py:65
HcalSimHitStudy::ieta_max_HF
float ieta_max_HF
Definition: HcalSimHitStudy.h:58
HcalRecNumberingRecord
Definition: HcalRecNumberingRecord.h:23
HcalSimHitStudy::meHFPhiHit_
MonitorElement * meHFPhiHit_
Definition: HcalSimHitStudy.h:72
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HcalSimHitStudy::checkHit_
bool checkHit_
Definition: HcalSimHitStudy.h:61
HcalSimHitStudy::meHFEneSum_
MonitorElement * meHFEneSum_
Definition: HcalSimHitStudy.h:75
HcalSimHitStudy::tok_hits_
edm::EDGetTokenT< edm::PCaloHitContainer > tok_hits_
Definition: HcalSimHitStudy.h:63
HcalSimHitStudy::meHBDepHit_
MonitorElement * meHBDepHit_
Definition: HcalSimHitStudy.h:70
HcalSimHitStudy::ieta_min_HO
float ieta_min_HO
Definition: HcalSimHitStudy.h:56
HcalDetId::ieta
constexpr int ieta() const
get the cell ieta
Definition: HcalDetId.h:155
HcalSimHitStudy::meHFEneHit2_
MonitorElement * meHFEneHit2_
Definition: HcalSimHitStudy.h:78
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:670
HcalSimHitStudy::ieta_max_HB
float ieta_max_HB
Definition: HcalSimHitStudy.h:52
HcalSimHitStudy::maxDepthHB_
int maxDepthHB_
Definition: HcalSimHitStudy.h:45
HcalSimHitStudy::meTimeHit_
MonitorElement * meTimeHit_
Definition: HcalSimHitStudy.h:69
HcalSimHitStudy::verbose_
bool verbose_
Definition: HcalSimHitStudy.h:61
HcalSimHitStudy::meHOL10Ene_
MonitorElement * meHOL10Ene_
Definition: HcalSimHitStudy.h:79
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
HcalSimHitStudy::meHBEneSum_
MonitorElement * meHBEneSum_
Definition: HcalSimHitStudy.h:75
HcalSimHitStudy::meHETimHit_
MonitorElement * meHETimHit_
Definition: HcalSimHitStudy.h:77
HcalSimHitStudy::meHBPhiHit_
MonitorElement * meHBPhiHit_
Definition: HcalSimHitStudy.h:72
HcalSimHitStudy::meEnergyHit_
MonitorElement * meEnergyHit_
Definition: HcalSimHitStudy.h:69
HcalSimHitStudy::iphi_max
float iphi_max
Definition: HcalSimHitStudy.h:50
HcalSimHitStudy::ieta_bins_HO
int ieta_bins_HO
Definition: HcalSimHitStudy.h:55
HcalSimHitStudy::analyzeHits
void analyzeHits(std::vector< PCaloHit > &)
Definition: HcalSimHitStudy.cc:211
HcalDetId::subdet
constexpr HcalSubdetector subdet() const
get the subdetector
Definition: HcalDetId.h:138
HcalDetId
Definition: HcalDetId.h:12
createfilelist.int
int
Definition: createfilelist.py:10
HcalSimHitStudy::meHEEneSum_vs_ieta_
MonitorElement * meHEEneSum_vs_ieta_
Definition: HcalSimHitStudy.h:76
HcalSimHitStudy::meHOEneHit2_
MonitorElement * meHOEneHit2_
Definition: HcalSimHitStudy.h:78
HcalSimHitStudy::meDetectHit_
MonitorElement * meDetectHit_
Definition: HcalSimHitStudy.h:67
cuy.ib
ib
Definition: cuy.py:662
HcalSimHitStudy::meTimeWHit_
MonitorElement * meTimeWHit_
Definition: HcalSimHitStudy.h:69
HcalSimHitStudy::mePhiHitb_
MonitorElement * mePhiHitb_
Definition: HcalSimHitStudy.h:69
get
#define get
HcalSimHitStudy::meHBL10Ene_
MonitorElement * meHBL10Ene_
Definition: HcalSimHitStudy.h:79
HcalSimHitStudy::meBadSubHit_
MonitorElement * meBadSubHit_
Definition: HcalSimHitStudy.h:65
HcalForward
Definition: HcalAssistant.h:36
DDAxes::phi
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
HcalHitRelabeller::relabel
DetId relabel(const uint32_t testId) const
Definition: HcalHitRelabeller.cc:49
HcalSimHitStudy::hcons
const HcalDDDRecConstants * hcons
Definition: HcalSimHitStudy.h:44
HcalSimHitStudy::ieta_min_HB
float ieta_min_HB
Definition: HcalSimHitStudy.h:52
HcalSimHitStudy::ieta_max_HO
float ieta_max_HO
Definition: HcalSimHitStudy.h:56
HcalSimHitStudy::meHEDepHit_
MonitorElement * meHEDepHit_
Definition: HcalSimHitStudy.h:70
HcalSimHitStudy::meBadDetHit_
MonitorElement * meBadDetHit_
Definition: HcalSimHitStudy.h:65
HcalDDDRecConstants::getEtaRange
std::pair< int, int > getEtaRange(const int &i) const
Definition: HcalDDDRecConstants.h:74
HcalSimHitStudy::meDepthHit_
MonitorElement * meDepthHit_
Definition: HcalSimHitStudy.h:67
HcalSimHitStudy::meHEPhiHit_
MonitorElement * meHEPhiHit_
Definition: HcalSimHitStudy.h:72
HcalEndcap
Definition: HcalAssistant.h:34
hcalTTPDigis_cfi.iEtaMax
iEtaMax
Definition: hcalTTPDigis_cfi.py:16
HcalSimHitStudy::meHBNHit_
MonitorElement * meHBNHit_
Definition: HcalSimHitStudy.h:66
HcalSimHitStudy::meEtaHit_
MonitorElement * meEtaHit_
Definition: HcalSimHitStudy.h:67
HcalSimHitStudy::meHOPhiHit_
MonitorElement * meHOPhiHit_
Definition: HcalSimHitStudy.h:72
HcalSimHitStudy::meHOEneSum_
MonitorElement * meHOEneSum_
Definition: HcalSimHitStudy.h:75
HcalSimHitStudy::iphi_min
float iphi_min
Definition: HcalSimHitStudy.h:50
HcalSimHitStudy::meHFNHit_
MonitorElement * meHFNHit_
Definition: HcalSimHitStudy.h:66
HcalSimHitStudy::meHBEneHit_
MonitorElement * meHBEneHit_
Definition: HcalSimHitStudy.h:73
HcalSimHitStudy::meHEP17EneHit2_
MonitorElement * meHEP17EneHit2_
Definition: HcalSimHitStudy.h:81
HcalDDDRecConstants::getMaxDepth
int getMaxDepth(const int &type) const
Definition: HcalDDDRecConstants.h:88
HcalSimHitStudy::meAllNHit_
MonitorElement * meAllNHit_
Definition: HcalSimHitStudy.h:65
HcalSimHitStudy::meHFL10EneP_
MonitorElement * meHFL10EneP_
Definition: HcalSimHitStudy.h:80
HcalSimHitStudy::meHFDepHitw_
MonitorElement * meHFDepHitw_
Definition: HcalSimHitStudy.h:70
HcalSimHitStudy::meHFEtaHit_
MonitorElement * meHFEtaHit_
Definition: HcalSimHitStudy.h:71
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
edm::HandleBase::isValid
bool isValid() const
Definition: HandleBase.h:70
ntuplemaker.time
time
Definition: ntuplemaker.py:310
HcalSimHitStudy::meHFEneHit_
MonitorElement * meHFEneHit_
Definition: HcalSimHitStudy.h:73
HcalSimHitStudy::meHEEtaHit_
MonitorElement * meHEEtaHit_
Definition: HcalSimHitStudy.h:71
HcalSimHitStudy::ieta_bins_HB
int ieta_bins_HB
Definition: HcalSimHitStudy.h:51
TauDecayModes.dec
dec
Definition: TauDecayModes.py:143
HcalSimHitStudy::maxDepthHO_
int maxDepthHO_
Definition: HcalSimHitStudy.h:46
edm::InputTag
Definition: InputTag.h:15
HcalSimHitStudy::meHBTimHit_
MonitorElement * meHBTimHit_
Definition: HcalSimHitStudy.h:77
HcalSimHitStudy::meHEEneHit_
MonitorElement * meHEEneHit_
Definition: HcalSimHitStudy.h:73
HcalSimHitStudy::meHBEtaHit_
MonitorElement * meHBEtaHit_
Definition: HcalSimHitStudy.h:71
HcalSimHitStudy::iphi_bins
int iphi_bins
Definition: HcalSimHitStudy.h:49
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37