test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PedestalTask.cc
Go to the documentation of this file.
1 
3 
4 using namespace hcaldqm;
5 using namespace hcaldqm::constants;
7  DQTask(ps)
8 {
9  // tags
11  edm::InputTag("hcalDigis"));
13  edm::InputTag("hcalDigis"));
15  edm::InputTag("hcalDigis"));
17  edm::InputTag("tbunpacker"));
19  edm::InputTag("hcalDigis"));
20  _tokHBHE = consumes<HBHEDigiCollection>(_tagHBHE);
21  _tokHO = consumes<HODigiCollection>(_tagHO);
22  _tokHF = consumes<HFDigiCollection>(_tagHF);
23  _tokTrigger = consumes<HcalTBTriggerData>(_tagTrigger);
24  _tokuMN = consumes<HcalUMNioDigi>(_taguMN);
25 
26  _vflags.resize(nPedestalFlag);
30 
31  _thresh_mean = ps.getUntrackedParameter<double>("thresh_mean",
32  0.25);
33  _thresh_rms = ps.getUntrackedParameter<double>("thresh_mean",
34  0.25);
35  _thresh_badm = ps.getUntrackedParameter<double>("thresh_badm", 0.1);
36  _thresh_badr = ps.getUntrackedParameter<double>("thresh_badr", 0.1);
38  "thresh_missing_high", 0.2);
40  "thresh_missing_low", 0.05);
41 }
42 
44  edm::Run const& r, edm::EventSetup const& es)
45 {
46  if (_ptype==fLocal)
47  if (r.runAuxiliary().run()==1)
48  return;
49  DQTask::bookHistograms(ib, r, es);
50 
52  es.get<HcalDbRecord>().get(dbs);
53  _emap = dbs->getHcalMapping();
54  std::vector<int> vFEDs = hcaldqm::utilities::getFEDList(_emap);
55  std::vector<int> vFEDsVME = hcaldqm::utilities::getFEDVMEList(_emap);
56  std::vector<int> vFEDsuTCA = hcaldqm::utilities::getFEDuTCAList(_emap);
57  std::vector<uint32_t> vhashVME;
58  std::vector<uint32_t> vhashuTCA;
59  std::vector<uint32_t> vhashC36;
60  vhashVME.push_back(HcalElectronicsId(constants::FIBERCH_MIN,
62  vhashuTCA.push_back(HcalElectronicsId(CRATE_uTCA_MIN, SLOT_uTCA_MIN,
63  FIBER_uTCA_MIN1, FIBERCH_MIN, false).rawId());
64  vhashC36.push_back(HcalElectronicsId(36, SLOT_uTCA_MIN,
65  FIBER_uTCA_MIN1, FIBERCH_MIN, false).rawId());
67  vhashVME);
69  vhashuTCA);
71  vhashC36);
72 
73  for (std::vector<int>::const_iterator it=vFEDsVME.begin();
74  it!=vFEDsVME.end(); ++it)
76  FIBER_VME_MIN, SPIGOT_MIN, (*it)-FED_VME_MIN).rawId());
77  for (std::vector<int>::const_iterator it=vFEDsuTCA.begin();
78  it!=vFEDsuTCA.end(); ++it)
79  _vhashFEDs.push_back(HcalElectronicsId(
81  FIBERCH_MIN, false).rawId());
82 
83  // Containers XXX
90 
93 
98 
99  // Containers
130 
161 
192 
223 
224  _cMissingvsLS_Subdet.initialize(_name, "MissingvsLS",
228  _cOccupancyvsLS_Subdet.initialize(_name, "OccupancyvsLS",
232  _cOccupancyEAvsLS_Subdet.initialize(_name, "OccupancyEAvsLS",
236  _cNBadMeanvsLS_Subdet.initialize(_name, "NBadMeanvsLS",
240  _cNBadRMSvsLS_Subdet.initialize(_name, "NBadRMSvsLS",
244 
281 
318 
322 
323  _cSummaryvsLS_FED.initialize(_name, "SummaryvsLS",
328  _cSummaryvsLS.initialize(_name, "SummaryvsLS",
332 
333  // book plots
346 
358 
373 
388 
396 
397  // book compact containers
404 
407 
408  _xNChs.book(_emap);
412 
414 
415  // load conditions pedestals
416  std::vector<HcalGenericDetId> dids = _emap->allPrecisionId();
417  for (std::vector<HcalGenericDetId>::const_iterator it=dids.begin();
418  it!=dids.end(); ++it)
419  {
420  // skip if calib or whatever
421  if (!it->isHcalDetId())
422  continue;
423  // skip Crate 36
425  continue;
426  HcalDetId did = HcalDetId(it->rawId());
427 
428  HcalPedestal const* peds = dbs->getPedestal(did);
429  float const *means = peds->getValues();
430  float const *rmss = peds->getWidths();
431  double msum=0; double rsum=0;
432  for (uint32_t i=0; i<4; i++)
433  {msum+=means[i]; rsum+=rmss[i];}
434  msum/=4; rsum/=4;
435  _xPedRefMean.set(did, msum);
436  _xPedRefRMS.set(did, rsum);
437  }
438 }
439 
441 {
442  DQTask::_resetMonitors(uf);
443 
444  switch(uf)
445  {
446  case hcaldqm::f50LS:
448  break;
449  default:
450  break;
451  }
452 }
453 
454 /* virtual */ void PedestalTask::_dump()
455 {
456  // reset what's needed
457 
458  // Mean/RMS actual values
467 
476 
477 
478  // DB Conditions Comparison
483 
488 
493 
498 
499  // missing channels
503 
507 
508  // Missing or Bad
515 
522 
523  // reset some XXX containers
524  _xNChs.reset();
525  _xNMsn1LS.reset();
527 
528  // - ITERATE OVER ALL TEH CHANNELS
529  // - FIND THE ONES THAT ARE MISSING
530  // - FIND THE ONES WITH BAD PEDESTAL MEANs
531  // - FIND THE ONES WITH BAD PEDESTAL RMSs
532  std::vector<HcalGenericDetId> dids = _emap->allPrecisionId();
533  for (std::vector<HcalGenericDetId>::const_iterator it=dids.begin();
534  it!=dids.end(); ++it)
535  {
536  if (!it->isHcalDetId())
537  continue;
539  if (_filter_C36.filter(eid))
540  continue;
541 
542  // filter out channels with bad quality
543  if (_xQuality.exists(HcalDetId(*it)))
544  {
545  HcalChannelStatus cs(it->rawId(), _xQuality.get(HcalDetId(*it)));
546  if (
549  continue;
550  }
551 
552  HcalDetId did = HcalDetId(it->rawId());
553  double sum1LS = _xPedSum1LS.get(did);
554  double refm = _xPedRefMean.get(did);
555  double sum21LS = _xPedSum21LS.get(did);
556  double refr = _xPedRefRMS.get(did);
557  double n1LS = _xPedEntries1LS.get(did);
558 
559  double sumTotal = _xPedSumTotal.get(did);
560  double sum2Total = _xPedSum2Total.get(did);
561  double nTotal = _xPedEntriesTotal.get(did);
562 
563  _xNChs.get(eid)++;
564  // IF A CHANNEL IS MISSING FOR THIS LS
565  if (n1LS==0)
566  {
569  eid.isVMEid()?_cMissing1LS_FEDVME.fill(eid):
571  _xNMsn1LS.get(eid)++;
572  // ALSO CHECK
573  // IF A CHANNEL HAS BEEN MISSING FOR ALL LSs SO FAR
574  if (nTotal==0)
575  {
577  eid.isVMEid()?_cMissingTotal_FEDVME.fill(eid):
579  }
580  continue;
581  }
582 
583  // if not missing, fill the occupancy...
585 
586  // compute the means and diffs for this LS
587  sum1LS/=n1LS; double rms1LS = sqrt(sum21LS/n1LS-sum1LS*sum1LS);
588  double diffm1LS = sum1LS-refm;
589  double diffr1LS = rms1LS - refr;
590 
591  // compute the means and diffs for the whole Run
592  sumTotal/=nTotal;
593  double rmsTotal = sqrt(sum2Total/nTotal-sumTotal*sumTotal);
594  double diffmTotal = sumTotal-refm;
595  double diffrTotal = rmsTotal - refr;
596 
597  // FILL ACTUAL MEANs AND RMSs FOR THIS LS
598  _cMean1LS_Subdet.fill(did, sum1LS);
599  _cMean1LS_depth.fill(did, sum1LS);
600  _cRMS1LS_Subdet.fill(did, rms1LS);
601  _cRMS1LS_depth.fill(did, rms1LS);
602 
603  // FILL THE DIFFERENCES FOR THIS LS
604  _cMeanDBRef1LS_Subdet.fill(did, diffm1LS);
605  _cMeanDBRef1LS_depth.fill(did, diffm1LS);
606  _cRMSDBRef1LS_Subdet.fill(did, diffr1LS);
607  _cRMSDBRef1LS_depth.fill(did, diffr1LS);
608 
609  // FILL ACTUAL MEANs AND RMSs FOR THE WHOLE RUN
610  _cMeanTotal_Subdet.fill(did, sumTotal);
611  _cMeanTotal_depth.fill(did, sumTotal);
612  _cRMSTotal_Subdet.fill(did, rmsTotal);
613  _cRMSTotal_depth.fill(did, rmsTotal);
614 
615  // FILL THE DIFFERENCES FOR THE WHOLE RUN
616  _cMeanDBRefTotal_Subdet.fill(did, diffmTotal);
617  _cMeanDBRefTotal_depth.fill(did, diffmTotal);
618  _cRMSDBRefTotal_Subdet.fill(did, diffrTotal);
619  _cRMSDBRefTotal_depth.fill(did, diffrTotal);
620 
621  // FOR THIS LS
622  if (eid.isVMEid())
623  {
624  _cMean1LS_FEDVME.fill(eid, sum1LS);
625  _cRMS1LS_FEDVME.fill(eid, rms1LS);
626  _cMeanDBRef1LS_FEDVME.fill(eid, diffm1LS);
627  _cRMSDBRef1LS_FEDVME.fill(eid, diffr1LS);
628  }
629  else
630  {
631  _cMean1LS_FEDuTCA.fill(eid, sum1LS);
632  _cRMS1LS_FEDuTCA.fill(eid, rms1LS);
633  _cMeanDBRef1LS_FEDuTCA.fill(eid, diffm1LS);
634  _cRMSDBRef1LS_FEDuTCA.fill(eid, diffr1LS);
635  }
636 
637  // FOR THE WHOLE RUN
638  if (eid.isVMEid())
639  {
640  _cMeanTotal_FEDVME.fill(eid, sumTotal);
641  _cRMSTotal_FEDVME.fill(eid, rmsTotal);
642  _cMeanDBRefTotal_FEDVME.fill(eid, diffmTotal);
643  _cRMSDBRefTotal_FEDVME.fill(eid, diffrTotal);
644  }
645  else
646  {
647  _cMeanTotal_FEDuTCA.fill(eid, sumTotal);
648  _cRMSTotal_FEDuTCA.fill(eid, rmsTotal);
649  _cMeanDBRefTotal_FEDuTCA.fill(eid, diffmTotal);
650  _cRMSDBRefTotal_FEDuTCA.fill(eid, diffrTotal);
651  }
652 
653  // FOR THE CURRENT LS COMPARE MEANS AND RMSS
654  if (fabs(diffm1LS)>_thresh_mean)
655  {
658  if (eid.isVMEid())
660  else
662  _xNBadMean1LS.get(eid)++;
663  }
664  if (fabs(diffr1LS)>_thresh_rms)
665  {
666  _cRMSBad1LS_depth.fill(did);
668  if (eid.isVMEid())
670  else
672  _xNBadRMS1LS.get(eid)++;
673  }
674 
675  // FOR THIS RUN
676  if (fabs(diffmTotal)>_thresh_mean)
677  {
679  if (eid.isVMEid())
681  else
683  }
684  if (fabs(diffrTotal)>_thresh_rms)
685  {
687  if (eid.isVMEid())
689  else
691  }
692 
693  }
694 
695  // SET THE FLAGS FOR THIS LS
696  for (std::vector<uint32_t>::const_iterator it=_vhashFEDs.begin();
697  it!=_vhashFEDs.end(); ++it)
698  {
699  hcaldqm::flag::Flag fSum("PED");
701 
702  std::vector<uint32_t>::const_iterator jt=
703  std::find(_vcdaqEids.begin(), _vcdaqEids.end(), (*it));
704  if (jt==_vcdaqEids.end())
705  {
706  // not @cDAQ
707  for (uint32_t iflag=0; iflag<_vflags.size(); iflag++)
708  _cSummaryvsLS_FED.setBinContent(eid, _currentLS, int(iflag),
709  int(hcaldqm::flag::fNCDAQ));
711  continue;
712  }
713 
714  // @cDAQ
717  {
718  double frmissing = double(_xNMsn1LS.get(eid))/
719  double(_xNChs.get(eid));
720  double frbadm = _xNBadMean1LS.get(eid)/_xNChs.get(eid);
721  double frbadr = _xNBadRMS1LS.get(eid)/_xNChs.get(eid);
722 
723  if (frmissing>=_thresh_missing_high)
724  _vflags[fMsn]._state = hcaldqm::flag::fBAD;
725  else if (frmissing>=_thresh_missing_low)
727  else
729  if (frbadm>=_thresh_badm)
731  else
733  if (frbadr>=_thresh_badr)
735  else
737  }
738 
739  int iflag=0;
740  for (std::vector<hcaldqm::flag::Flag>::iterator ft=_vflags.begin();
741  ft!=_vflags.end(); ++ft)
742  {
744  int(ft->_state));
745  fSum+=(*ft);
746  iflag++;
747  ft->reset();
748  }
750  }
751 
752  // reset the pedestal containers instead of writting reset... func
754 
755 }
756 
758  edm::LuminosityBlock const& lb, edm::EventSetup const& es)
759 {
760  DQTask::beginLuminosityBlock(lb, es);
761 }
762 
763 /* virtual */ void PedestalTask::endRun(edm::Run const& r,
764  edm::EventSetup const&)
765 {
766  if (_ptype==fLocal)
767  {
768  if (r.runAuxiliary().run()==1)
769  return;
770  else
771  this->_dump();
772  }
773  else if (_ptype==fOnline)
774  return;
775 }
776 
778  edm::LuminosityBlock const& lb, edm::EventSetup const& es)
779 {
780  if (_ptype==fLocal)
781  return;
782  this->_dump();
783 
784  DQTask::endLuminosityBlock(lb, es);
785 }
786 
787 /* virtual */ void PedestalTask::_process(edm::Event const& e,
788  edm::EventSetup const& es)
789 {
793 
794  if (!e.getByToken(_tokHBHE, chbhe))
795  _logger.dqmthrow("Collection HBHEDigiCollection isn't available"
796  + _tagHBHE.label() + " " + _tagHBHE.instance());
797  if (!e.getByToken(_tokHO, cho))
798  _logger.dqmthrow("Collection HODigiCollection isn't available"
799  + _tagHO.label() + " " + _tagHO.instance());
800  if (!e.getByToken(_tokHF, chf))
801  _logger.dqmthrow("Collection HFDigiCollection isn't available"
802  + _tagHF.label() + " " + _tagHF.instance());
803 
804  int nHB(0), nHE(0), nHO(0), nHF(0);
805  for (HBHEDigiCollection::const_iterator it=chbhe->begin();
806  it!=chbhe->end(); ++it)
807  {
808  const HBHEDataFrame digi = (const HBHEDataFrame)(*it);
809  HcalDetId did = digi.id();
810  int digiSizeToUse = floor(digi.size()/constants::CAPS_NUM)*
812  did.subdet()==HcalBarrel ? nHB++ : nHE++;
813 
814  for (int i=0; i<digiSizeToUse; i++)
815  {
816  _cADC_SubdetPM.fill(did, it->sample(i).adc());
817 
818  _xPedSum1LS.get(did)+=it->sample(i).adc();
819  _xPedSum21LS.get(did)+=it->sample(i).adc()*it->sample(i).adc();
820  _xPedEntries1LS.get(did)++;
821 
822  _xPedSumTotal.get(did)+=it->sample(i).adc();
823  _xPedSum2Total.get(did)+=it->sample(i).adc()*it->sample(i).adc();
824  _xPedEntriesTotal.get(did)++;
825  }
826  }
828  _currentLS, nHB);
830  _currentLS, nHE);
831 
832  for (HODigiCollection::const_iterator it=cho->begin();
833  it!=cho->end(); ++it)
834  {
835  const HODataFrame digi = (const HODataFrame)(*it);
836  HcalDetId did = digi.id();
837  int digiSizeToUse = floor(digi.size()/constants::CAPS_NUM)*
839  nHO++;
840  for (int i=0; i<digiSizeToUse; i++)
841  {
842  _cADC_SubdetPM.fill(did, it->sample(i).adc());
843 
844  _xPedSum1LS.get(did)+=it->sample(i).adc();
845  _xPedSum21LS.get(did)+=it->sample(i).adc()*it->sample(i).adc();
846  _xPedEntries1LS.get(did)++;
847 
848  _xPedSumTotal.get(did)+=it->sample(i).adc();
849  _xPedSum2Total.get(did)+=it->sample(i).adc()*it->sample(i).adc();
850  _xPedEntriesTotal.get(did)++;
851  }
852  }
854  _currentLS, nHO);
855 
856  for (HFDigiCollection::const_iterator it=chf->begin();
857  it!=chf->end(); ++it)
858  {
859  const HFDataFrame digi = (const HFDataFrame)(*it);
860  HcalDetId did = digi.id();
861  int digiSizeToUse = floor(digi.size()/constants::CAPS_NUM)*
863  nHF++;
864  for (int i=0; i<digiSizeToUse; i++)
865  {
866  _cADC_SubdetPM.fill(did, it->sample(i).adc());
867 
868  _xPedSum1LS.get(did)+=it->sample(i).adc();
869  _xPedSum21LS.get(did)+=it->sample(i).adc()*it->sample(i).adc();
870  _xPedEntries1LS.get(did)++;
871 
872  _xPedSumTotal.get(did)+=it->sample(i).adc();
873  _xPedSum2Total.get(did)+=it->sample(i).adc()*it->sample(i).adc();
874  _xPedEntriesTotal.get(did)++;
875  }
876  }
878  _currentLS, nHF);
879 }
880 
881 /* virtual */ bool PedestalTask::_isApplicable(edm::Event const& e)
882 {
883  if (_ptype==fOnline)
884  {
886  if (!e.getByToken(_tokuMN, cumn))
887  return false;
888 
889  // for online just check the event type not the user Word
890  uint8_t eventType = cumn->eventType();
891  if (eventType == constants::EVENTTYPE_PEDESTAL)
892  return true;
893  }
894  else
895  {
896  // local
898  if (!e.getByToken(_tokTrigger, ctrigger))
899  _logger.dqmthrow("Collection HcalTBTriggerData isn't available"
900  + _tagTrigger.label() + " " + _tagTrigger.instance());
901  return ctrigger->wasSpillIgnorantPedestalTrigger();
902  }
903 
904  return false;
905 }
906 
hcaldqm::ContainerXXX< double > _xPedRefRMS
Definition: PedestalTask.h:91
edm::InputTag _taguMN
Definition: PedestalTask.h:48
edm::InputTag _tagHF
Definition: PedestalTask.h:46
hcaldqm::Container2D _cMissing1LS_depth
Definition: PedestalTask.h:143
T getUntrackedParameter(std::string const &, T const &) const
int i
Definition: DBlmapReader.cc:9
double _thresh_badm
Definition: PedestalTask.h:72
hcaldqm::ContainerProf2D _cRMSTotal_FEDVME
Definition: PedestalTask.h:111
hcaldqm::ContainerXXX< double > _xPedSumTotal
Definition: PedestalTask.h:82
virtual void initialize(std::string const &folder, hashfunctions::HashType, Quantity *, Quantity *qy=new ValueQuantity(quantity::fN), int debug=0)
Definition: Container1D.cc:40
virtual void _process(edm::Event const &, edm::EventSetup const &)
auto_ptr< ClusterSequence > cs
virtual bool exists(HcalDetId const &)
Definition: ContainerXXX.h:267
virtual void setBinContent(HcalDetId const &, int)
Definition: Container2D.cc:235
int const CRATE_VME_MIN
Definition: Constants.h:60
int ib
Definition: cuy.py:660
double _thresh_badr
Definition: PedestalTask.h:72
uint16_t fed2crate(int fed)
Definition: Utilities.cc:12
hcaldqm::Container2D _cMissingTotal_depth
Definition: PedestalTask.h:146
HcalSubdetector subdet() const
get the subdetector
Definition: HcalDetId.h:49
hcaldqm::Container1D _cMeanTotal_Subdet
Definition: PedestalTask.h:94
hcaldqm::ContainerProf2D _cMean1LS_depth
Definition: PedestalTask.h:100
hcaldqm::ContainerProf2D _cMeanDBRef1LS_FEDVME
Definition: PedestalTask.h:121
hcaldqm::Container1D _cMeanDBRef1LS_Subdet
Definition: PedestalTask.h:115
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:462
hcaldqm::ContainerProf2D _cRMSDBRef1LS_depth
Definition: PedestalTask.h:120
void initialize(HcalElectronicsMap const *, ElectronicsMapType etype=fHcalElectronicsMap)
hcaldqm::Container1D _cMean1LS_Subdet
Definition: PedestalTask.h:96
hcaldqm::ContainerXXX< int > _xPedEntries1LS
Definition: PedestalTask.h:81
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
hcaldqm::Container2D _cMeanBad1LS_FEDuTCA
Definition: PedestalTask.h:156
hcaldqm::Container1D _cRMSTotal_Subdet
Definition: PedestalTask.h:95
hcaldqm::Container1D _cNBadRMSvsLS_Subdet
Definition: PedestalTask.h:137
hcaldqm::Container2D _cRMSBadTotal_depth
Definition: PedestalTask.h:159
hcaldqm::ContainerProf2D _cRMSDBRefTotal_FEDVME
Definition: PedestalTask.h:130
int size() const
total number of samples in the digi
Definition: HBHEDataFrame.h:26
hcaldqm::ContainerProf2D _cRMSDBRef1LS_FEDuTCA
Definition: PedestalTask.h:124
UpdateFreq
Definition: DQTask.h:17
hcaldqm::ContainerProf2D _cMeanDBRefTotal_FEDVME
Definition: PedestalTask.h:128
State _state
Definition: Flag.h:79
edm::InputTag _tagHBHE
Definition: PedestalTask.h:44
hcaldqm::ContainerProf2D _cRMSTotal_depth
Definition: PedestalTask.h:108
std::vector< HBHEDataFrame >::const_iterator const_iterator
edm::InputTag _tagHO
Definition: PedestalTask.h:45
hcaldqm::ContainerXXX< double > _xPedSum1LS
Definition: PedestalTask.h:79
hcaldqm::ContainerXXX< int > _xPedEntriesTotal
Definition: PedestalTask.h:84
int const SPIGOT_MIN
Definition: Constants.h:85
hcaldqm::ContainerXXX< double > _xPedSum21LS
Definition: PedestalTask.h:80
hcaldqm::Container2D _cMeanBadTotal_FEDuTCA
Definition: PedestalTask.h:163
hcaldqm::ContainerProf2D _cMeanTotal_FEDVME
Definition: PedestalTask.h:109
hcaldqm::Container2D _cRMSBadTotal_FEDuTCA
Definition: PedestalTask.h:161
virtual void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
hcaldqm::Container2D _cRMSBad1LS_depth
Definition: PedestalTask.h:152
virtual void reset()
Definition: ContainerXXX.h:366
hcaldqm::ContainerProf2D _cRMSDBRefTotal_depth
Definition: PedestalTask.h:127
virtual void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
std::vector< uint32_t > _vhashFEDs
Definition: PedestalTask.h:76
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:7
hcaldqm::Container1D _cRMSDBRef1LS_Subdet
Definition: PedestalTask.h:116
int const FIBER_VME_MIN
Definition: Constants.h:90
hcaldqm::Container1D _cMissingvsLS_Subdet
Definition: PedestalTask.h:134
hcaldqm::Container2D _cRMSBadTotal_FEDVME
Definition: PedestalTask.h:162
void bookHistograms(fwlite::EventContainer &eventCont)
hcaldqm::ContainerProf2D _cMean1LS_FEDVME
Definition: PedestalTask.h:102
virtual void endRun(edm::Run const &, edm::EventSetup const &)
const HcalDetId & id() const
Definition: HODataFrame.h:23
hcaldqm::Container2D _cRMSBad1LS_FEDVME
Definition: PedestalTask.h:155
int const FIBERCH_MIN
Definition: Constants.h:100
edm::EDGetTokenT< HcalTBTriggerData > _tokTrigger
Definition: PedestalTask.h:53
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
double _thresh_missing_low
Definition: PedestalTask.h:73
std::vector< int > getFEDVMEList(HcalElectronicsMap const *)
Definition: Utilities.cc:71
hcaldqm::filter::HashFilter _filter_C36
Definition: PedestalTask.h:69
hcaldqm::Container1D _cRMS1LS_Subdet
Definition: PedestalTask.h:97
edm::EDGetTokenT< HFDigiCollection > _tokHF
Definition: PedestalTask.h:52
virtual void _resetMonitors(hcaldqm::UpdateFreq)
virtual void fill(HcalDetId const &)
Definition: Container2D.cc:59
hcaldqm::Container1D _cOccupancyvsLS_Subdet
Definition: PedestalTask.h:135
ProcessingType _ptype
Definition: DQModule.h:59
virtual void fill(uint32_t)
Definition: Container1D.cc:82
virtual void reset()
Definition: Container1D.cc:65
double _thresh_missing_high
Definition: PedestalTask.h:73
virtual void initialize(std::string const &folder, hashfunctions::HashType, Quantity *, Quantity *, int debug=0)
hcaldqm::ContainerProf2D _cMean1LS_FEDuTCA
Definition: PedestalTask.h:103
void reset()
Definition: Flag.h:76
int const CAPS_NUM
Definition: Constants.h:175
std::vector< hcaldqm::flag::Flag > _vflags
Definition: PedestalTask.h:55
virtual void setBinContent(int, int, int)
hcaldqm::ContainerXXX< int > _xNChs
Definition: PedestalTask.h:85
void dqmthrow(std::string const &msg) const
Definition: Logger.h:15
ContainerXXX< uint32_t > _xQuality
Definition: DQTask.h:62
int const FED_VME_MIN
Definition: Constants.h:47
T sqrt(T t)
Definition: SSEVec.h:18
virtual void initialize(std::string const &folder, hashfunctions::HashType, Quantity *, Quantity *, Quantity *qz=new ValueQuantity(quantity::fEnergy), int debug=0)
hcaldqm::ContainerProf2D _cRMS1LS_FEDuTCA
Definition: PedestalTask.h:105
edm::EDGetTokenT< HcalUMNioDigi > _tokuMN
Definition: PedestalTask.h:49
HcalElectronicsMap const * _emap
Definition: PedestalTask.h:65
hcaldqm::Container1D _cRMSDBRefTotal_Subdet
Definition: PedestalTask.h:118
int size() const
total number of samples in the digi
Definition: HODataFrame.h:27
hcaldqm::ContainerProf2D _cRMS1LS_FEDVME
Definition: PedestalTask.h:104
hcaldqm::Container2D _cMeanBadTotal_depth
Definition: PedestalTask.h:158
virtual void initialize(std::string const &folder, hashfunctions::HashType, Quantity *, Quantity *, Quantity *qz=new ValueQuantity(quantity::fN), int debug=0)
Definition: Container2D.cc:32
int const FIBER_uTCA_MIN1
Definition: Constants.h:93
edm::EDGetTokenT< HBHEDigiCollection > _tokHBHE
Definition: PedestalTask.h:50
hcaldqm::Container1D _cADC_SubdetPM
Definition: PedestalTask.h:165
std::vector< HcalGenericDetId > allPrecisionId() const
Logger _logger
Definition: DQModule.h:70
hcaldqm::Container2D _cMissing1LS_FEDuTCA
Definition: PedestalTask.h:145
hcaldqm::ContainerProf1D _cOccupancyEAvsLS_Subdet
Definition: PedestalTask.h:140
hcaldqm::filter::HashFilter _filter_VME
Definition: PedestalTask.h:68
hcaldqm::ContainerProf2D _cMeanDBRef1LS_FEDuTCA
Definition: PedestalTask.h:122
hcaldqm::electronicsmap::ElectronicsMap _ehashmap
Definition: PedestalTask.h:66
std::string _name
Definition: DQModule.h:57
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
PedestalTask(edm::ParameterSet const &)
Definition: PedestalTask.cc:6
int const CRATE_uTCA_MIN
Definition: Constants.h:65
hcaldqm::Container2D _cMeanBad1LS_depth
Definition: PedestalTask.h:151
hcaldqm::ContainerProf2D _cMeanDBRefTotal_FEDuTCA
Definition: PedestalTask.h:129
hcaldqm::ContainerSingle2D _cSummaryvsLS
Definition: PedestalTask.h:169
hcaldqm::ContainerProf2D _cRMS1LS_depth
Definition: PedestalTask.h:101
hcaldqm::Container2D _cMissing1LS_FEDVME
Definition: PedestalTask.h:144
hcaldqm::Container2D _cRMSBad1LS_FEDuTCA
Definition: PedestalTask.h:154
hcaldqm::Container1D _cNBadMeanvsLS_Subdet
Definition: PedestalTask.h:136
int size() const
total number of samples in the digi
Definition: HFDataFrame.h:26
bool isFEDHBHE(HcalElectronicsId const &)
Definition: Utilities.cc:124
hcaldqm::ContainerProf2D _cMeanTotal_depth
Definition: PedestalTask.h:107
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
Definition: Container2D.cc:895
virtual void book(HcalElectronicsMap const *)
Definition: ContainerXXX.h:99
virtual void initialize(std::string const &folder, Quantity *, Quantity *, Quantity *qz=new ValueQuantity(quantity::fN), int debug=0)
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
Definition: Container1D.cc:957
hcaldqm::ContainerProf2D _cMeanDBRefTotal_depth
Definition: PedestalTask.h:126
const T & get() const
Definition: EventSetup.h:56
virtual void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &)
Definition: PedestalTask.cc:43
hcaldqm::ContainerProf2D _cMeanDBRef1LS_depth
Definition: PedestalTask.h:119
hcaldqm::ContainerProf2D _cRMSTotal_FEDuTCA
Definition: PedestalTask.h:112
RunAuxiliary const & runAuxiliary() const
Definition: Run.h:60
edm::InputTag _tagTrigger
Definition: PedestalTask.h:47
std::string const & label() const
Definition: InputTag.h:36
uint8_t const EVENTTYPE_PEDESTAL
Definition: Constants.h:273
hcaldqm::Container1D _cMeanDBRefTotal_Subdet
Definition: PedestalTask.h:117
edm::EDGetTokenT< HODigiCollection > _tokHO
Definition: PedestalTask.h:51
hcaldqm::ContainerXXX< double > _xPedSum2Total
Definition: PedestalTask.h:83
double _thresh_mean
Definition: PedestalTask.h:72
virtual STDTYPE & get(HcalDetId const &)
Definition: ContainerXXX.h:249
hcaldqm::ContainerXXX< int > _xNMsn1LS
Definition: PedestalTask.h:86
hcaldqm::Container2D _cMeanBadTotal_FEDVME
Definition: PedestalTask.h:160
virtual bool _isApplicable(edm::Event const &)
hcaldqm::ContainerXXX< int > _xNBadRMS1LS
Definition: PedestalTask.h:87
hcaldqm::Container2D _cMissingTotal_FEDuTCA
Definition: PedestalTask.h:148
hcaldqm::ContainerXXX< double > _xPedRefMean
Definition: PedestalTask.h:90
std::vector< int > getFEDList(HcalElectronicsMap const *)
Definition: Utilities.cc:47
virtual void _dump()
std::vector< int > getFEDuTCAList(HcalElectronicsMap const *)
Definition: Utilities.cc:97
virtual bool filter(HcalDetId const &) const
Definition: HashFilter.cc:36
hcaldqm::ContainerProf2D _cRMSDBRefTotal_FEDuTCA
Definition: PedestalTask.h:131
std::string _subsystem
Definition: DQModule.h:64
const HcalDetId & id() const
Definition: HBHEDataFrame.h:22
bool isFEDHO(HcalElectronicsId const &)
Definition: Utilities.cc:171
hcaldqm::Container2D _cMissingTotal_FEDVME
Definition: PedestalTask.h:147
std::vector< uint32_t > _vcdaqEids
Definition: DQTask.h:65
hcaldqm::ContainerXXX< int > _xNBadMean1LS
Definition: PedestalTask.h:87
const HcalDetId & id() const
Definition: HFDataFrame.h:22
virtual void initialize(hashfunctions::HashType, int debug=0)
Definition: ContainerXXX.h:91
virtual void initialize(FilterType ftype, HashType htype, std::vector< uint32_t > const &)
Definition: HashFilter.cc:26
hcaldqm::ContainerProf2D _cMeanTotal_FEDuTCA
Definition: PedestalTask.h:110
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
hcaldqm::Container2D _cMeanBad1LS_FEDVME
Definition: PedestalTask.h:153
Readout chain identification for Hcal.
std::string const & instance() const
Definition: InputTag.h:37
hcaldqm::ContainerProf2D _cRMSDBRef1LS_FEDVME
Definition: PedestalTask.h:123
bool isFEDHF(HcalElectronicsId const &)
Definition: Utilities.cc:146
hcaldqm::Container2D _cSummaryvsLS_FED
Definition: PedestalTask.h:168
RunNumber_t run() const
Definition: RunAuxiliary.h:41
double _thresh_rms
Definition: PedestalTask.h:72
virtual void set(HcalDetId const &, STDTYPE)
Definition: ContainerXXX.h:229
int const SLOT_uTCA_MIN
Definition: Constants.h:72
Definition: Run.h:43
hcaldqm::filter::HashFilter _filter_uTCA
Definition: PedestalTask.h:67