4 using namespace hcaldqm;
5 using namespace hcaldqm::constants;
38 "thresh_missing_high", 0.2);
40 "thresh_missing_low", 0.05);
53 _emap = dbs->getHcalMapping();
57 std::vector<uint32_t> vhashVME;
58 std::vector<uint32_t> vhashuTCA;
59 std::vector<uint32_t> vhashC36;
73 for (std::vector<int>::const_iterator it=vFEDsVME.begin();
74 it!=vFEDsVME.end(); ++it)
77 for (std::vector<int>::const_iterator it=vFEDsuTCA.begin();
78 it!=vFEDsuTCA.end(); ++it)
417 for (std::vector<HcalGenericDetId>::const_iterator it=dids.begin();
418 it!=dids.end(); ++it)
421 if (!it->isHcalDetId())
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];}
442 DQTask::_resetMonitors(uf);
533 for (std::vector<HcalGenericDetId>::const_iterator it=dids.begin();
534 it!=dids.end(); ++it)
536 if (!it->isHcalDetId())
587 sum1LS/=n1LS;
double rms1LS =
sqrt(sum21LS/n1LS-sum1LS*sum1LS);
588 double diffm1LS = sum1LS-refm;
589 double diffr1LS = rms1LS - refr;
593 double rmsTotal =
sqrt(sum2Total/nTotal-sumTotal*sumTotal);
594 double diffmTotal = sumTotal-refm;
595 double diffrTotal = rmsTotal - refr;
696 for (std::vector<uint32_t>::const_iterator it=
_vhashFEDs.begin();
702 std::vector<uint32_t>::const_iterator jt=
707 for (uint32_t iflag=0; iflag<
_vflags.size(); iflag++)
740 for (std::vector<hcaldqm::flag::Flag>::iterator ft=
_vflags.begin();
760 DQTask::beginLuminosityBlock(lb, es);
784 DQTask::endLuminosityBlock(lb, es);
804 int nHB(0), nHE(0), nHO(0), nHF(0);
806 it!=chbhe->end(); ++it)
814 for (
int i=0;
i<digiSizeToUse;
i++)
833 it!=cho->end(); ++it)
840 for (
int i=0;
i<digiSizeToUse;
i++)
857 it!=chf->end(); ++it)
864 for (
int i=0;
i<digiSizeToUse;
i++)
901 return ctrigger->wasSpillIgnorantPedestalTrigger();
hcaldqm::ContainerXXX< double > _xPedRefRMS
hcaldqm::Container2D _cMissing1LS_depth
T getUntrackedParameter(std::string const &, T const &) const
hcaldqm::ContainerProf2D _cRMSTotal_FEDVME
hcaldqm::ContainerXXX< double > _xPedSumTotal
virtual void initialize(std::string const &folder, hashfunctions::HashType, Quantity *, Quantity *qy=new ValueQuantity(quantity::fN), int debug=0)
virtual void _process(edm::Event const &, edm::EventSetup const &)
auto_ptr< ClusterSequence > cs
virtual bool exists(HcalDetId const &)
virtual void setBinContent(HcalDetId const &, int)
uint16_t fed2crate(int fed)
hcaldqm::Container2D _cMissingTotal_depth
HcalSubdetector subdet() const
get the subdetector
hcaldqm::Container1D _cMeanTotal_Subdet
hcaldqm::ContainerProf2D _cMean1LS_depth
hcaldqm::ContainerProf2D _cMeanDBRef1LS_FEDVME
hcaldqm::Container1D _cMeanDBRef1LS_Subdet
bool getByToken(EDGetToken token, Handle< PROD > &result) const
hcaldqm::ContainerProf2D _cRMSDBRef1LS_depth
void initialize(HcalElectronicsMap const *, ElectronicsMapType etype=fHcalElectronicsMap)
hcaldqm::Container1D _cMean1LS_Subdet
hcaldqm::ContainerXXX< int > _xPedEntries1LS
#define DEFINE_FWK_MODULE(type)
hcaldqm::Container2D _cMeanBad1LS_FEDuTCA
hcaldqm::Container1D _cRMSTotal_Subdet
hcaldqm::Container1D _cNBadRMSvsLS_Subdet
hcaldqm::Container2D _cRMSBadTotal_depth
hcaldqm::ContainerProf2D _cRMSDBRefTotal_FEDVME
int size() const
total number of samples in the digi
hcaldqm::ContainerProf2D _cRMSDBRef1LS_FEDuTCA
hcaldqm::ContainerProf2D _cMeanDBRefTotal_FEDVME
hcaldqm::ContainerProf2D _cRMSTotal_depth
std::vector< HBHEDataFrame >::const_iterator const_iterator
hcaldqm::ContainerXXX< double > _xPedSum1LS
hcaldqm::ContainerXXX< int > _xPedEntriesTotal
hcaldqm::ContainerXXX< double > _xPedSum21LS
hcaldqm::Container2D _cMeanBadTotal_FEDuTCA
hcaldqm::ContainerProf2D _cMeanTotal_FEDVME
hcaldqm::Container2D _cRMSBadTotal_FEDuTCA
virtual void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
hcaldqm::Container2D _cRMSBad1LS_depth
hcaldqm::ContainerProf2D _cRMSDBRefTotal_depth
virtual void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
std::vector< uint32_t > _vhashFEDs
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
hcaldqm::Container1D _cRMSDBRef1LS_Subdet
hcaldqm::Container1D _cMissingvsLS_Subdet
hcaldqm::Container2D _cRMSBadTotal_FEDVME
void bookHistograms(fwlite::EventContainer &eventCont)
hcaldqm::ContainerProf2D _cMean1LS_FEDVME
virtual void endRun(edm::Run const &, edm::EventSetup const &)
const HcalDetId & id() const
hcaldqm::Container2D _cRMSBad1LS_FEDVME
edm::EDGetTokenT< HcalTBTriggerData > _tokTrigger
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
double _thresh_missing_low
std::vector< int > getFEDVMEList(HcalElectronicsMap const *)
hcaldqm::filter::HashFilter _filter_C36
hcaldqm::Container1D _cRMS1LS_Subdet
edm::EDGetTokenT< HFDigiCollection > _tokHF
virtual void _resetMonitors(hcaldqm::UpdateFreq)
uint32_t lookup(DetId const &)
virtual void fill(HcalDetId const &)
hcaldqm::Container1D _cOccupancyvsLS_Subdet
virtual void fill(uint32_t)
double _thresh_missing_high
virtual void initialize(std::string const &folder, hashfunctions::HashType, Quantity *, Quantity *, int debug=0)
hcaldqm::ContainerProf2D _cMean1LS_FEDuTCA
std::vector< hcaldqm::flag::Flag > _vflags
virtual void setBinContent(int, int, int)
hcaldqm::ContainerXXX< int > _xNChs
void dqmthrow(std::string const &msg) const
ContainerXXX< uint32_t > _xQuality
virtual void initialize(std::string const &folder, hashfunctions::HashType, Quantity *, Quantity *, Quantity *qz=new ValueQuantity(quantity::fEnergy), int debug=0)
hcaldqm::ContainerProf2D _cRMS1LS_FEDuTCA
edm::EDGetTokenT< HcalUMNioDigi > _tokuMN
HcalElectronicsMap const * _emap
hcaldqm::Container1D _cRMSDBRefTotal_Subdet
int size() const
total number of samples in the digi
hcaldqm::ContainerProf2D _cRMS1LS_FEDVME
hcaldqm::Container2D _cMeanBadTotal_depth
virtual void initialize(std::string const &folder, hashfunctions::HashType, Quantity *, Quantity *, Quantity *qz=new ValueQuantity(quantity::fN), int debug=0)
int const FIBER_uTCA_MIN1
edm::EDGetTokenT< HBHEDigiCollection > _tokHBHE
hcaldqm::Container1D _cADC_SubdetPM
std::vector< HcalGenericDetId > allPrecisionId() const
hcaldqm::Container2D _cMissing1LS_FEDuTCA
hcaldqm::ContainerProf1D _cOccupancyEAvsLS_Subdet
hcaldqm::filter::HashFilter _filter_VME
hcaldqm::ContainerProf2D _cMeanDBRef1LS_FEDuTCA
hcaldqm::electronicsmap::ElectronicsMap _ehashmap
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
PedestalTask(edm::ParameterSet const &)
hcaldqm::Container2D _cMeanBad1LS_depth
hcaldqm::ContainerProf2D _cMeanDBRefTotal_FEDuTCA
hcaldqm::ContainerSingle2D _cSummaryvsLS
hcaldqm::ContainerProf2D _cRMS1LS_depth
hcaldqm::Container2D _cMissing1LS_FEDVME
hcaldqm::Container2D _cRMSBad1LS_FEDuTCA
hcaldqm::Container1D _cNBadMeanvsLS_Subdet
int size() const
total number of samples in the digi
bool isFEDHBHE(HcalElectronicsId const &)
hcaldqm::ContainerProf2D _cMeanTotal_depth
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
virtual void book(HcalElectronicsMap const *)
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="")
hcaldqm::ContainerProf2D _cMeanDBRefTotal_depth
virtual void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &)
hcaldqm::ContainerProf2D _cMeanDBRef1LS_depth
hcaldqm::ContainerProf2D _cRMSTotal_FEDuTCA
RunAuxiliary const & runAuxiliary() const
edm::InputTag _tagTrigger
uint8_t const EVENTTYPE_PEDESTAL
hcaldqm::Container1D _cMeanDBRefTotal_Subdet
edm::EDGetTokenT< HODigiCollection > _tokHO
hcaldqm::ContainerXXX< double > _xPedSum2Total
virtual STDTYPE & get(HcalDetId const &)
hcaldqm::ContainerXXX< int > _xNMsn1LS
hcaldqm::Container2D _cMeanBadTotal_FEDVME
virtual bool _isApplicable(edm::Event const &)
hcaldqm::ContainerXXX< int > _xNBadRMS1LS
hcaldqm::Container2D _cMissingTotal_FEDuTCA
hcaldqm::ContainerXXX< double > _xPedRefMean
std::vector< int > getFEDList(HcalElectronicsMap const *)
std::vector< int > getFEDuTCAList(HcalElectronicsMap const *)
virtual bool filter(HcalDetId const &) const
hcaldqm::ContainerProf2D _cRMSDBRefTotal_FEDuTCA
const HcalDetId & id() const
bool isFEDHO(HcalElectronicsId const &)
hcaldqm::Container2D _cMissingTotal_FEDVME
std::vector< uint32_t > _vcdaqEids
hcaldqm::ContainerXXX< int > _xNBadMean1LS
const HcalDetId & id() const
virtual void initialize(hashfunctions::HashType, int debug=0)
virtual void initialize(FilterType ftype, HashType htype, std::vector< uint32_t > const &)
hcaldqm::ContainerProf2D _cMeanTotal_FEDuTCA
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
hcaldqm::Container2D _cMeanBad1LS_FEDVME
Readout chain identification for Hcal.
hcaldqm::ContainerProf2D _cRMSDBRef1LS_FEDVME
bool isFEDHF(HcalElectronicsId const &)
hcaldqm::Container2D _cSummaryvsLS_FED
virtual void set(HcalDetId const &, STDTYPE)
hcaldqm::filter::HashFilter _filter_uTCA