4 using namespace hcaldqm;
5 using namespace hcaldqm::constants;
38 _emap = dbs->getHcalMapping();
40 std::vector<uint32_t> vVME;
41 std::vector<uint32_t> vuTCA;
47 std::vector<uint32_t> vhashHF;
209 "OccupancyCutvsiphi",
215 "OccupancyCutvsieta",
227 "OccupancyCutvsiphivsLS",
248 for (std::vector<int>::const_iterator it = vFEDsVME.begin(); it != vFEDsVME.end(); ++it)
250 for (std::vector<int>::const_iterator it = vFEDsuTCA.begin(); it != vFEDsuTCA.end(); ++it) {
329 sprintf(cutstr2,
"_EHF%d",
int(
_cutE_HF));
387 std::vector<uint32_t> vhashFEDHF;
423 DQTask::_resetMonitors(uf);
453 uint32_t rawidValid = 0;
454 uint32_t rawidHBValid = 0;
455 uint32_t rawidHEValid = 0;
466 double energy = it->energy();
467 double timing = it->time();
482 rawidValid = did.
rawId();
484 rawidHBValid = did.
rawId();
486 rawidHEValid = did.
rawId();
492 : did.
ieta() > 0 ? ehep += energy
569 if (rawidHBValid != 0 && rawidHEValid != 0) {
591 double energy = it->energy();
592 double timing = it->time();
604 rawidValid = did.
rawId();
609 did.
ieta() > 0 ? ehop += energy : ehom +=
energy;
662 if (rawidValid != 0) {
680 double energy = it->energy();
681 double timing = it->time();
693 rawidValid = did.
rawId();
698 did.
ieta() > 0 ? ehfp += energy : ehfm +=
energy;
755 if (rawidValid != 0) {
772 std::pair<float, bool> chargeAsymmetry = it->chargeAsymmetry(0.);
773 std::pair<float, bool> chargeAsymmetryCut = it->chargeAsymmetry(20.);
775 if (chargeAsymmetry.second) {
778 if (chargeAsymmetryCut.second) {
788 return DQTask::globalBeginLuminosityBlock(lb, es);
795 auto lumiCache = luminosityBlockCache(lb.
index());
806 uint32_t hash1 = it->first;
808 double x1 = it->second;
813 double x2 = jt->second;
822 for (std::vector<uint32_t>::const_iterator it =
_vhashFEDs.begin(); it !=
_vhashFEDs.end(); ++it) {
829 for (uint32_t iflag = 0; iflag <
_vflags.size(); iflag++)
849 for (std::vector<flag::Flag>::iterator ft =
_vflags.begin(); ft !=
_vflags.end(); ++ft) {
864 DQTask::globalEndLuminosityBlock(lb, es);
void initialize(std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *, int debug=0) override
hcaldqm::ContainerXXX< uint32_t > _xUniHF
constexpr uint32_t rawId() const
T getUntrackedParameter(std::string const &, T const &) const
hcaldqm::Container2D _cOccupancyCut_depth
hcaldqm::Container2D _cSummaryvsLS_FED
std::vector< uint32_t > _vhashFEDs
hcaldqm::ContainerProf1D _cOccupancyvsLS_Subdet
edm::EDGetTokenT< HBHERecHitCollection > _tokHBHE
hcaldqm::ContainerProf2D _cEnergy_depth
virtual void initialize(std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *qy=new quantity::ValueQuantity(quantity::fN), int debug=0)
hcaldqm::Container2D _cTimingvsEnergy_SubdetPM
void fill(HcalDetId const &) override
std::pair< uint16_t, uint16_t > fed2crate(int fed)
LuminosityBlockIndex index() const
virtual void setCurrentFolder(std::string const &fullpath)
edm::EDGetTokenT< HFRecHitCollection > _tokHF
hcaldqm::ContainerXXX< uint32_t > _xUni
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void initialize(HcalElectronicsMap const *, ElectronicsMapType etype=fHcalElectronicsMap)
void _resetMonitors(hcaldqm::UpdateFreq) override
hcaldqm::Container1D _cOccupancyCutvsiphi_SubdetPM
#define DEFINE_FWK_MODULE(type)
hcaldqm::ContainerProf1D _cEnergyvsieta_Subdet
hcaldqm::ContainerProf1D _cEnergyvsiphi_SubdetPM
hcaldqm::Container2D _cOccupancyCutvsiphivsLS_SubdetPM
std::vector< HcalGenericDetId > _gids
virtual CompactMap::const_iterator begin()
constexpr uint32_t rawId() const
get the raw id
std::vector< T >::const_iterator const_iterator
hcaldqm::Container1D _cTimingCut_SubdetPM
int bunchCrossing() const
RecHitTask(edm::ParameterSet const &)
virtual void initialize(std::string const &folder, quantity::Quantity *, quantity::Quantity *, quantity::Quantity *qz=new quantity::ValueQuantity(quantity::fN), int debug=0)
void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="") override
void globalEndLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
hcaldqm::ContainerProf1D _cTimingCutvsieta_Subdet
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
hcaldqm::ContainerProf1D _cEnergyvsBX_SubdetPM
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::ContainerProf2D _cTimingCut_ElectronicsuTCA
virtual CompactMap::const_iterator end()
constexpr bool isUTCAid() const
uint32_t lookup(DetId const &)
std::vector< hcaldqm::flag::Flag > _vflags
constexpr HcalSubdetector subdet() const
get the subdetector
MonitorElement * book1DD(TString const &name, TString const &title, int nchX, double lowX, double highX, FUNC onbooking=NOOP())
virtual void fill(uint32_t)
hcaldqm::Container1D _cEnergy_Subdet
hcaldqm::ContainerProf1D _cTimingCutvsLS_FED
hcaldqm::ContainerProf1D _cTimingCutvsLS_SubdetPM
hcaldqm::Container2D _cOccupancyCut_ElectronicsuTCA
virtual void setBinContent(int, int, int)
hcaldqm::ContainerProf1D _cOccupancyCutvsBX_Subdet
constexpr bool isVMEid() const
void dqmthrow(std::string const &msg) const
int const FIBER_uTCA_MIN1
constexpr int ieta() const
get the cell ieta
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
hash_function_did const hash_did[nHashType_did]
std::vector< HcalGenericDetId > allPrecisionId() const
LuminosityBlock const & getLuminosityBlock() const
hcaldqm::Container2D _cOccupancyCut_FEDuTCA
hcaldqm::electronicsmap::ElectronicsMap _ehashmap
MonitorElement * meUnknownIds1LS
UseScope< MonitorElementData::Scope::LUMI > UseLumiScope
edm::EDGetTokenT< HFPreRecHitCollection > _tokPreHF
HcalElectronicsMap const * _emap
hcaldqm::ContainerSingle2D _cSummaryvsLS
hcaldqm::Container2D _cOccupancy_ElectronicsuTCA
virtual void book(HcalElectronicsMap const *)
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
hcaldqm::filter::HashFilter _filter_HF
virtual void initialize(std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *, quantity::Quantity *qz=new quantity::ValueQuantity(quantity::fN), int debug=0)
hcaldqm::Container2D _cOccupancy_FEDuTCA
void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="") override
edm::ESGetToken< HcalDbService, HcalDbRecord > hcalDbServiceToken_
void initialize(std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *, quantity::Quantity *qz=new quantity::ValueQuantity(quantity::fEnergy), int debug=0) override
hcaldqm::Container2D _cDAAsymmetryVsCharge_SubdetPM
void setBinContent(HcalDetId const &, int) override
hcaldqm::Container1D _cTimingCut_HBHEPartition
hcaldqm::filter::HashFilter _filter_uTCA
hcaldqm::ContainerProf1D _cOccupancyCutvsLS_Subdet
virtual STDTYPE & get(HcalDetId const &)
hcaldqm::Container1D _cOccupancyvsieta_Subdet
std::vector< int > getFEDList(HcalElectronicsMap const *)
std::vector< int > getFEDuTCAList(HcalElectronicsMap const *)
void fill(HcalDetId const &) override
virtual bool filter(HcalDetId const &) const
bool _hfPreRecHitsAvailable
virtual void initialize(FilterType ftype, hashfunctions::HashType htype, std::vector< uint32_t > const &)
hcaldqm::ContainerProf1D _cTimingCutvsBX_SubdetPM
edm::EDGetTokenT< HORecHitCollection > _tokHO
std::vector< uint32_t > _vcdaqEids
void _process(edm::Event const &, edm::EventSetup const &) override
hcaldqm::ContainerProf2D _cTimingCut_FEDuTCA
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
hcaldqm::Container2D _cOccupancy_depth
hcaldqm::ContainerProf2D _cDAAsymmetryMean_cut_depth
hcaldqm::ContainerProf1D _cTimingCutvsiphi_SubdetPM
hcaldqm::ContainerProf2D _cTimingCut_depth
Readout chain identification for Hcal.
std::shared_ptr< hcaldqm::Cache > globalBeginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) const override
hcaldqm::filter::HashFilter _filter_VME
hcaldqm::Container1D _cOccupancyCutvsieta_Subdet
bool isFEDHF(HcalElectronicsId const &)
hcaldqm::Container1D _cOccupancyvsiphi_SubdetPM
hcaldqm::Container1D _cDAAsymmetry_cut_SubdetPM
hcaldqm::ContainerProf1D _cEnergyvsLS_SubdetPM