4 using namespace hcaldqm;
5 using namespace hcaldqm::constants;
37 _emap = dbs->getHcalMapping();
41 std::vector<uint32_t> vVME;
42 std::vector<uint32_t> vuTCA;
43 std::vector<uint32_t> vhashFEDsVME;
44 std::vector<uint32_t> vhashFEDsuTCA;
54 for (std::vector<int>::const_iterator it=vFEDsVME.begin();
55 it!=vFEDsVME.end(); ++it)
64 for (std::vector<int>::const_iterator it=vFEDsuTCA.begin();
65 it!=vFEDsuTCA.end(); ++it)
202 DQTask::_resetMonitors(uf);
227 int nbadq = creport->badQualityDigis();
238 for (std::vector<DetId>::const_iterator it=creport->bad_quality_begin();
239 it!=creport->bad_quality_end(); ++it)
315 if (r!=0 || !htr.
check())
326 bool qevn = (htr_evn!=evn);
327 bool qbcn = (htr_bcn!=bcn);
328 bool qorn = (htr_orn!=orn);
370 uint32_t bcn = hamc13->
bunchId();
373 int namc = hamc13->
NAMC();
375 for (
int iamc=0; iamc<namc; iamc++)
377 int slot = hamc13->
AMCSlot(iamc);
378 int crate = hamc13->
AMCId(iamc)&0xFF;
387 uint32_t uhtr_bcn = uhtr.bunchNumber();
388 uint32_t uhtr_orn = uhtr.orbitNumber();
389 bool qevn = (uhtr_evn!=evn);
390 bool qbcn = (uhtr_bcn!=bcn);
391 bool qorn = (uhtr_orn!=orn);
421 DQTask::beginLuminosityBlock(lb, es);
442 for (std::vector<uint32_t>::const_iterator it=
_vhashFEDs.begin();
448 std::vector<uint32_t>::const_iterator cit=
std::find(
453 for (uint32_t iflag=0; iflag<
_vflags.size(); iflag++)
488 for (std::vector<flag::Flag>::iterator ft=
_vflags.begin();
507 DQTask::endLuminosityBlock(lb, es);
T getUntrackedParameter(std::string const &, T const &) const
hcaldqm::Container2D _cSummaryvsLS_FED
auto_ptr< ClusterSequence > cs
virtual void initialize(std::string const &folder, Quantity *, Quantity *qy=new ValueQuantity(quantity::fN), int debug=0)
virtual bool exists(HcalDetId const &)
virtual void setBinContent(HcalDetId const &, int)
bool check() const
Check for a good event Requires a minimum length, matching wordcount and length, not an empty event...
std::pair< uint16_t, uint16_t > fed2crate(int fed)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void initialize(HcalElectronicsMap const *, ElectronicsMapType etype=fHcalElectronicsMap)
virtual void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &)
hcaldqm::electronicsmap::ElectronicsMap _ehashmap
#define DEFINE_FWK_MODULE(type)
hcaldqm::Container2D _cOrnMsm_ElectronicsuTCA
int bunchCrossing() const
hcaldqm::ContainerXXX< uint32_t > _xEvnMsmLS
virtual void _process(edm::Event const &, edm::EventSetup const &)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
unsigned int getOrbitNumber() const
Get the HTR orbit number.
size_t size() const
Lenght of the data buffer in bytes.
void bookHistograms(fwlite::EventContainer &eventCont)
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
std::vector< int > getFEDVMEList(HcalElectronicsMap const *)
hcaldqm::Container2D _cBadQuality_depth
uint32_t lookup(DetId const &)
virtual void fill(HcalDetId const &)
hcaldqm::ContainerSingle2D _cSummaryvsLS
hcaldqm::ContainerXXX< uint32_t > _xBcnMsmLS
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)
hcaldqm::filter::HashFilter _filter_FEDsuTCA
void dqmthrow(std::string const &msg) const
ContainerXXX< uint32_t > _xQuality
std::vector< uint32_t > _vhashFEDs
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
hcaldqm::ContainerXXX< uint32_t > _xOrnMsmLS
RawTask(edm::ParameterSet const &)
edm::EDGetTokenT< HcalUnpackerReport > _tokReport
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
edm::EDGetTokenT< FEDRawDataCollection > _tokFEDs
hcaldqm::Container2D _cBadQuality_FEDuTCA
hcaldqm::Container2D _cEvnMsm_ElectronicsuTCA
hcaldqm::filter::HashFilter _filter_uTCA
virtual void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
hcaldqm::ContainerXXX< uint32_t > _xBadQLS
bool isFEDHBHE(HcalElectronicsId const &)
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
virtual void book(HcalElectronicsMap const *)
hcaldqm::Container2D _cBadQuality_FEDVME
virtual void initialize(std::string const &folder, Quantity *, Quantity *, Quantity *qz=new ValueQuantity(quantity::fN), int debug=0)
virtual void _resetMonitors(hcaldqm::UpdateFreq)
hcaldqm::Container2D _cBcnMsm_ElectronicsVME
uint32_t l1ANumber() const
Get the HTR event number.
hcaldqm::filter::HashFilter _filter_FEDsVME
hcaldqm::ContainerSingleProf1D _cBadQualityvsLS
hcaldqm::Container2D _cOrnMsm_ElectronicsVME
std::vector< hcaldqm::flag::Flag > _vflags
hcaldqm::Container2D _cBcnMsm_ElectronicsuTCA
virtual STDTYPE & get(HcalDetId const &)
virtual void setLumiFlag()
hcaldqm::ContainerProf1D _cDataSizevsLS_FED
unsigned int getBunchNumber() const
Get the HTR bunch number.
std::vector< int > getFEDList(HcalElectronicsMap const *)
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
std::vector< int > getFEDuTCAList(HcalElectronicsMap const *)
virtual bool filter(HcalDetId const &) const
bool isFEDHO(HcalElectronicsId const &)
hcaldqm::filter::HashFilter _filter_VME
hcaldqm::ContainerSingleProf1D _cBadQualityvsBX
std::vector< uint32_t > _vcdaqEids
virtual void initialize(hashfunctions::HashType, int debug=0)
virtual void initialize(FilterType ftype, HashType htype, std::vector< uint32_t > const &)
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
virtual void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
unsigned int getL1ANumber() const
Get the HTR event number.
unsigned dccId(DetId const &)
hcaldqm::Container2D _cEvnMsm_ElectronicsVME
Readout chain identification for Hcal.
bool isFEDHF(HcalElectronicsId const &)
HcalElectronicsMap const * _emap