3 using namespace hcaldqm;
4 using namespace hcaldqm::constants;
41 _emap = dbs->getHcalMapping();
45 std::vector<uint32_t> vVME;
46 std::vector<uint32_t> vuTCA;
47 std::vector<uint32_t> vFEDHF;
74 for (std::vector<int>::const_iterator it=vFEDsVME.begin();
75 it!=vFEDsVME.end(); ++it)
79 for (std::vector<int>::const_iterator it=vFEDsuTCA.begin();
80 it!=vFEDsuTCA.end(); ++it)
214 std::vector<uint32_t> vhashHF;
360 for (std::vector<HcalGenericDetId>::const_iterator it=gids.begin();
361 it!=gids.end(); ++it)
363 if (!it->isHcalDetId())
403 DQTask::_resetMonitors(uf);
444 uint32_t rawidValid = 0;
445 uint32_t rawidHBValid = 0;
446 uint32_t rawidHEValid = 0;
456 double sumQ = hcaldqm::utilities::sumQ<HBHEDataFrame>(*it, 2.5, 0, it->size()-1);
465 rawidHBValid = did.rawId();
467 rawidHEValid = did.rawId();
507 for (
int i=0;
i<it->size();
i++)
517 double timing = hcaldqm::utilities::aveTS<HBHEDataFrame>(*it, 2.5, 0,
548 did.subdet()==
HcalBarrel?numChsCut++:numChsCutHE++;
553 if (rawidHBValid!=0 && rawidHEValid!=0)
583 double sumQ = hcaldqm::utilities::sumQ<HODataFrame>(*it, 8.5, 0, it->size()-1);
592 rawidValid = did.rawId();
633 for (
int i=0;
i<it->size();
i++)
643 double timing = hcaldqm::utilities::aveTS<HODataFrame>(*it, 8.5, 0,
692 numChs=0; numChsCut=0;
701 double sumQ = hcaldqm::utilities::sumQ<HFDataFrame>(*it, 2.5, 0, it->size()-1);
710 rawidValid = did.rawId();
751 for (
int i=0;
i<it->size();
i++)
761 double timing = hcaldqm::utilities::aveTS<HFDataFrame>(*it, 2.5, 0,
763 double q1 = it->sample(1).nominal_fC()-2.5;
764 double q2 = it->sample(2).nominal_fC()-2.5;
765 double q2q12 = q2/(q1+
q2);
823 DQTask::beginLuminosityBlock(lb, es);
835 uint32_t hash1 = it->first;
837 double x1 = it->second;
844 double x2 = jt->second;
852 for (std::vector<uint32_t>::const_iterator it=
_vhashFEDs.begin();
858 std::vector<uint32_t>::const_iterator cit=
std::find(
863 for (uint32_t iflag=0; iflag<
_vflags.size(); iflag++)
880 double fr = double(
_xNChs.
get(eid))/
double(
904 for (std::vector<hcaldqm::flag::Flag>::iterator ft=
_vflags.begin();
922 DQTask::endLuminosityBlock(lb, es);
hcaldqm::ContainerProf1D _cTimingCutvsiphi_SubdetPM
T getUntrackedParameter(std::string const &, T const &) const
MonitorElement * meNumEvents1LS
virtual void initialize(std::string const &folder, hashfunctions::HashType, Quantity *, Quantity *qy=new ValueQuantity(quantity::fN), int debug=0)
hcaldqm::Container1D _cADC_SubdetPM
hcaldqm::Container1D _cOccupancyCutvsieta_Subdet
auto_ptr< ClusterSequence > cs
hcaldqm::ContainerProf1D _cSumQvsBX_SubdetPM
virtual bool exists(HcalDetId const &)
std::pair< uint16_t, uint16_t > fed2crate(int fed)
hcaldqm::ContainerProf1D _cQ2Q12CutvsLS_FEDHF
MonitorElement * meUnknownIds1LS
edm::EDGetTokenT< HBHEDigiCollection > _tokHBHE
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void initialize(HcalElectronicsMap const *, ElectronicsMapType etype=fHcalElectronicsMap)
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< HFDigiCollection > _tokHF
virtual CompactMap::const_iterator begin()
std::vector< HBHEDataFrame >::const_iterator const_iterator
int bunchCrossing() const
hcaldqm::ContainerProf2D _cSumQ_depth
edm::EDGetTokenT< HODigiCollection > _tokHO
hcaldqm::Container1D _cOccupancyCutvsiphi_SubdetPM
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
hcaldqm::ContainerSingle2D _cSummaryvsLS
hcaldqm::ContainerProf2D _cTimingCut_FEDVME
hcaldqm::Container2D _cOccupancyCutvsiphivsLS_SubdetPM
hcaldqm::ContainerXXX< uint32_t > _xDigiSize
hcaldqm::ContainerProf2D _cTimingCut_FEDuTCA
void bookHistograms(fwlite::EventContainer &eventCont)
virtual void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
std::vector< int > getFEDVMEList(HcalElectronicsMap const *)
hcaldqm::filter::HashFilter _filter_VME
virtual CompactMap::const_iterator end()
uint32_t lookup(DetId const &)
virtual void fill(uint32_t)
virtual void initialize(std::string const &folder, hashfunctions::HashType, Quantity *, Quantity *, int debug=0)
virtual void setBinContent(int, int, int)
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::Container2D _cOccupancyCut_ElectronicsVME
hcaldqm::Container1D _cShapeCut_FED
hcaldqm::Container2D _cOccupancyCut_depth
hcaldqm::ContainerProf1D _cOccupancyCutvsBX_Subdet
MonitorElement * book1D(Args &&...args)
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
virtual void _resetMonitors(hcaldqm::UpdateFreq)
hcaldqm::ContainerProf2D _cTimingCut_depth
std::vector< HcalGenericDetId > allPrecisionId() const
hcaldqm::Container2D _cOccupancy_FEDVME
hcaldqm::Container2D _cOccupancyCut_FEDVME
hcaldqm::Container2D _cOccupancy_depth
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
hcaldqm::Container2D _cSummaryvsLS_FED
hcaldqm::filter::HashFilter _filter_FEDHF
DigiTask(edm::ParameterSet const &)
hcaldqm::ContainerProf1D _cOccupancyvsLS_Subdet
hcaldqm::ContainerProf1D _cSumQvsLS_SubdetPM
hcaldqm::ContainerXXX< uint32_t > _xUni
hcaldqm::ContainerProf1D _cTimingCutvsLS_FED
hcaldqm::Container2D _cOccupancyCut_FEDuTCA
hcaldqm::Container2D _cOccupancy_ElectronicsVME
void setCurrentFolder(const std::string &fullpath)
bool isFEDHBHE(HcalElectronicsId const &)
virtual void book(HcalElectronicsMap const *)
hcaldqm::Container1D _cDigiSize_FED
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::ContainerXXX< uint32_t > _xNChsNominal
hcaldqm::Container1D _cSumQ_SubdetPM
hcaldqm::Container1D _cOccupancyvsiphi_SubdetPM
int const DIGISIZE[SUBDET_NUM]
hcaldqm::ContainerProf1D _cTimingCutvsieta_Subdet
hcaldqm::electronicsmap::ElectronicsMap _dhashmap
std::vector< hcaldqm::flag::Flag > _vflags
virtual void setBinContent(HcalDetId const &, int) override
hcaldqm::Container2D _cOccupancyCut_ElectronicsuTCA
hcaldqm::ContainerProf2D _cTimingCut_ElectronicsVME
virtual STDTYPE & get(HcalDetId const &)
virtual void setLumiFlag()
std::vector< int > getFEDList(HcalElectronicsMap const *)
std::vector< int > getFEDuTCAList(HcalElectronicsMap const *)
virtual void fill(HcalDetId const &) override
hcaldqm::filter::HashFilter _filter_uTCA
virtual void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
bool isFEDHO(HcalElectronicsId const &)
std::vector< uint32_t > _vcdaqEids
hcaldqm::ContainerProf1D _cDigiSizevsLS_FED
hcaldqm::ContainerXXX< uint32_t > _xNChs
hcaldqm::electronicsmap::ElectronicsMap _ehashmap
hcaldqm::ContainerProf1D _cOccupancyCutvsLS_Subdet
virtual void initialize(hashfunctions::HashType, int debug=0)
virtual void initialize(FilterType ftype, HashType htype, std::vector< uint32_t > const &)
void setLumiFlag(void)
this ME is meant to be stored for each luminosity section
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="") override
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
HcalElectronicsMap const * _emap
std::vector< uint32_t > _vhashFEDs
hcaldqm::filter::HashFilter _filter_HF
virtual void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &)
virtual void _process(edm::Event const &, edm::EventSetup const &)
hcaldqm::Container1D _cOccupancyvsieta_Subdet
Readout chain identification for Hcal.
bool isFEDHF(HcalElectronicsId const &)
hcaldqm::ContainerProf2D _cTimingCut_ElectronicsuTCA
hcaldqm::Container1D _cTimingCut_SubdetPM
hcaldqm::Container2D _cOccupancy_FEDuTCA
hcaldqm::ContainerXXX< uint32_t > _xUniHF
double sumQ(DIGI const &digi, double ped, int i=0, int j=3)
hcaldqm::Container1D _cfC_SubdetPM
hcaldqm::Container2D _cOccupancy_ElectronicsuTCA