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  _nevents = ps.getUntrackedParameter<int>("nevents", 2000);
10  // tags
12  edm::InputTag("hcalDigis"));
14  edm::InputTag("hcalDigis"));
16  edm::InputTag("hcalDigis"));
18  edm::InputTag("tbunpacker"));
20  edm::InputTag("hcalDigis"));
21  _tokQIE11 = consumes<QIE11DigiCollection>(_tagQIE11);
22  _tokHO = consumes<HODigiCollection>(_tagHO);
23  _tokQIE10 = consumes<QIE10DigiCollection>(_tagQIE10);
24  _tokTrigger = consumes<HcalTBTriggerData>(_tagTrigger);
25  _tokuMN = consumes<HcalUMNioDigi>(_taguMN);
26 
27  // constants
28  _lowHBHE = ps.getUntrackedParameter<double>("lowHBHE", 20);
29  _lowHO = ps.getUntrackedParameter<double>("lowHO", 20);
30  _lowHF = ps.getUntrackedParameter<double>("lowHF", 20);
31 
32  // LED calibration channels
33  std::vector<edm::ParameterSet> vLedCalibChannels =
34  ps.getParameter<std::vector<edm::ParameterSet>>("ledCalibrationChannels");
35  for (int i = 0; i <= 3; ++i) {
36  HcalSubdetector this_subdet = HcalEmpty;
37  switch (i) {
38  case 0:
39  this_subdet = HcalBarrel;
40  break;
41  case 1:
42  this_subdet = HcalEndcap;
43  break;
44  case 2:
45  this_subdet = HcalOuter;
46  break;
47  case 3:
48  this_subdet = HcalForward;
49  break;
50  default:
51  this_subdet = HcalEmpty;
52  break;
53  }
54  std::vector<int32_t> subdet_calib_ietas = vLedCalibChannels[i].getUntrackedParameter<std::vector<int32_t>>("ieta");
55  std::vector<int32_t> subdet_calib_iphis = vLedCalibChannels[i].getUntrackedParameter<std::vector<int32_t>>("iphi");
56  std::vector<int32_t> subdet_calib_depths =
57  vLedCalibChannels[i].getUntrackedParameter<std::vector<int32_t>>("depth");
58  for (unsigned int ichannel = 0; ichannel < subdet_calib_ietas.size(); ++ichannel) {
59  _ledCalibrationChannels[this_subdet].push_back(HcalDetId(
60  HcalOther, subdet_calib_ietas[ichannel], subdet_calib_iphis[ichannel], subdet_calib_depths[ichannel]));
61  }
62  }
63 }
64 
65 /* virtual */ void LEDTask::bookHistograms(DQMStore::IBooker& ib, edm::Run const& r, edm::EventSetup const& es) {
66  if (_ptype == fLocal)
67  if (r.runAuxiliary().run() == 1)
68  return;
69 
70  DQTask::bookHistograms(ib, r, es);
71 
73  es.get<HcalDbRecord>().get(dbService);
74  _emap = dbService->getHcalMapping();
75 
76  std::vector<uint32_t> vhashVME;
77  std::vector<uint32_t> vhashuTCA;
78  std::vector<uint32_t> vhashC36;
79  vhashVME.push_back(
81  vhashuTCA.push_back(HcalElectronicsId(CRATE_uTCA_MIN, SLOT_uTCA_MIN, FIBER_uTCA_MIN1, FIBERCH_MIN, false).rawId());
84 
85  // INITIALIZE
87  "SignalMean",
91  0);
93  "SignalRMS",
97  0);
99  "TimingMean",
103  0);
105  "TimingRMS",
109  0);
110 
111  if (_ptype == fLocal) { // hidefed2crate
113  "SignalMean",
118  0);
120  "SignalMean",
125  0);
127  "SignalRMS",
132  0);
134  "SignalRMS",
139  0);
141  "TimingMean",
146  0);
148  "TimingMean",
153  0);
155  "TimingRMS",
160  0);
162  "TimingRMS",
167  0);
168 
170  "Shape",
174  0);
175  }
176 
178  "SignalMean",
183  0);
185  "SignalRMS",
190  0);
192  "TimingMean",
197  0);
199  "TimingRMS",
204  0);
205 
207  "Missing",
212  0);
213  if (_ptype != fOffline) { // hidefed2crate
215  "Missing",
220  0);
222  "Missing",
227  0);
228  }
229 
230  // Plots for LED in global
231  if (_ptype == fOnline || _ptype == fLocal) {
237  }
238  if (_ptype == fOnline) {
240  "LowSignal",
244  0);
246  "SumQ",
250  0);
252  "TDCTime",
256  0);
258  "TDCTime",
263  0);
265  "LED_ADCvsBX",
270  0);
271  } else if (_ptype == fLocal) {
273  "LED_ADCvsEvn",
278  0);
279  }
280 
281  // initialize compact containers
287 
288  // BOOK
293 
298 
300  if (_ptype == fLocal) { // hidefed2crate
312  }
313  if (_ptype == fOnline || _ptype == fLocal) {
315  }
316  if (_ptype == fOnline) {
321  }
322 
323  if (_ptype == fOnline) {
325  } else if (_ptype == fLocal) {
327  }
328 
334 
336 }
337 
338 /* virtual */ void LEDTask::_resetMonitors(hcaldqm::UpdateFreq uf) { DQTask::_resetMonitors(uf); }
339 
340 /* virtual */ void LEDTask::_dump() {
349 
350  if (_ptype == fLocal) { // hidefed2crate
359  }
360 
361  std::vector<HcalGenericDetId> dids = _emap->allPrecisionId();
362  for (std::vector<HcalGenericDetId>::const_iterator it = dids.begin(); it != dids.end(); ++it) {
363  if (!it->isHcalDetId())
364  continue;
365  HcalDetId did = HcalDetId(it->rawId());
367  int n = _xEntries.get(did);
368  double msig = _xSignalSum.get(did) / n;
369  double mtim = _xTimingSum.get(did) / n;
370  double rsig = sqrt(_xSignalSum2.get(did) / n - msig * msig);
371  double rtim = sqrt(_xTimingSum2.get(did) / n - mtim * mtim);
372 
373  // channels missing or low signal
374  if (n == 0) {
375  _cMissing_depth.fill(did);
376  if (_ptype == fLocal) { // hidefed2crate
377  if (eid.isVMEid())
379  else
381  }
382  continue;
383  }
384  _cSignalMean_Subdet.fill(did, msig);
385  _cSignalMean_depth.fill(did, msig);
386  _cSignalRMS_Subdet.fill(did, rsig);
387  _cSignalRMS_depth.fill(did, rsig);
388  _cTimingMean_Subdet.fill(did, mtim);
389  _cTimingMean_depth.fill(did, mtim);
390  _cTimingRMS_Subdet.fill(did, rtim);
391  _cTimingRMS_depth.fill(did, rtim);
392  if (_ptype == fLocal) { // hidefed2crate
393  if (eid.isVMEid()) {
395  _cSignalRMS_FEDVME.fill(eid, rsig);
397  _cTimingRMS_FEDVME.fill(eid, rtim);
398  } else {
403  }
404  }
405  }
406 }
407 
408 /* virtual */ void LEDTask::_process(edm::Event const& e, edm::EventSetup const& es) {
412 
413  if (!e.getByToken(_tokHO, c_ho))
414  _logger.dqmthrow("Collection HODigiCollection isn't available "
415  + _tagHO.label() + " " + _tagHO.instance());
416  if (!e.getByToken(_tokQIE10, c_QIE10))
417  _logger.dqmthrow("Collection QIE10DigiCollection isn't available "
418  + _tagQIE10.label() + " " + _tagQIE10.instance());
419  if (!e.getByToken(_tokQIE11, c_QIE11))
420  _logger.dqmthrow("Collection QIE11DigiCollection isn't available "
421  + _tagQIE11.label() + " " + _tagQIE11.instance());
422 
423  // int currentEvent = e.eventAuxiliary().id().event();
424 
425  for (QIE11DigiCollection::const_iterator it = c_QIE11->begin(); it != c_QIE11->end(); ++it) {
426  const QIE11DataFrame digi = static_cast<const QIE11DataFrame>(*it);
427  HcalDetId const& did = digi.detid();
428  if ((did.subdet() != HcalBarrel) && (did.subdet() != HcalEndcap)) {
429  // LED monitoring from calibration channels
430  if (did.subdet() == HcalOther) {
431  HcalOtherDetId hodid(digi.detid());
432  if (hodid.subdet() == HcalCalibration) {
435  for (int i = 0; i < digi.samples(); i++) {
436  if (_ptype == fOnline) {
437  _LED_ADCvsBX_Subdet.fill(HcalDetId(HcalEndcap, 16, 1, 1), e.bunchCrossing(), digi[i].adc());
438  } else if (_ptype == fLocal) {
440  HcalDetId(HcalEndcap, 16, 1, 1), e.eventAuxiliary().id().event(), digi[i].adc());
441  }
442  }
445  for (int i = 0; i < digi.samples(); i++) {
446  if (_ptype == fOnline) {
447  _LED_ADCvsBX_Subdet.fill(HcalDetId(HcalBarrel, 1, 1, 1), e.bunchCrossing(), digi[i].adc());
448  } else if (_ptype == fLocal) {
450  HcalDetId(HcalBarrel, 1, 1, 1), e.eventAuxiliary().id().event(), digi[i].adc());
451  }
452  }
453  }
454  }
455  }
456  continue;
457  }
458  uint32_t rawid = _ehashmap.lookup(did);
459  if (!rawid) {
460  std::string unknown_id_string = "Detid " + std::to_string(int(did)) + ", ieta " + std::to_string(did.ieta());
461  unknown_id_string += ", iphi " + std::to_string(did.iphi()) + ", depth " + std::to_string(did.depth());
462  unknown_id_string += ", is not in emap. Skipping.";
463  _logger.warn(unknown_id_string);
464  continue;
465  }
466  HcalElectronicsId const& eid(rawid);
467 
468  CaloSamples digi_fC = hcaldqm::utilities::loadADC2fCDB<QIE11DataFrame>(_dbService, did, digi);
469  //double sumQ = hcaldqm::utilities::sumQ_v10<QIE11DataFrame>(digi, 2.5, 0, digi.samples()-1);
470  double sumQ = hcaldqm::utilities::sumQDB<QIE11DataFrame>(_dbService, digi_fC, did, digi, 0, digi.samples() - 1);
471  if (sumQ >= _lowHBHE) {
472  //double aveTS = hcaldqm::utilities::aveTS_v10<QIE11DataFrame>(digi, 2.5, 0,digi.samples()-1);
473  double aveTS = hcaldqm::utilities::aveTSDB<QIE11DataFrame>(_dbService, digi_fC, did, digi, 0, digi.size() - 1);
474 
475  _xSignalSum.get(did) += sumQ;
476  _xSignalSum2.get(did) += sumQ * sumQ;
477  _xTimingSum.get(did) += aveTS;
478  _xTimingSum2.get(did) += aveTS * aveTS;
479  _xEntries.get(did)++;
480 
481  if (_ptype == fLocal) { // hidefed2crate
482  for (int i = 0; i < digi.samples(); i++) {
483  //_cShapeCut_FEDSlot.fill(eid, i, digi.sample(i).nominal_fC()-2.5);
485  eid, i, hcaldqm::utilities::adc2fCDBMinusPedestal<QIE11DataFrame>(_dbService, digi_fC, did, digi, i));
486  }
487  }
488  if (_ptype == fOnline || _ptype == fLocal) {
489  for (int iTS = 0; iTS < digi.samples(); ++iTS) {
490  _cADCvsTS_SubdetPM.fill(did, iTS, digi[iTS].adc());
491  }
492  }
493  if (_ptype == fOnline) {
494  for (int iTS = 0; iTS < digi.samples(); ++iTS) {
495  if (digi[iTS].tdc() < 50) {
496  double time = iTS * 25. + (digi[iTS].tdc() / 2.);
497  _cTDCTime_SubdetPM.fill(did, time);
498  _cTDCTime_depth.fill(did, time);
499  }
500  }
501  _cSumQ_SubdetPM.fill(did, sumQ);
502 
503  // Low signal in SOI
504  short soi = -1;
505  for (int i = 0; i < digi.samples(); i++) {
506  if (digi[i].soi()) {
507  soi = i;
508  break;
509  }
510  }
511  if (digi[soi].adc() < 30) {
513  }
514  }
515  }
516  }
517  for (HODigiCollection::const_iterator it = c_ho->begin(); it != c_ho->end(); ++it) {
518  const HODataFrame digi = (const HODataFrame)(*it);
519  HcalDetId did = digi.id();
520  HcalElectronicsId eid = digi.elecId();
521  //double sumQ = hcaldqm::utilities::sumQ<HODataFrame>(digi, 8.5, 0, digi.size()-1);
522  CaloSamples digi_fC = hcaldqm::utilities::loadADC2fCDB<HODataFrame>(_dbService, did, digi);
523  double sumQ = hcaldqm::utilities::sumQDB<HODataFrame>(_dbService, digi_fC, did, digi, 0, digi.size() - 1);
524  if (sumQ >= _lowHO) {
525  //double aveTS = hcaldqm::utilities::aveTS<HODataFrame>(digi, 8.5, 0, digi.size()-1);
526  double aveTS = hcaldqm::utilities::aveTSDB<HODataFrame>(_dbService, digi_fC, did, digi, 0, digi.size() - 1);
527 
528  _xSignalSum.get(did) += sumQ;
529  _xSignalSum2.get(did) += sumQ * sumQ;
530  _xTimingSum.get(did) += aveTS;
531  _xTimingSum2.get(did) += aveTS * aveTS;
532  _xEntries.get(did)++;
533 
534  if (_ptype == fLocal) { // hidefed2crate
535  for (int i = 0; i < digi.size(); i++) {
536  //_cShapeCut_FEDSlot.fill(eid, i, digi.sample(i).nominal_fC()-8.5);
538  eid, i, hcaldqm::utilities::adc2fCDBMinusPedestal<HODataFrame>(_dbService, digi_fC, did, digi, i));
539  }
540  }
541  if (_ptype == fOnline || _ptype == fLocal) {
542  for (int iTS = 0; iTS < digi.size(); ++iTS) {
543  _cADCvsTS_SubdetPM.fill(did, iTS, digi.sample(iTS).adc());
544  }
545  }
546  if (_ptype == fOnline) {
547  _cSumQ_SubdetPM.fill(did, sumQ);
548  }
549  }
550  }
551 
552  for (QIE10DigiCollection::const_iterator it = c_QIE10->begin(); it != c_QIE10->end(); ++it) {
553  const QIE10DataFrame digi = static_cast<const QIE10DataFrame>(*it);
554  HcalDetId did = digi.detid();
555  if (did.subdet() != HcalForward) {
556  // LED monitoring from calibration channels
557  if (did.subdet() == HcalOther) {
558  HcalOtherDetId hodid(digi.detid());
559  if (hodid.subdet() == HcalCalibration) {
562  did) != _ledCalibrationChannels[HcalForward].end()) {
563  for (int i = 0; i < digi.samples(); i++) {
564  if (_ptype == fOnline) {
565  _LED_ADCvsBX_Subdet.fill(HcalDetId(HcalForward, 29, 1, 1), e.bunchCrossing(), digi[i].adc());
566  } else if (_ptype == fLocal) {
568  HcalDetId(HcalForward, 29, 1, 1), e.eventAuxiliary().id().event(), digi[i].adc());
569  }
570  }
571  }
572  }
573  }
574  continue;
575  }
577  //double sumQ = hcaldqm::utilities::sumQ_v10<QIE10DataFrame>(digi, 2.5, 0, digi.samples()-1);
578  CaloSamples digi_fC = hcaldqm::utilities::loadADC2fCDB<QIE10DataFrame>(_dbService, did, digi);
579  double sumQ = hcaldqm::utilities::sumQDB<QIE10DataFrame>(_dbService, digi_fC, did, digi, 0, digi.samples() - 1);
580  if (sumQ >= _lowHF) {
581  //double aveTS = hcaldqm::utilities::aveTS_v10<QIE10DataFrame>(digi, 2.5, 0, digi.samples()-1);
582  double aveTS = hcaldqm::utilities::aveTSDB<QIE10DataFrame>(_dbService, digi_fC, did, digi, 0, digi.size() - 1);
583 
584  _xSignalSum.get(did) += sumQ;
585  _xSignalSum2.get(did) += sumQ * sumQ;
586  _xTimingSum.get(did) += aveTS;
587  _xTimingSum2.get(did) += aveTS * aveTS;
588  _xEntries.get(did)++;
589 
590  if (_ptype == fLocal) { // hidefed2crate
591  for (int i = 0; i < digi.samples(); ++i) {
592  // Note: this used to be digi.sample(i).nominal_fC() - 2.5, but this branch doesn't exist in QIE10DataFrame.
593  // Instead, use lookup table.
594  //_cShapeCut_FEDSlot.fill(eid, i, constants::adc2fC[digi[i].adc()]);
596  eid, i, hcaldqm::utilities::adc2fCDBMinusPedestal<QIE10DataFrame>(_dbService, digi_fC, did, digi, i));
597  }
598  }
599  if (_ptype == fOnline || _ptype == fLocal) {
600  for (int iTS = 0; iTS < digi.samples(); ++iTS) {
601  _cADCvsTS_SubdetPM.fill(did, iTS, digi[iTS].adc());
602  }
603  }
604  if (_ptype == fOnline) {
605  for (int iTS = 0; iTS < digi.samples(); ++iTS) {
606  if (digi[iTS].le_tdc() < 50) {
607  double time = iTS * 25. + (digi[iTS].le_tdc() / 2.);
608  _cTDCTime_SubdetPM.fill(did, time);
609  _cTDCTime_depth.fill(did, time);
610  }
611  }
612  _cSumQ_SubdetPM.fill(did, sumQ);
613  }
614  }
615  }
616 
618  this->_dump();
619 }
620 
621 /* virtual */ bool LEDTask::_isApplicable(edm::Event const& e) {
622  if (_ptype != fOnline) {
623  // local
625  if (!e.getByToken(_tokTrigger, ctrigger))
626  _logger.dqmthrow("Collection HcalTBTriggerData isn't available " + _tagTrigger.label() + " " +
628  return ctrigger->wasLEDTrigger();
629  } else {
630  // fOnline mode
632  if (!e.getByToken(_tokuMN, cumn)) {
633  return false;
634  }
635 
636  return (cumn->eventType() == constants::EVENTTYPE_LED);
637  }
638 
639  return false;
640 }
641 
int samples() const
total number of samples in the digi
void initialize(std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *, int debug=0) override
DetId detid() const
Get the detector id.
T getParameter(std::string const &) const
EventNumber_t event() const
Definition: EventID.h:41
T getUntrackedParameter(std::string const &, T const &) const
double aveTS(DIGI const &digi, double ped=0, int i=0, int j=3)
Definition: Utilities.h:114
hcaldqm::Container2D _cMissing_FEDuTCA
Definition: LEDTask.h:99
hcaldqm::Container2D _cMissing_FEDVME
Definition: LEDTask.h:98
LEDTask(edm::ParameterSet const &)
Definition: LEDTask.cc:8
hcaldqm::ContainerProf2D _cSignalMean_depth
Definition: LEDTask.h:82
hcaldqm::ContainerProf2D _cTimingMean_FEDuTCA
Definition: LEDTask.h:90
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
EventAuxiliary const & eventAuxiliary() const override
Definition: Event.h:92
int const CRATE_VME_MIN
Definition: Constants.h:91
double _lowHBHE
Definition: LEDTask.h:61
edm::InputTag _taguMN
Definition: LEDTask.h:47
void warn(std::string const &msg) const
Definition: Logger.h:13
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
hcaldqm::ContainerProf2D _cTimingMean_depth
Definition: LEDTask.h:84
HcalSubdetector subdet() const
get the subdetector
Definition: HcalDetId.h:146
void fill(HcalDetId const &) override
hcaldqm::ContainerProf2D _cSignalMean_FEDVME
Definition: LEDTask.h:87
hcaldqm::Container2D _cMissing_depth
Definition: LEDTask.h:97
bool wasLEDTrigger() const
returns true if this was a LED trigger
edm::EDGetTokenT< HcalTBTriggerData > _tokTrigger
Definition: LEDTask.h:51
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:517
void initialize(HcalElectronicsMap const *, ElectronicsMapType etype=fHcalElectronicsMap)
double _lowHF
Definition: LEDTask.h:63
hcaldqm::ContainerProf2D _cTimingMean_FEDVME
Definition: LEDTask.h:89
UpdateFreq
Definition: DQTask.h:16
HcalDetId const & id() const
Definition: HODataFrame.h:27
std::vector< T >::const_iterator const_iterator
int bunchCrossing() const
Definition: EventBase.h:64
virtual void initialize(std::string const &folder, quantity::Quantity *, quantity::Quantity *, quantity::Quantity *qz=new quantity::ValueQuantity(quantity::fN), int debug=0)
int const SPIGOT_MIN
Definition: Constants.h:116
void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="") override
edm::InputTag _tagHO
Definition: LEDTask.h:44
const_iterator begin() const
hcaldqm::ContainerProf2D _cSignalRMS_FEDVME
Definition: LEDTask.h:91
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:20
int const FIBER_VME_MIN
Definition: Constants.h:121
hcaldqm::filter::HashFilter _filter_uTCA
Definition: LEDTask.h:56
edm::InputTag _tagQIE11
Definition: LEDTask.h:43
edm::EDGetTokenT< QIE11DigiCollection > _tokQIE11
Definition: LEDTask.h:48
hcaldqm::ContainerXXX< int > _xEntries
Definition: LEDTask.h:68
int _nevents
Definition: LEDTask.h:60
int const FIBERCH_MIN
Definition: Constants.h:130
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
edm::EDGetTokenT< QIE10DigiCollection > _tokQIE10
Definition: LEDTask.h:50
hcaldqm::ContainerXXX< double > _xTimingSum
Definition: LEDTask.h:69
hcaldqm::ContainerProf2D _cTDCTime_depth
Definition: LEDTask.h:105
edm::EDGetTokenT< HcalUMNioDigi > _tokuMN
Definition: LEDTask.h:52
hcaldqm::ContainerProf2D _cSignalRMS_FEDuTCA
Definition: LEDTask.h:92
int depth() const
get the tower depth
Definition: HcalDetId.h:166
ProcessingType _ptype
Definition: DQModule.h:43
virtual void fill(uint32_t)
Definition: Container1D.cc:73
virtual void reset()
Definition: Container1D.cc:60
HcalElectronicsId const & elecId() const
Definition: HODataFrame.h:28
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
uint8_t const EVENTTYPE_LED
Definition: Constants.h:289
double _lowHO
Definition: LEDTask.h:62
void dqmthrow(std::string const &msg) const
Definition: Logger.h:12
T sqrt(T t)
Definition: SSEVec.h:18
int ieta() const
get the cell ieta
Definition: HcalDetId.h:159
int size() const
total number of samples in the digi
Definition: HODataFrame.h:31
HcalSubdetector
Definition: HcalAssistant.h:31
uint8_t eventType() const
int const FIBER_uTCA_MIN1
Definition: Constants.h:124
hcaldqm::ContainerSingle2D _cLowSignal_CrateSlot
Definition: LEDTask.h:106
DetId detid() const
Get the detector id.
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: LEDTask.cc:65
std::vector< HcalGenericDetId > allPrecisionId() const
Logger _logger
Definition: DQModule.h:54
#define end
Definition: vmac.h:39
constexpr int adc(sample_type sample)
get the ADC sample (12 bits)
RunAuxiliary const & runAuxiliary() const override
Definition: Run.h:61
edm::InputTag _tagTrigger
Definition: LEDTask.h:46
std::string _name
Definition: DQModule.h:41
HcalElectronicsMap const * _emap
Definition: DQTask.h:59
hcaldqm::ContainerProf2D _cSignalMean_FEDuTCA
Definition: LEDTask.h:88
hcaldqm::ContainerProf2D _cTimingRMS_depth
Definition: LEDTask.h:85
hcaldqm::Container1D _cSignalRMS_Subdet
Definition: LEDTask.h:74
hcaldqm::filter::HashFilter _filter_VME
Definition: LEDTask.h:57
int const CRATE_uTCA_MIN
Definition: Constants.h:96
hcaldqm::Container2D _LED_ADCvsEvn_Subdet
Definition: LEDTask.h:111
const_iterator end() const
int iphi() const
get the cell iphi
Definition: HcalDetId.h:161
int const CALIBEVENTS_MIN
Definition: Constants.h:241
hcaldqm::ContainerXXX< double > _xTimingSum2
Definition: LEDTask.h:70
hcaldqm::Container1D _cTDCTime_SubdetPM
Definition: LEDTask.h:104
hcaldqm::ContainerProf2D _cTimingRMS_FEDVME
Definition: LEDTask.h:93
hcaldqm::ContainerProf2D _cTimingRMS_FEDuTCA
Definition: LEDTask.h:94
edm::EDGetTokenT< HODigiCollection > _tokHO
Definition: LEDTask.h:49
virtual void book(HcalElectronicsMap const *)
Definition: ContainerXXX.h:87
hcaldqm::ContainerXXX< double > _xSignalSum
Definition: LEDTask.h:66
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
Definition: Container1D.cc:592
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
void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="") override
example_stream void bookHistograms(DQMStore::IBooker &,@example_stream edm::Run const &,@example_stream edm::EventSetup const &) override
void _process(edm::Event const &, edm::EventSetup const &) override
Definition: LEDTask.cc:408
hcaldqm::Container1D _cTimingMean_Subdet
Definition: LEDTask.h:75
std::map< HcalSubdetector, std::vector< HcalDetId > > _ledCalibrationChannels
Definition: LEDTask.h:109
void initialize(std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *, quantity::Quantity *qz=new quantity::ValueQuantity(quantity::fEnergy), int debug=0) override
void _resetMonitors(hcaldqm::UpdateFreq) override
Definition: LEDTask.cc:338
std::string const & label() const
Definition: InputTag.h:36
const_iterator end() const
hcaldqm::ContainerProf2D _cSignalRMS_depth
Definition: LEDTask.h:83
EventID const & id() const
bool _isApplicable(edm::Event const &) override
Definition: LEDTask.cc:621
virtual STDTYPE & get(HcalDetId const &)
Definition: ContainerXXX.h:197
#define begin
Definition: vmac.h:32
edm::ESHandle< HcalDbService > _dbService
Definition: DQTask.h:58
hcaldqm::Container1D _cTimingRMS_Subdet
Definition: LEDTask.h:76
T get() const
Definition: EventSetup.h:71
void fill(HcalDetId const &) override
Definition: Container2D.cc:52
virtual void _dump()
Definition: LEDTask.cc:340
const HcalElectronicsMap * getHcalMapping() const
virtual void initialize(FilterType ftype, hashfunctions::HashType htype, std::vector< uint32_t > const &)
Definition: HashFilter.cc:17
std::string _subsystem
Definition: DQModule.h:48
hcaldqm::ContainerXXX< double > _xSignalSum2
Definition: LEDTask.h:67
hcaldqm::electronicsmap::ElectronicsMap _ehashmap
Definition: LEDTask.h:55
hcaldqm::Container2D _LED_ADCvsBX_Subdet
Definition: LEDTask.h:110
hcaldqm::Container1D _cSumQ_SubdetPM
Definition: LEDTask.h:103
hcaldqm::ContainerProf1D _cShapeCut_FEDSlot
Definition: LEDTask.h:79
edm::InputTag _tagQIE10
Definition: LEDTask.h:45
virtual void fill(int, int)
virtual void initialize(hashfunctions::HashType, int debug=0)
Definition: ContainerXXX.h:81
void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="") override
Definition: Container2D.cc:558
int samples() const
total number of samples in the digi
hcaldqm::Container2D _cADCvsTS_SubdetPM
Definition: LEDTask.h:102
Readout chain identification for Hcal.
std::string const & instance() const
Definition: InputTag.h:37
RunNumber_t run() const
Definition: RunAuxiliary.h:41
int const SLOT_uTCA_MIN
Definition: Constants.h:103
const_iterator begin() const
Definition: Run.h:45
ib
Definition: cuy.py:662
double sumQ(DIGI const &digi, double ped, int i=0, int j=3)
Definition: Utilities.h:126
hcaldqm::Container1D _cSignalMean_Subdet
Definition: LEDTask.h:73