CMS 3D CMS Logo

LEDTask.cc
Go to the documentation of this file.
1 
3 
4 using namespace hcaldqm;
5 using namespace hcaldqm::constants;
6 using namespace hcaldqm::filter;
7 
9  : DQTask(ps), hcalDbServiceToken_(esConsumes<HcalDbService, HcalDbRecord, edm::Transition::BeginRun>()) {
10  _nevents = ps.getUntrackedParameter<int>("nevents", 2000);
11  // tags
12  _tagQIE11 = ps.getUntrackedParameter<edm::InputTag>("tagHE", edm::InputTag("hcalDigis"));
13  _tagHO = ps.getUntrackedParameter<edm::InputTag>("tagHO", edm::InputTag("hcalDigis"));
14  _tagQIE10 = ps.getUntrackedParameter<edm::InputTag>("tagHF", edm::InputTag("hcalDigis"));
15  _tagTrigger = ps.getUntrackedParameter<edm::InputTag>("tagTrigger", edm::InputTag("tbunpacker"));
16  _taguMN = ps.getUntrackedParameter<edm::InputTag>("taguMN", edm::InputTag("hcalDigis"));
17  _tokQIE11 = consumes<QIE11DigiCollection>(_tagQIE11);
18  _tokHO = consumes<HODigiCollection>(_tagHO);
19  _tokQIE10 = consumes<QIE10DigiCollection>(_tagQIE10);
20  _tokTrigger = consumes<HcalTBTriggerData>(_tagTrigger);
21  _tokuMN = consumes<HcalUMNioDigi>(_taguMN);
22 
23  // constants
24  _lowHBHE = ps.getUntrackedParameter<double>("lowHBHE", 20);
25  _lowHO = ps.getUntrackedParameter<double>("lowHO", 20);
26  _lowHF = ps.getUntrackedParameter<double>("lowHF", 20);
27 }
28 
29 /* virtual */ void LEDTask::bookHistograms(DQMStore::IBooker& ib, edm::Run const& r, edm::EventSetup const& es) {
30  if (_ptype == fLocal)
31  if (r.runAuxiliary().run() == 1)
32  return;
33 
35 
37  _emap = dbService->getHcalMapping();
38 
39  // Book LED calibration channels from emap
40  std::vector<HcalElectronicsId> eids = _emap->allElectronicsId();
41  for (unsigned i = 0; i < eids.size(); i++) {
42  HcalElectronicsId eid = eids[i];
43  DetId id = _emap->lookup(eid);
44  if (HcalGenericDetId(id.rawId()).isHcalCalibDetId()) {
45  HcalCalibDetId calibId(id);
47  HcalSubdetector this_subdet = HcalEmpty;
48  switch (calibId.hcalSubdet()) {
49  case HcalBarrel:
50  this_subdet = HcalBarrel;
51  break;
52  case HcalEndcap:
53  this_subdet = HcalEndcap;
54  break;
55  case HcalOuter:
56  this_subdet = HcalOuter;
57  break;
58  case HcalForward:
59  this_subdet = HcalForward;
60  break;
61  default:
62  this_subdet = HcalEmpty;
63  break;
64  }
65  _ledCalibrationChannels[this_subdet].push_back(
66  HcalDetId(HcalOther, calibId.ieta(), calibId.iphi(), calibId.cboxChannel()));
67  }
68  }
69  }
70 
71  std::vector<uint32_t> vhashVME;
72  std::vector<uint32_t> vhashuTCA;
73  std::vector<uint32_t> vhashC36;
74  vhashVME.push_back(
76  vhashuTCA.push_back(HcalElectronicsId(CRATE_uTCA_MIN, SLOT_uTCA_MIN, FIBER_uTCA_MIN1, FIBERCH_MIN, false).rawId());
79 
80  // INITIALIZE
82  "SignalMean",
86  0);
88  "SignalRMS",
92  0);
94  "TimingMean",
98  0);
100  "TimingRMS",
104  0);
105 
106  if (_ptype == fLocal) { // hidefed2crate
108  "SignalMean",
113  0);
115  "SignalMean",
120  0);
122  "SignalRMS",
127  0);
129  "SignalRMS",
134  0);
136  "TimingMean",
141  0);
143  "TimingMean",
148  0);
150  "TimingRMS",
155  0);
157  "TimingRMS",
162  0);
163 
165  "Shape",
169  0);
170  }
171 
173  "SignalMean",
178  0);
180  "SignalRMS",
185  0);
187  "TimingMean",
192  0);
194  "TimingRMS",
199  0);
200 
202  "Missing",
207  0);
208  if (_ptype != fOffline) { // hidefed2crate
210  "Missing",
215  0);
217  "Missing",
222  0);
223  }
224 
225  // Plots for LED in global
226  if (_ptype == fOnline || _ptype == fLocal) {
228  "ADCvsTS",
233  0);
234  }
235  if (_ptype == fOnline) {
237  "LowSignal",
241  0);
243  "SumQ",
247  0);
249  "TDCTime",
253  0);
255  "TDCTime",
260  0);
262  "LED_ADCvsBX",
267  0);
268  } else if (_ptype == fLocal) {
270  "LED_ADCvsEvn",
275  0);
276  }
277 
278  // initialize compact containers
284 
285  // BOOK
290 
295 
297  if (_ptype == fLocal) { // hidefed2crate
309  }
310  if (_ptype == fOnline || _ptype == fLocal) {
312  }
313  if (_ptype == fOnline) {
318  }
319 
320  if (_ptype == fOnline) {
322  } else if (_ptype == fLocal) {
324  }
325 
331 
333 }
334 
335 /* virtual */ void LEDTask::_resetMonitors(hcaldqm::UpdateFreq uf) { DQTask::_resetMonitors(uf); }
336 
337 /* virtual */ void LEDTask::_dump() {
346 
347  if (_ptype == fLocal) { // hidefed2crate
356  }
357 
358  std::vector<HcalGenericDetId> dids = _emap->allPrecisionId();
359  for (std::vector<HcalGenericDetId>::const_iterator it = dids.begin(); it != dids.end(); ++it) {
360  if (!it->isHcalDetId())
361  continue;
362  HcalDetId did = HcalDetId(it->rawId());
364  int n = _xEntries.get(did);
365  double msig = _xSignalSum.get(did) / n;
366  double mtim = _xTimingSum.get(did) / n;
367  double rsig = sqrt(_xSignalSum2.get(did) / n - msig * msig);
368  double rtim = sqrt(_xTimingSum2.get(did) / n - mtim * mtim);
369 
370  // channels missing or low signal
371  if (n == 0) {
372  _cMissing_depth.fill(did);
373  if (_ptype == fLocal) { // hidefed2crate
374  if (eid.isVMEid())
376  else
378  }
379  continue;
380  }
381  _cSignalMean_Subdet.fill(did, msig);
382  _cSignalMean_depth.fill(did, msig);
383  _cSignalRMS_Subdet.fill(did, rsig);
384  _cSignalRMS_depth.fill(did, rsig);
385  _cTimingMean_Subdet.fill(did, mtim);
386  _cTimingMean_depth.fill(did, mtim);
387  _cTimingRMS_Subdet.fill(did, rtim);
388  _cTimingRMS_depth.fill(did, rtim);
389  if (_ptype == fLocal) { // hidefed2crate
390  if (eid.isVMEid()) {
392  _cSignalRMS_FEDVME.fill(eid, rsig);
394  _cTimingRMS_FEDVME.fill(eid, rtim);
395  } else {
400  }
401  }
402  }
403 }
404 
405 /* virtual */ void LEDTask::_process(edm::Event const& e, edm::EventSetup const& es) {
409 
410  if (!e.getByToken(_tokHO, c_ho))
411  _logger.dqmthrow("Collection HODigiCollection isn't available " + _tagHO.label() + " " + _tagHO.instance());
412  if (!e.getByToken(_tokQIE10, c_QIE10))
413  _logger.dqmthrow("Collection QIE10DigiCollection isn't available " + _tagQIE10.label() + " " +
414  _tagQIE10.instance());
415  if (!e.getByToken(_tokQIE11, c_QIE11))
416  _logger.dqmthrow("Collection QIE11DigiCollection isn't available " + _tagQIE11.label() + " " +
417  _tagQIE11.instance());
418 
419  // int currentEvent = e.eventAuxiliary().id().event();
420 
421  for (QIE11DigiCollection::const_iterator it = c_QIE11->begin(); it != c_QIE11->end(); ++it) {
422  const QIE11DataFrame digi = static_cast<const QIE11DataFrame>(*it);
423  HcalDetId const& did = digi.detid();
424  if ((did.subdet() != HcalBarrel) && (did.subdet() != HcalEndcap)) {
425  // LED monitoring from calibration channels
426  if (did.subdet() == HcalOther) {
427  HcalOtherDetId hodid(digi.detid());
428  if (hodid.subdet() == HcalCalibration) {
431  for (int i = 0; i < digi.samples(); i++) {
432  if (_ptype == fOnline) {
433  _LED_ADCvsBX_Subdet.fill(HcalDetId(HcalEndcap, 16, 1, 1), e.bunchCrossing(), digi[i].adc());
434  } else if (_ptype == fLocal) {
436  HcalDetId(HcalEndcap, 16, 1, 1), e.eventAuxiliary().id().event(), digi[i].adc());
437  }
438  }
439  } else if (std::find(_ledCalibrationChannels[HcalBarrel].begin(),
441  did) != _ledCalibrationChannels[HcalBarrel].end()) {
442  for (int i = 0; i < digi.samples(); i++) {
443  if (_ptype == fOnline) {
444  _LED_ADCvsBX_Subdet.fill(HcalDetId(HcalBarrel, 1, 1, 1), e.bunchCrossing(), digi[i].adc());
445  } else if (_ptype == fLocal) {
447  HcalDetId(HcalBarrel, 1, 1, 1), e.eventAuxiliary().id().event(), digi[i].adc());
448  }
449  }
450  }
451  }
452  }
453  continue;
454  }
455  uint32_t rawid = _ehashmap.lookup(did);
456  if (!rawid) {
457  std::string unknown_id_string = "Detid " + std::to_string(int(did)) + ", ieta " + std::to_string(did.ieta());
458  unknown_id_string += ", iphi " + std::to_string(did.iphi()) + ", depth " + std::to_string(did.depth());
459  unknown_id_string += ", is not in emap. Skipping.";
460  _logger.warn(unknown_id_string);
461  continue;
462  }
463  HcalElectronicsId const& eid(rawid);
464 
465  CaloSamples digi_fC = hcaldqm::utilities::loadADC2fCDB<QIE11DataFrame>(_dbService, did, digi);
466  //double sumQ = hcaldqm::utilities::sumQ_v10<QIE11DataFrame>(digi, 2.5, 0, digi.samples()-1);
467  double sumQ = hcaldqm::utilities::sumQDB<QIE11DataFrame>(_dbService, digi_fC, did, digi, 0, digi.samples() - 1);
468  if (sumQ >= _lowHBHE) {
469  //double aveTS = hcaldqm::utilities::aveTS_v10<QIE11DataFrame>(digi, 2.5, 0,digi.samples()-1);
470  double aveTS = hcaldqm::utilities::aveTSDB<QIE11DataFrame>(_dbService, digi_fC, did, digi, 0, digi.size() - 1);
471 
472  _xSignalSum.get(did) += sumQ;
473  _xSignalSum2.get(did) += sumQ * sumQ;
474  _xTimingSum.get(did) += aveTS;
475  _xTimingSum2.get(did) += aveTS * aveTS;
476  _xEntries.get(did)++;
477 
478  if (_ptype == fLocal) { // hidefed2crate
479  for (int i = 0; i < digi.samples(); i++) {
480  //_cShapeCut_FEDSlot.fill(eid, i, digi.sample(i).nominal_fC()-2.5);
482  eid, i, hcaldqm::utilities::adc2fCDBMinusPedestal<QIE11DataFrame>(_dbService, digi_fC, did, digi, i));
483  }
484  }
485  if (_ptype == fOnline || _ptype == fLocal) {
486  for (int iTS = 0; iTS < digi.samples(); ++iTS) {
487  _cADCvsTS_SubdetPM.fill(did, iTS, digi[iTS].adc());
488  }
489  }
490  if (_ptype == fOnline) {
491  for (int iTS = 0; iTS < digi.samples(); ++iTS) {
492  if (digi[iTS].tdc() < 50) {
493  double time = iTS * 25. + (digi[iTS].tdc() / 2.);
495  _cTDCTime_depth.fill(did, time);
496  }
497  }
498  _cSumQ_SubdetPM.fill(did, sumQ);
499 
500  // Low signal in SOI
501  short soi = -1;
502  for (int i = 0; i < digi.samples(); i++) {
503  if (digi[i].soi()) {
504  soi = i;
505  break;
506  }
507  }
508  if (digi[soi].adc() < 30) {
510  }
511  }
512  }
513  }
514  for (HODigiCollection::const_iterator it = c_ho->begin(); it != c_ho->end(); ++it) {
515  const HODataFrame digi = (const HODataFrame)(*it);
516  HcalDetId did = digi.id();
517  if (did.subdet() != HcalOuter) {
518  // LED monitoring from calibration channels
519  if (did.subdet() == HcalOther) {
520  HcalOtherDetId hodid(did);
521  if (hodid.subdet() == HcalCalibration) {
524  for (int i = 0; i < digi.size(); i++) {
525  if (_ptype == fOnline) {
526  _LED_ADCvsBX_Subdet.fill(HcalDetId(HcalOuter, 1, 1, 4), e.bunchCrossing(), digi[i].adc());
527  } else if (_ptype == fLocal) {
529  HcalDetId(HcalOuter, 1, 1, 4), e.eventAuxiliary().id().event(), digi[i].adc());
530  }
531  }
532  }
533  }
534  }
535  }
536  HcalElectronicsId eid = digi.elecId();
537  //double sumQ = hcaldqm::utilities::sumQ<HODataFrame>(digi, 8.5, 0, digi.size()-1);
538  CaloSamples digi_fC = hcaldqm::utilities::loadADC2fCDB<HODataFrame>(_dbService, did, digi);
539  double sumQ = hcaldqm::utilities::sumQDB<HODataFrame>(_dbService, digi_fC, did, digi, 0, digi.size() - 1);
540  if (sumQ >= _lowHO) {
541  //double aveTS = hcaldqm::utilities::aveTS<HODataFrame>(digi, 8.5, 0, digi.size()-1);
542  double aveTS = hcaldqm::utilities::aveTSDB<HODataFrame>(_dbService, digi_fC, did, digi, 0, digi.size() - 1);
543 
544  _xSignalSum.get(did) += sumQ;
545  _xSignalSum2.get(did) += sumQ * sumQ;
546  _xTimingSum.get(did) += aveTS;
547  _xTimingSum2.get(did) += aveTS * aveTS;
548  _xEntries.get(did)++;
549 
550  if (_ptype == fLocal) { // hidefed2crate
551  for (int i = 0; i < digi.size(); i++) {
552  //_cShapeCut_FEDSlot.fill(eid, i, digi.sample(i).nominal_fC()-8.5);
554  eid, i, hcaldqm::utilities::adc2fCDBMinusPedestal<HODataFrame>(_dbService, digi_fC, did, digi, i));
555  }
556  }
557  if (_ptype == fOnline || _ptype == fLocal) {
558  for (int iTS = 0; iTS < digi.size(); ++iTS) {
559  _cADCvsTS_SubdetPM.fill(did, iTS, digi.sample(iTS).adc());
560  }
561  }
562  if (_ptype == fOnline) {
563  _cSumQ_SubdetPM.fill(did, sumQ);
564  }
565  }
566  }
567 
568  for (QIE10DigiCollection::const_iterator it = c_QIE10->begin(); it != c_QIE10->end(); ++it) {
569  const QIE10DataFrame digi = static_cast<const QIE10DataFrame>(*it);
570  HcalDetId did = digi.detid();
571  if (did.subdet() != HcalForward) {
572  // LED monitoring from calibration channels
573  if (did.subdet() == HcalOther) {
574  HcalOtherDetId hodid(digi.detid());
575  if (hodid.subdet() == HcalCalibration) {
578  did) != _ledCalibrationChannels[HcalForward].end()) {
579  for (int i = 0; i < digi.samples(); i++) {
580  if (_ptype == fOnline) {
581  _LED_ADCvsBX_Subdet.fill(HcalDetId(HcalForward, 29, 1, 1), e.bunchCrossing(), digi[i].adc());
582  } else if (_ptype == fLocal) {
584  HcalDetId(HcalForward, 29, 1, 1), e.eventAuxiliary().id().event(), digi[i].adc());
585  }
586  }
587  }
588  }
589  }
590  continue;
591  }
593  //double sumQ = hcaldqm::utilities::sumQ_v10<QIE10DataFrame>(digi, 2.5, 0, digi.samples()-1);
594  CaloSamples digi_fC = hcaldqm::utilities::loadADC2fCDB<QIE10DataFrame>(_dbService, did, digi);
595  double sumQ = hcaldqm::utilities::sumQDB<QIE10DataFrame>(_dbService, digi_fC, did, digi, 0, digi.samples() - 1);
596  if (sumQ >= _lowHF) {
597  //double aveTS = hcaldqm::utilities::aveTS_v10<QIE10DataFrame>(digi, 2.5, 0, digi.samples()-1);
598  double aveTS = hcaldqm::utilities::aveTSDB<QIE10DataFrame>(_dbService, digi_fC, did, digi, 0, digi.size() - 1);
599 
600  _xSignalSum.get(did) += sumQ;
601  _xSignalSum2.get(did) += sumQ * sumQ;
602  _xTimingSum.get(did) += aveTS;
603  _xTimingSum2.get(did) += aveTS * aveTS;
604  _xEntries.get(did)++;
605 
606  if (_ptype == fLocal) { // hidefed2crate
607  for (int i = 0; i < digi.samples(); ++i) {
608  // Note: this used to be digi.sample(i).nominal_fC() - 2.5, but this branch doesn't exist in QIE10DataFrame.
609  // Instead, use lookup table.
610  //_cShapeCut_FEDSlot.fill(eid, i, constants::adc2fC[digi[i].adc()]);
612  eid, i, hcaldqm::utilities::adc2fCDBMinusPedestal<QIE10DataFrame>(_dbService, digi_fC, did, digi, i));
613  }
614  }
615  if (_ptype == fOnline || _ptype == fLocal) {
616  for (int iTS = 0; iTS < digi.samples(); ++iTS) {
617  _cADCvsTS_SubdetPM.fill(did, iTS, digi[iTS].adc());
618  }
619  }
620  if (_ptype == fOnline) {
621  for (int iTS = 0; iTS < digi.samples(); ++iTS) {
622  if (digi[iTS].le_tdc() < 50) {
623  double time = iTS * 25. + (digi[iTS].le_tdc() / 2.);
625  _cTDCTime_depth.fill(did, time);
626  }
627  }
628  _cSumQ_SubdetPM.fill(did, sumQ);
629  }
630  }
631  }
632 
634  this->_dump();
635 }
636 
637 /* virtual */ bool LEDTask::_isApplicable(edm::Event const& e) {
638  if (_ptype != fOnline) {
639  // local
641  if (!e.getByToken(_tokTrigger, ctrigger))
642  _logger.dqmthrow("Collection HcalTBTriggerData isn't available " + _tagTrigger.label() + " " +
644  return ctrigger->wasLEDTrigger();
645  } else {
646  // fOnline mode
648  if (!e.getByToken(_tokuMN, cumn)) {
649  return false;
650  }
651 
652  return (cumn->eventType() == constants::EVENTTYPE_LED);
653  }
654 
655  return false;
656 }
657 
HcalOther
Definition: HcalAssistant.h:38
LEDTask::_cMissing_depth
hcaldqm::Container2D _cMissing_depth
Definition: LEDTask.h:98
HODataFrame::sample
constexpr const HcalQIESample & sample(int i) const
access a sample
Definition: HODataFrame.h:40
HcalTBTriggerData::wasLEDTrigger
bool wasLEDTrigger() const
returns true if this was a LED trigger
Definition: HcalTBTriggerData.h:93
hcaldqm::ContainerXXX::initialize
virtual void initialize(hashfunctions::HashType, int debug=0)
Definition: ContainerXXX.h:81
mps_fire.i
i
Definition: mps_fire.py:428
hcaldqm::constants
Definition: Constants.h:9
hcaldqm::Container2D::initialize
virtual void initialize(std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *, quantity::Quantity *qz=new quantity::ValueQuantity(quantity::fN), int debug=0)
Definition: Container2D.cc:25
edm::SortedCollection::const_iterator
std::vector< T >::const_iterator const_iterator
Definition: SortedCollection.h:80
LEDTask.h
hcaldqm::UpdateFreq
UpdateFreq
Definition: DQTask.h:32
LEDTask::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: LEDTask.cc:29
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
hcaldqm::electronicsmap::ElectronicsMap::lookup
uint32_t lookup(DetId const &)
Definition: ElectronicsMap.cc:122
bookHistograms
example_stream void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
HcalUMNioDigi::eventType
uint8_t eventType() const
Definition: HcalUMNioDigi.cc:35
LEDTask::_taguMN
edm::InputTag _taguMN
Definition: LEDTask.h:47
edm::InputTag::instance
std::string const & instance() const
Definition: InputTag.h:37
edm::DataFrameContainer::const_iterator
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
Definition: DataFrameContainer.h:61
hcaldqm::quantity::fSlotuTCA
Definition: ElectronicsQuantity.h:21
LEDTask::_lowHBHE
double _lowHBHE
Definition: LEDTask.h:62
HcalElectronicsMap::allElectronicsId
std::vector< HcalElectronicsId > allElectronicsId() const
Definition: HcalElectronicsMap.cc:110
HcalGenericDetId
Definition: HcalGenericDetId.h:15
LEDTask::_tagQIE11
edm::InputTag _tagQIE11
Definition: LEDTask.h:43
LEDTask::_ehashmap
hcaldqm::electronicsmap::ElectronicsMap _ehashmap
Definition: LEDTask.h:56
HcalDetId::iphi
constexpr int iphi() const
get the cell iphi
Definition: HcalDetId.h:157
QIE10DataFrame::samples
constexpr int samples() const
total number of samples in the digi
Definition: QIE10DataFrame.h:86
LEDTask::_cTimingMean_Subdet
hcaldqm::Container1D _cTimingMean_Subdet
Definition: LEDTask.h:76
edm::Run
Definition: Run.h:45
hcaldqm::ContainerProf2D::book
void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="") override
Definition: ContainerProf2D.cc:47
hcaldqm::quantity::ValueQuantity
Definition: ValueQuantity.h:319
LEDTask::_cSignalRMS_FEDuTCA
hcaldqm::ContainerProf2D _cSignalRMS_FEDuTCA
Definition: LEDTask.h:93
hcaldqm::hashfunctions::fElectronics
Definition: HashFunctions.h:154
HcalCalibDetId
Definition: HcalCalibDetId.h:45
HcalQIESample::adc
constexpr int adc() const
get the ADC sample
Definition: HcalQIESample.h:43
edm
HLT enums.
Definition: AlignableModifier.h:19
hcaldqm::Container1D::reset
virtual void reset()
Definition: Container1D.cc:60
gpuClustering::adc
uint16_t *__restrict__ uint16_t const *__restrict__ adc
Definition: gpuClusterChargeCut.h:20
hcaldqm
Definition: Constants.h:8
LEDTask::_cSignalMean_depth
hcaldqm::ContainerProf2D _cSignalMean_depth
Definition: LEDTask.h:83
LEDTask::_cSignalMean_Subdet
hcaldqm::Container1D _cSignalMean_Subdet
Definition: LEDTask.h:74
LEDTask::_cShapeCut_FEDSlot
hcaldqm::ContainerProf1D _cShapeCut_FEDSlot
Definition: LEDTask.h:80
HLT_FULL_cff.InputTag
InputTag
Definition: HLT_FULL_cff.py:89301
hcaldqm::electronicsmap::ElectronicsMap::initialize
void initialize(HcalElectronicsMap const *, ElectronicsMapType etype=fHcalElectronicsMap)
Definition: ElectronicsMap.cc:6
LEDTask::_cADCvsTS_SubdetPM
hcaldqm::Container2D _cADCvsTS_SubdetPM
Definition: LEDTask.h:103
LEDTask::_tokuMN
edm::EDGetTokenT< HcalUMNioDigi > _tokuMN
Definition: LEDTask.h:52
hcaldqm::hashfunctions::fSubdetPM
Definition: HashFunctions.h:136
hcaldqm::constants::SPIGOT_MIN
const int SPIGOT_MIN
Definition: Constants.h:120
hcaldqm::DQModule::_evsTotal
int _evsTotal
Definition: DQModule.h:51
hcaldqm::fLocal
Definition: DQModule.h:26
LEDTask::_cSignalRMS_FEDVME
hcaldqm::ContainerProf2D _cSignalRMS_FEDVME
Definition: LEDTask.h:92
hcaldqm::constants::SLOT_uTCA_MIN
const int SLOT_uTCA_MIN
Definition: Constants.h:107
hcaldqm::constants::FIBER_uTCA_MIN1
const int FIBER_uTCA_MIN1
Definition: Constants.h:128
HcalCalibDetId::ieta
int ieta() const
Definition: HcalCalibDetId.cc:94
protons_cff.time
time
Definition: protons_cff.py:35
HcalDetId::depth
constexpr int depth() const
get the tower depth
Definition: HcalDetId.h:164
LEDTask
Definition: LEDTask.py:1
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
LEDTask::_LED_ADCvsEvn_Subdet
hcaldqm::Container2D _LED_ADCvsEvn_Subdet
Definition: LEDTask.h:112
QIE10DataFrame::size
constexpr edm::DataFrame::size_type size() const
more accessors
Definition: QIE10DataFrame.h:79
LEDTask::_cSignalMean_FEDuTCA
hcaldqm::ContainerProf2D _cSignalMean_FEDuTCA
Definition: LEDTask.h:89
hcaldqm::hashfunctions::fFED
Definition: HashFunctions.h:145
HcalBarrel
Definition: HcalAssistant.h:33
HcalEmpty
Definition: HcalAssistant.h:32
hcaldqm::DQModule::_ptype
ProcessingType _ptype
Definition: DQModule.h:44
LEDTask::_dump
virtual void _dump()
Definition: LEDTask.cc:337
spr::find
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
edm::Handle
Definition: AssociativeIterator.h:50
LEDTask::_xSignalSum2
hcaldqm::ContainerXXX< double > _xSignalSum2
Definition: LEDTask.h:68
hcaldqm::hashfunctions::fdepth
Definition: HashFunctions.h:140
LEDTask::_process
void _process(edm::Event const &, edm::EventSetup const &) override
Definition: LEDTask.cc:405
HODataFrame::elecId
constexpr HcalElectronicsId const & elecId() const
Definition: HODataFrame.h:24
LEDTask::_cTDCTime_depth
hcaldqm::ContainerProf2D _cTDCTime_depth
Definition: LEDTask.h:106
hcaldqm::utilities::sumQ
double sumQ(DIGI const &digi, double ped, int i=0, int j=3)
Definition: Utilities.h:126
HcalDbService::getHcalMapping
const HcalElectronicsMap * getHcalMapping() const
Definition: HcalDbService.cc:343
LEDTask::_nevents
int _nevents
Definition: LEDTask.h:61
hcaldqm::hashfunctions::fFEDSlot
Definition: HashFunctions.h:147
LEDTask::_tagHO
edm::InputTag _tagHO
Definition: LEDTask.h:44
LEDTask::_filter_VME
hcaldqm::filter::HashFilter _filter_VME
Definition: LEDTask.h:58
hcaldqm::quantity::ffC_3000
Definition: ValueQuantity.h:20
hcaldqm::ContainerSingle2D::fill
virtual void fill(int, int)
Definition: ContainerSingle2D.cc:105
HcalElectronicsMap::allPrecisionId
std::vector< HcalGenericDetId > allPrecisionId() const
Definition: HcalElectronicsMap.cc:139
edm::InputTag::label
std::string const & label() const
Definition: InputTag.h:36
DetId
Definition: DetId.h:17
hcaldqm::quantity::fieta
Definition: DetectorQuantity.h:15
hcaldqm::quantity::fADC_256_4
Definition: ValueQuantity.h:70
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
LEDTask::_cTimingRMS_FEDVME
hcaldqm::ContainerProf2D _cTimingRMS_FEDVME
Definition: LEDTask.h:94
LEDTask::_tokQIE10
edm::EDGetTokenT< QIE10DigiCollection > _tokQIE10
Definition: LEDTask.h:50
QIE10DataFrame::detid
constexpr DetId detid() const
Get the detector id.
Definition: QIE10DataFrame.h:76
hcaldqm::quantity::fiphi
Definition: DetectorQuantity.h:14
edm::SortedCollection::begin
const_iterator begin() const
Definition: SortedCollection.h:262
hcaldqm::ContainerProf2D::initialize
void initialize(std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *, quantity::Quantity *qz=new quantity::ValueQuantity(quantity::fEnergy), int debug=0) override
Definition: ContainerProf2D.cc:22
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
hcaldqm::constants::CRATE_uTCA_MIN
const int CRATE_uTCA_MIN
Definition: Constants.h:100
mps_fire.end
end
Definition: mps_fire.py:242
hcaldqm::filter::HashFilter::initialize
virtual void initialize(FilterType ftype, hashfunctions::HashType htype, std::vector< uint32_t > const &)
Definition: HashFilter.cc:17
hcaldqm::constants::FIBER_VME_MIN
const int FIBER_VME_MIN
Definition: Constants.h:125
edm::ESHandle< HcalDbService >
HcalElectronicsId
Readout chain identification for Hcal.
Definition: HcalElectronicsId.h:32
hcaldqm::DQModule::_name
std::string _name
Definition: DQModule.h:42
HcalOuter
Definition: HcalAssistant.h:35
Logger::warn
void warn(std::string const &msg) const
Definition: Logger.h:13
LEDTask::_cTimingMean_FEDuTCA
hcaldqm::ContainerProf2D _cTimingMean_FEDuTCA
Definition: LEDTask.h:91
HcalCalibration
Definition: HcalAssistant.h:40
QIE11DataFrame::samples
constexpr int samples() const
total number of samples in the digi
Definition: QIE11DataFrame.h:77
hcaldqm::constants::FIBERCH_MIN
const int FIBERCH_MIN
Definition: Constants.h:134
LEDTask::_tokQIE11
edm::EDGetTokenT< QIE11DigiCollection > _tokQIE11
Definition: LEDTask.h:48
hcaldqm::hashfunctions::fSubdet
Definition: HashFunctions.h:132
hcaldqm::quantity::DetectorQuantity
Definition: DetectorQuantity.h:59
LEDTask::_cTimingRMS_FEDuTCA
hcaldqm::ContainerProf2D _cTimingRMS_FEDuTCA
Definition: LEDTask.h:95
LEDTask::_tagQIE10
edm::InputTag _tagQIE10
Definition: LEDTask.h:45
hcaldqm::quantity::fCrateuTCA
Definition: ElectronicsQuantity.h:19
LEDTask::_filter_uTCA
hcaldqm::filter::HashFilter _filter_uTCA
Definition: LEDTask.h:57
LEDTask::_cTDCTime_SubdetPM
hcaldqm::Container1D _cTDCTime_SubdetPM
Definition: LEDTask.h:105
QIE11DataFrame::size
constexpr edm::DataFrame::size_type size() const
more accessors
Definition: QIE11DataFrame.h:70
LEDTask::_lowHF
double _lowHF
Definition: LEDTask.h:64
hcaldqm::quantity::fN
Definition: ValueQuantity.h:11
Logger::dqmthrow
void dqmthrow(std::string const &msg) const
Definition: Logger.h:12
HcalDetId::ieta
constexpr int ieta() const
get the cell ieta
Definition: HcalDetId.h:155
hcaldqm::quantity::fQIE10fC_400000
Definition: ValueQuantity.h:50
edm::ParameterSet
Definition: ParameterSet.h:47
edm::Transition
Transition
Definition: Transition.h:12
hcaldqm::Container2D::book
void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="") override
Definition: Container2D.cc:567
LEDTask::_xEntries
hcaldqm::ContainerXXX< int > _xEntries
Definition: LEDTask.h:69
hcaldqm::Container2D::fill
void fill(HcalDetId const &) override
Definition: Container2D.cc:52
hcaldqm::hashfunctions::fDChannel
Definition: HashFunctions.h:143
hcaldqm::Container1D::fill
virtual void fill(uint32_t)
Definition: Container1D.cc:73
edm::SortedCollection::end
const_iterator end() const
Definition: SortedCollection.h:267
LEDTask::_xTimingSum2
hcaldqm::ContainerXXX< double > _xTimingSum2
Definition: LEDTask.h:71
LEDTask::hcalDbServiceToken_
edm::ESGetToken< HcalDbService, HcalDbRecord > hcalDbServiceToken_
Definition: LEDTask.h:53
hcaldqm::DQModule::_logger
Logger _logger
Definition: DQModule.h:55
HcalDetId::subdet
constexpr HcalSubdetector subdet() const
get the subdetector
Definition: HcalDetId.h:138
HcalDetId
Definition: HcalDetId.h:12
hcaldqm::quantity::fQIE10ADC_256
Definition: ValueQuantity.h:34
LEDTask::_isApplicable
bool _isApplicable(edm::Event const &) override
Definition: LEDTask.cc:637
runTauDisplay.eid
eid
Definition: runTauDisplay.py:298
edm::DataFrameContainer::begin
const_iterator begin() const
The iterator returned can not safely be used across threads.
Definition: DataFrameContainer.h:149
HcalCalibDetId::iphi
int iphi() const
get the low-edge iphi (if relevant)
Definition: HcalCalibDetId.cc:104
hcaldqm::DQTask::_dbService
edm::ESHandle< HcalDbService > _dbService
Definition: DQTask.h:80
edm::EventSetup::getHandle
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Definition: EventSetup.h:155
HODataFrame::size
constexpr int size() const
total number of samples in the digi
Definition: HODataFrame.h:27
hcaldqm::quantity::fTiming_TS200
Definition: ValueQuantity.h:22
cuy.ib
ib
Definition: cuy.py:661
LEDTask::_tokTrigger
edm::EDGetTokenT< HcalTBTriggerData > _tokTrigger
Definition: LEDTask.h:51
HcalCalibDetId::hcalSubdet
HcalSubdetector hcalSubdet() const
get the HcalSubdetector (if relevant)
Definition: HcalCalibDetId.cc:90
edm::EventSetup
Definition: EventSetup.h:58
LEDTask::_cSignalRMS_Subdet
hcaldqm::Container1D _cSignalRMS_Subdet
Definition: LEDTask.h:75
CaloSamples
Definition: CaloSamples.h:14
LEDTask::_tagTrigger
edm::InputTag _tagTrigger
Definition: LEDTask.h:46
hcaldqm::quantity::fSpigot
Definition: ElectronicsQuantity.h:23
LEDTask::_cSignalRMS_depth
hcaldqm::ContainerProf2D _cSignalRMS_depth
Definition: LEDTask.h:84
QIE11DataFrame::detid
constexpr DetId detid() const
Get the detector id.
Definition: QIE11DataFrame.h:67
HcalCalibDetId::calibFlavor
CalibDetType calibFlavor() const
get the flavor of this calibration detid
Definition: HcalCalibDetId.h:77
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
LEDTask::_cSumQ_SubdetPM
hcaldqm::Container1D _cSumQ_SubdetPM
Definition: LEDTask.h:104
LEDTask::_xTimingSum
hcaldqm::ContainerXXX< double > _xTimingSum
Definition: LEDTask.h:70
hcaldqm::utilities::aveTS
double aveTS(DIGI const &digi, double ped=0, int i=0, int j=3)
Definition: Utilities.h:114
hcaldqm::DQModule::_subsystem
std::string _subsystem
Definition: DQModule.h:49
alignCSCRings.r
r
Definition: alignCSCRings.py:93
hcaldqm::ContainerProf2D::fill
void fill(HcalDetId const &) override
Definition: ContainerProf2D.cc:228
HcalSubdetector
HcalSubdetector
Definition: HcalAssistant.h:31
HcalForward
Definition: HcalAssistant.h:36
LEDTask::_cLowSignal_CrateSlot
hcaldqm::ContainerSingle2D _cLowSignal_CrateSlot
Definition: LEDTask.h:107
hcaldqm::quantity::ElectronicsQuantity
Definition: ElectronicsQuantity.h:333
HcalDbService
Definition: HcalDbService.h:23
hcaldqm::ContainerProf1D::initialize
void initialize(std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *, int debug=0) override
Definition: ContainerProf1D.cc:22
LEDTask::_ledCalibrationChannels
std::map< HcalSubdetector, std::vector< HcalDetId > > _ledCalibrationChannels
Definition: LEDTask.h:110
LEDTask::_cTimingRMS_depth
hcaldqm::ContainerProf2D _cTimingRMS_depth
Definition: LEDTask.h:86
HcalElectronicsMap::lookup
const DetId lookup(HcalElectronicsId fId) const
lookup the logical detid associated with the given electronics id
Definition: HcalElectronicsMap.cc:70
hcaldqm::electronicsmap::fD2EHashMap
Definition: ElectronicsMap.h:25
LEDTask::_cTimingMean_FEDVME
hcaldqm::ContainerProf2D _cTimingMean_FEDVME
Definition: LEDTask.h:90
QIE10DataFrame
Definition: QIE10DataFrame.h:11
HcalEndcap
Definition: HcalAssistant.h:34
hcaldqm::quantity::fFiberuTCAFiberCh
Definition: ElectronicsQuantity.h:31
hcaldqm::quantity::ffC_generic_400000
Definition: ValueQuantity.h:58
LEDTask::_resetMonitors
void _resetMonitors(hcaldqm::UpdateFreq) override
Definition: LEDTask.cc:335
HODataFrame
Definition: HODataFrame.h:14
hcaldqm::constants::CALIBEVENTS_MIN
const int CALIBEVENTS_MIN
Definition: Constants.h:246
hcaldqm::quantity::ffC_generic_10000
Definition: ValueQuantity.h:57
QIE11DataFrame
Definition: QIE11DataFrame.h:11
hcaldqm::quantity::fFiberVMEFiberCh
Definition: ElectronicsQuantity.h:32
HcalCalibDetId::cboxChannel
int cboxChannel() const
get the calibration box channel (if relevant)
Definition: HcalCalibDetId.cc:86
hcaldqm::DQTask::_emap
const HcalElectronicsMap * _emap
Definition: DQTask.h:81
HcalOtherDetId
Definition: HcalOtherDetId.h:22
hcaldqm::ContainerSingle2D::book
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
Definition: ContainerSingle2D.cc:68
LEDTask::_cSignalMean_FEDVME
hcaldqm::ContainerProf2D _cSignalMean_FEDVME
Definition: LEDTask.h:88
hcaldqm::ContainerXXX::book
virtual void book(HcalElectronicsMap const *)
Definition: ContainerXXX.h:87
LEDTask::_LED_ADCvsBX_Subdet
hcaldqm::Container2D _LED_ADCvsBX_Subdet
Definition: LEDTask.h:111
hcaldqm::ContainerXXX::get
virtual STDTYPE & get(HcalDetId const &)
Definition: ContainerXXX.h:197
dqm::implementation::IBooker
Definition: DQMStore.h:43
LEDTask::_cTimingRMS_Subdet
hcaldqm::Container1D _cTimingRMS_Subdet
Definition: LEDTask.h:77
hcaldqm::quantity::EventNumber
Definition: ValueQuantity.h:483
LEDTask::_lowHO
double _lowHO
Definition: LEDTask.h:63
hcaldqm::DQTask
Definition: DQTask.h:33
HcalOtherDetId::subdet
HcalOtherSubdetector subdet() const
get the category
Definition: HcalOtherDetId.h:30
HcalDbRecord
Definition: HcalDbRecord.h:30
hcaldqm::ContainerSingle2D::initialize
virtual void initialize(std::string const &folder, quantity::Quantity *, quantity::Quantity *, quantity::Quantity *qz=new quantity::ValueQuantity(quantity::fN), int debug=0)
Definition: ContainerSingle2D.cc:46
hcaldqm::Container1D::initialize
virtual void initialize(std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *qy=new quantity::ValueQuantity(quantity::fN), int debug=0)
Definition: Container1D.cc:33
LEDTask::_cMissing_FEDVME
hcaldqm::Container2D _cMissing_FEDVME
Definition: LEDTask.h:99
hcaldqm::quantity::fBX_36
Definition: ValueQuantity.h:69
hcaldqm::ContainerProf1D::book
void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="") override
Definition: ContainerProf1D.cc:40
LEDTask::LEDTask
LEDTask(edm::ParameterSet const &)
Definition: LEDTask.cc:8
hcaldqm::fOnline
Definition: DQModule.h:26
HcalCalibDetId::CalibrationBox
Definition: HcalCalibDetId.h:49
DeDxTools::esConsumes
ESGetTokenH3DDVariant esConsumes(std::string const &Reccord, edm::ConsumesCollector &)
Definition: DeDxTools.cc:283
LEDTask::_cTimingMean_depth
hcaldqm::ContainerProf2D _cTimingMean_depth
Definition: LEDTask.h:85
HODataFrame::id
constexpr HcalDetId const & id() const
Definition: HODataFrame.h:23
edm::Event
Definition: Event.h:73
hcaldqm::quantity::fTiming_TS
Definition: ValueQuantity.h:21
LEDTask::_tokHO
edm::EDGetTokenT< HODigiCollection > _tokHO
Definition: LEDTask.h:49
LEDTask::_xSignalSum
hcaldqm::ContainerXXX< double > _xSignalSum
Definition: LEDTask.h:67
LEDTask::_cMissing_FEDuTCA
hcaldqm::Container2D _cMissing_FEDuTCA
Definition: LEDTask.h:100
edm::DataFrameContainer::end
const_iterator end() const
Definition: DataFrameContainer.h:152
edm::InputTag
Definition: InputTag.h:15
hcaldqm::constants::CRATE_VME_MIN
const int CRATE_VME_MIN
Definition: Constants.h:95
hcaldqm::filter::fFilter
Definition: HashFilter.h:19
hcaldqm::Container1D::book
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
Definition: Container1D.cc:592
hcaldqm::filter
Definition: HashFilter.h:18
hcaldqm::quantity::fTime_ns_250
Definition: ValueQuantity.h:55
hcaldqm::constants::EVENTTYPE_LED
const uint8_t EVENTTYPE_LED
Definition: Constants.h:294
hcaldqm::fOffline
Definition: DQModule.h:26
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37