3 using namespace hcaldqm;
4 using namespace hcaldqm::constants;
28 _emap = dbs->getHcalMapping();
29 std::vector<uint32_t> vVME;
30 std::vector<uint32_t> vuTCA;
61 std::vector<uint32_t> vhashFEDsVME;
62 std::vector<uint32_t> vhashFEDsuTCA;
64 for (std::vector<int>::const_iterator it = vFEDsVME.begin(); it != vFEDsVME.end(); ++it) {
65 vhashFEDsVME.push_back(
74 for (std::vector<int>::const_iterator it = vFEDsuTCA.begin(); it != vFEDsuTCA.end(); ++it) {
76 vhashFEDsuTCA.push_back(
190 DQTask::_resetMonitors(uf);
216 int nbadq = creport->badQualityDigis();
227 for (std::vector<DetId>::const_iterator it = creport->bad_quality_begin(); it != creport->bad_quality_end(); ++it) {
291 if (r != 0 || !htr.
check())
300 bool qevn = (htr_evn != evn);
301 bool qbcn = (htr_bcn != bcn);
302 bool qorn = (htr_orn != orn);
331 uint32_t bcn = hamc13->
bunchId();
334 int namc = hamc13->
NAMC();
336 for (
int iamc = 0; iamc < namc; iamc++) {
337 int slot = hamc13->
AMCSlot(iamc);
338 int crate = hamc13->
AMCId(iamc) & 0xFF;
345 uint32_t uhtr_bcn = uhtr.bunchNumber();
346 uint32_t uhtr_orn = uhtr.orbitNumber();
347 bool qevn = (uhtr_evn != evn);
348 bool qbcn = (uhtr_bcn != bcn);
349 bool qorn = (uhtr_orn != orn);
376 return DQTask::globalBeginLuminosityBlock(lb, es);
383 auto lumiCache = luminosityBlockCache(lb.
index());
393 for (std::vector<uint32_t>::const_iterator it =
_vhashFEDs.begin(); it !=
_vhashFEDs.end(); ++it) {
400 for (uint32_t iflag = 0; iflag <
_vflags.size(); iflag++)
432 for (std::vector<flag::Flag>::iterator ft =
_vflags.begin(); ft !=
_vflags.end(); ++ft) {
451 DQTask::globalEndLuminosityBlock(lb, es);
void initialize(std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *, int debug=0) override
constexpr uint32_t rawId() const
void globalEndLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
T getUntrackedParameter(std::string const &, T const &) const
edm::ESGetToken< HcalDbService, HcalDbRecord > hcalDbServiceToken_
hcaldqm::Container2D _cSummaryvsLS_FED
virtual bool exists(HcalDetId const &)
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)
LuminosityBlockIndex index() const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void initialize(HcalElectronicsMap const *, ElectronicsMapType etype=fHcalElectronicsMap)
void _process(edm::Event const &, edm::EventSetup const &) override
hcaldqm::electronicsmap::ElectronicsMap _ehashmap
#define DEFINE_FWK_MODULE(type)
unique_ptr< ClusterSequence > cs
hcaldqm::Container2D _cOrnMsm_ElectronicsuTCA
int bunchCrossing() const
virtual void initialize(std::string const &folder, quantity::Quantity *, quantity::Quantity *, quantity::Quantity *qz=new quantity::ValueQuantity(quantity::fN), int debug=0)
void _resetMonitors(hcaldqm::UpdateFreq) override
void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="") override
hcaldqm::ContainerXXX< uint32_t > _xEvnMsmLS
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.
void initialize(std::string const &folder, quantity::Quantity *, quantity::Quantity *qy=new quantity::ValueQuantity(quantity::fN), int debug=0) override
size_t size() const
Lenght of the data buffer in bytes.
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
example_stream void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
std::vector< int > getFEDVMEList(HcalElectronicsMap const *)
hcaldqm::Container2D _cBadQuality_depth
uint32_t lookup(DetId const &)
hcaldqm::ContainerSingle2D _cSummaryvsLS
hcaldqm::ContainerXXX< uint32_t > _xBcnMsmLS
virtual void fill(uint32_t)
virtual void setBinContent(int, int, int)
hcaldqm::filter::HashFilter _filter_FEDsuTCA
constexpr bool isVMEid() const
void dqmthrow(std::string const &msg) const
ContainerXXX< uint32_t > _xQuality
std::vector< uint32_t > _vhashFEDs
int const FIBER_uTCA_MIN1
unsigned dccId(DetId const &, EcalElectronicsMapping const *)
hcaldqm::ContainerXXX< uint32_t > _xOrnMsmLS
RawTask(edm::ParameterSet const &)
LuminosityBlock const & getLuminosityBlock() const
UseScope< MonitorElementData::Scope::LUMI > UseLumiScope
edm::EDGetTokenT< HcalUnpackerReport > _tokReport
HcalElectronicsMap const * _emap
edm::EDGetTokenT< FEDRawDataCollection > _tokFEDs
hcaldqm::Container2D _cBadQuality_FEDuTCA
hcaldqm::Container2D _cEvnMsm_ElectronicsuTCA
hcaldqm::filter::HashFilter _filter_uTCA
hcaldqm::ContainerXXX< uint32_t > _xBadQLS
bool isFEDHBHE(HcalElectronicsId const &)
virtual void book(HcalElectronicsMap const *)
virtual void initialize(std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *, quantity::Quantity *qz=new quantity::ValueQuantity(quantity::fN), int debug=0)
void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="") override
uint32_t l1ANumber() const
Get the HTR event number.
hcaldqm::filter::HashFilter _filter_FEDsVME
void setBinContent(HcalDetId const &, int) override
hcaldqm::ContainerSingleProf1D _cBadQualityvsLS
std::vector< hcaldqm::flag::Flag > _vflags
hcaldqm::Container2D _cBcnMsm_ElectronicsuTCA
virtual STDTYPE & get(HcalDetId const &)
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 *)
void fill(HcalDetId const &) override
virtual bool filter(HcalDetId const &) const
virtual void initialize(FilterType ftype, hashfunctions::HashType htype, std::vector< uint32_t > const &)
bool isFEDHO(HcalElectronicsId const &)
hcaldqm::filter::HashFilter _filter_VME
hcaldqm::ContainerSingleProf1D _cBadQualityvsBX
std::vector< uint32_t > _vcdaqEids
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
std::shared_ptr< hcaldqm::Cache > globalBeginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) const override
virtual void initialize(hashfunctions::HashType, int debug=0)
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="") override
unsigned int getL1ANumber() const
Get the HTR event number.
Readout chain identification for Hcal.
bool isFEDHF(HcalElectronicsId const &)