CMS 3D CMS Logo

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  {
80  std::pair<uint16_t, uint16_t> cspair = utilities::fed2crate(*it);
81  _vhashFEDs.push_back(HcalElectronicsId(
82  cspair.first, cspair.second, FIBER_uTCA_MIN1,
83  FIBERCH_MIN, false).rawId());
84  }
85 
86  // Containers XXX
93 
96 
101 
102  // Containers
133 
164 
195 
226 
227  _cMissingvsLS_Subdet.initialize(_name, "MissingvsLS",
231  _cOccupancyvsLS_Subdet.initialize(_name, "OccupancyvsLS",
235  _cOccupancyEAvsLS_Subdet.initialize(_name, "OccupancyEAvsLS",
239  _cNBadMeanvsLS_Subdet.initialize(_name, "NBadMeanvsLS",
243  _cNBadRMSvsLS_Subdet.initialize(_name, "NBadRMSvsLS",
247 
284 
321 
325 
326  _cSummaryvsLS_FED.initialize(_name, "SummaryvsLS",
331  _cSummaryvsLS.initialize(_name, "SummaryvsLS",
335 
336  // book plots
349 
361 
376 
391 
399 
400  // book compact containers
407 
410 
411  _xNChs.book(_emap);
415 
417 
418  // load conditions pedestals
419  std::vector<HcalGenericDetId> dids = _emap->allPrecisionId();
420  for (std::vector<HcalGenericDetId>::const_iterator it=dids.begin();
421  it!=dids.end(); ++it)
422  {
423  // skip if calib or whatever
424  if (!it->isHcalDetId())
425  continue;
426  // skip Crate 36
428  continue;
429  HcalDetId did = HcalDetId(it->rawId());
430 
431  HcalPedestal const* peds = dbs->getPedestal(did);
432  float const *means = peds->getValues();
433  float const *rmss = peds->getWidths();
434  double msum=0; double rsum=0;
435  for (uint32_t i=0; i<4; i++)
436  {msum+=means[i]; rsum+=rmss[i];}
437  msum/=4; rsum/=4;
438  _xPedRefMean.set(did, msum);
439  _xPedRefRMS.set(did, rsum);
440  }
441 }
442 
444 {
445  DQTask::_resetMonitors(uf);
446 
447  switch(uf)
448  {
449  case hcaldqm::f50LS:
451  break;
452  default:
453  break;
454  }
455 }
456 
457 /* virtual */ void PedestalTask::_dump()
458 {
459  // reset what's needed
460 
461  // Mean/RMS actual values
470 
479 
480 
481  // DB Conditions Comparison
486 
491 
496 
501 
502  // missing channels
506 
510 
511  // Missing or Bad
518 
525 
526  // reset some XXX containers
527  _xNChs.reset();
528  _xNMsn1LS.reset();
530 
531  // - ITERATE OVER ALL TEH CHANNELS
532  // - FIND THE ONES THAT ARE MISSING
533  // - FIND THE ONES WITH BAD PEDESTAL MEANs
534  // - FIND THE ONES WITH BAD PEDESTAL RMSs
535  std::vector<HcalGenericDetId> dids = _emap->allPrecisionId();
536  for (std::vector<HcalGenericDetId>::const_iterator it=dids.begin();
537  it!=dids.end(); ++it)
538  {
539  if (!it->isHcalDetId())
540  continue;
542  if (_filter_C36.filter(eid))
543  continue;
544 
545  // filter out channels with bad quality
546  if (_xQuality.exists(HcalDetId(*it)))
547  {
548  HcalChannelStatus cs(it->rawId(), _xQuality.get(HcalDetId(*it)));
549  if (
552  continue;
553  }
554 
555  HcalDetId did = HcalDetId(it->rawId());
556  double sum1LS = _xPedSum1LS.get(did);
557  double refm = _xPedRefMean.get(did);
558  double sum21LS = _xPedSum21LS.get(did);
559  double refr = _xPedRefRMS.get(did);
560  double n1LS = _xPedEntries1LS.get(did);
561 
562  double sumTotal = _xPedSumTotal.get(did);
563  double sum2Total = _xPedSum2Total.get(did);
564  double nTotal = _xPedEntriesTotal.get(did);
565 
566  _xNChs.get(eid)++;
567  // IF A CHANNEL IS MISSING FOR THIS LS
568  if (n1LS==0)
569  {
572  eid.isVMEid()?_cMissing1LS_FEDVME.fill(eid):
574  _xNMsn1LS.get(eid)++;
575  // ALSO CHECK
576  // IF A CHANNEL HAS BEEN MISSING FOR ALL LSs SO FAR
577  if (nTotal==0)
578  {
580  eid.isVMEid()?_cMissingTotal_FEDVME.fill(eid):
582  }
583  continue;
584  }
585 
586  // if not missing, fill the occupancy...
588 
589  // compute the means and diffs for this LS
590  sum1LS/=n1LS; double rms1LS = sqrt(sum21LS/n1LS-sum1LS*sum1LS);
591  double diffm1LS = sum1LS-refm;
592  double diffr1LS = rms1LS - refr;
593 
594  // compute the means and diffs for the whole Run
595  sumTotal/=nTotal;
596  double rmsTotal = sqrt(sum2Total/nTotal-sumTotal*sumTotal);
597  double diffmTotal = sumTotal-refm;
598  double diffrTotal = rmsTotal - refr;
599 
600  // FILL ACTUAL MEANs AND RMSs FOR THIS LS
601  _cMean1LS_Subdet.fill(did, sum1LS);
602  _cMean1LS_depth.fill(did, sum1LS);
603  _cRMS1LS_Subdet.fill(did, rms1LS);
604  _cRMS1LS_depth.fill(did, rms1LS);
605 
606  // FILL THE DIFFERENCES FOR THIS LS
607  _cMeanDBRef1LS_Subdet.fill(did, diffm1LS);
608  _cMeanDBRef1LS_depth.fill(did, diffm1LS);
609  _cRMSDBRef1LS_Subdet.fill(did, diffr1LS);
610  _cRMSDBRef1LS_depth.fill(did, diffr1LS);
611 
612  // FILL ACTUAL MEANs AND RMSs FOR THE WHOLE RUN
613  _cMeanTotal_Subdet.fill(did, sumTotal);
614  _cMeanTotal_depth.fill(did, sumTotal);
615  _cRMSTotal_Subdet.fill(did, rmsTotal);
616  _cRMSTotal_depth.fill(did, rmsTotal);
617 
618  // FILL THE DIFFERENCES FOR THE WHOLE RUN
619  _cMeanDBRefTotal_Subdet.fill(did, diffmTotal);
620  _cMeanDBRefTotal_depth.fill(did, diffmTotal);
621  _cRMSDBRefTotal_Subdet.fill(did, diffrTotal);
622  _cRMSDBRefTotal_depth.fill(did, diffrTotal);
623 
624  // FOR THIS LS
625  if (eid.isVMEid())
626  {
627  _cMean1LS_FEDVME.fill(eid, sum1LS);
628  _cRMS1LS_FEDVME.fill(eid, rms1LS);
629  _cMeanDBRef1LS_FEDVME.fill(eid, diffm1LS);
630  _cRMSDBRef1LS_FEDVME.fill(eid, diffr1LS);
631  }
632  else
633  {
634  _cMean1LS_FEDuTCA.fill(eid, sum1LS);
635  _cRMS1LS_FEDuTCA.fill(eid, rms1LS);
636  _cMeanDBRef1LS_FEDuTCA.fill(eid, diffm1LS);
637  _cRMSDBRef1LS_FEDuTCA.fill(eid, diffr1LS);
638  }
639 
640  // FOR THE WHOLE RUN
641  if (eid.isVMEid())
642  {
643  _cMeanTotal_FEDVME.fill(eid, sumTotal);
644  _cRMSTotal_FEDVME.fill(eid, rmsTotal);
645  _cMeanDBRefTotal_FEDVME.fill(eid, diffmTotal);
646  _cRMSDBRefTotal_FEDVME.fill(eid, diffrTotal);
647  }
648  else
649  {
650  _cMeanTotal_FEDuTCA.fill(eid, sumTotal);
651  _cRMSTotal_FEDuTCA.fill(eid, rmsTotal);
652  _cMeanDBRefTotal_FEDuTCA.fill(eid, diffmTotal);
653  _cRMSDBRefTotal_FEDuTCA.fill(eid, diffrTotal);
654  }
655 
656  // FOR THE CURRENT LS COMPARE MEANS AND RMSS
657  if (fabs(diffm1LS)>_thresh_mean)
658  {
661  if (eid.isVMEid())
663  else
665  _xNBadMean1LS.get(eid)++;
666  }
667  if (fabs(diffr1LS)>_thresh_rms)
668  {
669  _cRMSBad1LS_depth.fill(did);
671  if (eid.isVMEid())
673  else
675  _xNBadRMS1LS.get(eid)++;
676  }
677 
678  // FOR THIS RUN
679  if (fabs(diffmTotal)>_thresh_mean)
680  {
682  if (eid.isVMEid())
684  else
686  }
687  if (fabs(diffrTotal)>_thresh_rms)
688  {
690  if (eid.isVMEid())
692  else
694  }
695 
696  }
697 
698  // SET THE FLAGS FOR THIS LS
699  for (std::vector<uint32_t>::const_iterator it=_vhashFEDs.begin();
700  it!=_vhashFEDs.end(); ++it)
701  {
702  hcaldqm::flag::Flag fSum("PED");
704 
705  std::vector<uint32_t>::const_iterator jt=
706  std::find(_vcdaqEids.begin(), _vcdaqEids.end(), (*it));
707  if (jt==_vcdaqEids.end())
708  {
709  // not @cDAQ
710  for (uint32_t iflag=0; iflag<_vflags.size(); iflag++)
711  _cSummaryvsLS_FED.setBinContent(eid, _currentLS, int(iflag),
712  int(hcaldqm::flag::fNCDAQ));
714  continue;
715  }
716 
717  // @cDAQ
720  {
721  double frmissing = double(_xNMsn1LS.get(eid))/
722  double(_xNChs.get(eid));
723  double frbadm = _xNBadMean1LS.get(eid)/_xNChs.get(eid);
724  double frbadr = _xNBadRMS1LS.get(eid)/_xNChs.get(eid);
725 
726  if (frmissing>=_thresh_missing_high)
727  _vflags[fMsn]._state = hcaldqm::flag::fBAD;
728  else if (frmissing>=_thresh_missing_low)
730  else
732  if (frbadm>=_thresh_badm)
734  else
736  if (frbadr>=_thresh_badr)
738  else
740  }
741 
742  int iflag=0;
743  for (std::vector<hcaldqm::flag::Flag>::iterator ft=_vflags.begin();
744  ft!=_vflags.end(); ++ft)
745  {
747  int(ft->_state));
748  fSum+=(*ft);
749  iflag++;
750  ft->reset();
751  }
753  }
754 
755  // reset the pedestal containers instead of writting reset... func
757 
758 }
759 
761  edm::LuminosityBlock const& lb, edm::EventSetup const& es)
762 {
763  DQTask::beginLuminosityBlock(lb, es);
764 }
765 
766 /* virtual */ void PedestalTask::endRun(edm::Run const& r,
767  edm::EventSetup const&)
768 {
769  if (_ptype==fLocal)
770  {
771  if (r.runAuxiliary().run()==1)
772  return;
773  else
774  this->_dump();
775  }
776  else if (_ptype==fOnline)
777  return;
778 }
779 
781  edm::LuminosityBlock const& lb, edm::EventSetup const& es)
782 {
783  if (_ptype==fLocal)
784  return;
785  this->_dump();
786 
787  DQTask::endLuminosityBlock(lb, es);
788 }
789 
790 /* virtual */ void PedestalTask::_process(edm::Event const& e,
791  edm::EventSetup const& es)
792 {
796 
797  if (!e.getByToken(_tokHBHE, chbhe))
798  _logger.dqmthrow("Collection HBHEDigiCollection isn't available"
799  + _tagHBHE.label() + " " + _tagHBHE.instance());
800  if (!e.getByToken(_tokHO, cho))
801  _logger.dqmthrow("Collection HODigiCollection isn't available"
802  + _tagHO.label() + " " + _tagHO.instance());
803  if (!e.getByToken(_tokHF, chf))
804  _logger.dqmthrow("Collection HFDigiCollection isn't available"
805  + _tagHF.label() + " " + _tagHF.instance());
806 
807  int nHB(0), nHE(0), nHO(0), nHF(0);
808  for (HBHEDigiCollection::const_iterator it=chbhe->begin();
809  it!=chbhe->end(); ++it)
810  {
811  const HBHEDataFrame digi = (const HBHEDataFrame)(*it);
812  HcalDetId did = digi.id();
813  int digiSizeToUse = floor(digi.size()/constants::CAPS_NUM)*
815  did.subdet()==HcalBarrel ? nHB++ : nHE++;
816 
817  for (int i=0; i<digiSizeToUse; i++)
818  {
819  _cADC_SubdetPM.fill(did, it->sample(i).adc());
820 
821  _xPedSum1LS.get(did)+=it->sample(i).adc();
822  _xPedSum21LS.get(did)+=it->sample(i).adc()*it->sample(i).adc();
823  _xPedEntries1LS.get(did)++;
824 
825  _xPedSumTotal.get(did)+=it->sample(i).adc();
826  _xPedSum2Total.get(did)+=it->sample(i).adc()*it->sample(i).adc();
827  _xPedEntriesTotal.get(did)++;
828  }
829  }
831  _currentLS, nHB);
833  _currentLS, nHE);
834 
836  it!=cho->end(); ++it)
837  {
838  const HODataFrame digi = (const HODataFrame)(*it);
839  HcalDetId did = digi.id();
840  int digiSizeToUse = floor(digi.size()/constants::CAPS_NUM)*
842  nHO++;
843  for (int i=0; i<digiSizeToUse; i++)
844  {
845  _cADC_SubdetPM.fill(did, it->sample(i).adc());
846 
847  _xPedSum1LS.get(did)+=it->sample(i).adc();
848  _xPedSum21LS.get(did)+=it->sample(i).adc()*it->sample(i).adc();
849  _xPedEntries1LS.get(did)++;
850 
851  _xPedSumTotal.get(did)+=it->sample(i).adc();
852  _xPedSum2Total.get(did)+=it->sample(i).adc()*it->sample(i).adc();
853  _xPedEntriesTotal.get(did)++;
854  }
855  }
857  _currentLS, nHO);
858 
860  it!=chf->end(); ++it)
861  {
862  const HFDataFrame digi = (const HFDataFrame)(*it);
863  HcalDetId did = digi.id();
864  int digiSizeToUse = floor(digi.size()/constants::CAPS_NUM)*
866  nHF++;
867  for (int i=0; i<digiSizeToUse; i++)
868  {
869  _cADC_SubdetPM.fill(did, it->sample(i).adc());
870 
871  _xPedSum1LS.get(did)+=it->sample(i).adc();
872  _xPedSum21LS.get(did)+=it->sample(i).adc()*it->sample(i).adc();
873  _xPedEntries1LS.get(did)++;
874 
875  _xPedSumTotal.get(did)+=it->sample(i).adc();
876  _xPedSum2Total.get(did)+=it->sample(i).adc()*it->sample(i).adc();
877  _xPedEntriesTotal.get(did)++;
878  }
879  }
881  _currentLS, nHF);
882 }
883 
884 /* virtual */ bool PedestalTask::_isApplicable(edm::Event const& e)
885 {
886  if (_ptype==fOnline)
887  {
889  if (!e.getByToken(_tokuMN, cumn))
890  return false;
891 
892  // for online just check the event type not the user Word
893  uint8_t eventType = cumn->eventType();
894  if (eventType == constants::EVENTTYPE_PEDESTAL)
895  return true;
896  }
897  else
898  {
899  // local
901  if (!e.getByToken(_tokTrigger, ctrigger))
902  _logger.dqmthrow("Collection HcalTBTriggerData isn't available"
903  + _tagTrigger.label() + " " + _tagTrigger.instance());
904  return ctrigger->wasSpillIgnorantPedestalTrigger();
905  }
906 
907  return false;
908 }
909 
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
int const CRATE_VME_MIN
Definition: Constants.h:60
double _thresh_badr
Definition: PedestalTask.h:72
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
std::pair< uint16_t, uint16_t > fed2crate(int fed)
Definition: Utilities.cc:13
uint32_t rawId() const
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:457
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:78
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)
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
uint8_t eventType() const
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
const_iterator end() const
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:131
hcaldqm::ContainerProf2D _cMeanTotal_depth
Definition: PedestalTask.h:107
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:59
edm::InputTag _tagTrigger
Definition: PedestalTask.h:47
virtual void setBinContent(HcalDetId const &, int) override
Definition: Container2D.cc:235
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
bool wasSpillIgnorantPedestalTrigger() const
returns true if this trigger was a calibration trigger
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:54
virtual void _dump()
std::vector< int > getFEDuTCAList(HcalElectronicsMap const *)
Definition: Utilities.cc:104
virtual void fill(HcalDetId const &) override
Definition: Container2D.cc:59
const HcalElectronicsMap * getHcalMapping() const
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 float * getValues() const
get value for all capId = 0..3
Definition: HcalPedestal.h:19
const HcalDetId & id() const
Definition: HBHEDataFrame.h:22
bool isFEDHO(HcalElectronicsId const &)
Definition: Utilities.cc:178
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
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="") override
Definition: Container2D.cc:895
hcaldqm::ContainerProf2D _cMeanTotal_FEDuTCA
Definition: PedestalTask.h:110
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
const HcalPedestal * getPedestal(const HcalGenericDetId &fId) const
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:153
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
const_iterator begin() const
Definition: Run.h:42
hcaldqm::filter::HashFilter _filter_uTCA
Definition: PedestalTask.h:67
ib
Definition: cuy.py:660