35 throw cms::Exception(
"InvalidConfiguration") <<
"Nothing to do in TowerStatusTask";
49 if (daqhandle.isValid()) {
51 if (daqHndl->
barrel(
id).getStatusCode() != 0) {
57 if (daqHndl->
endcap(
id).getStatusCode() != 0) {
72 if (dcshandle.isValid()) {
74 if (dcsHndl->
barrel(
id).getStatusCode() != 0) {
80 if (dcsHndl->
endcap(
id).getStatusCode() != 0) {
99 MESet* meSummary(
nullptr);
100 MESet* meSummaryMap(
nullptr);
101 MESet* meContents(
nullptr);
102 meSummary = &
MEs_.
at(_type +
"Summary");
103 meSummaryMap = &
MEs_.
at(_type +
"SummaryMap");
104 meContents = &
MEs_.
at(_type +
"Contents");
111 float totalFraction(0.);
112 for (
int iDCC(0); iDCC <
nDCC; iDCC++) {
115 totalFraction += _status[iDCC] /
nCrystals(iDCC + 1);
virtual void setBinContent(EcalDQMSetupObjects const, DetId const &, double)
static EcalTrigTowerDetId detIdFromDenseIndex(uint32_t di)
#define DEFINE_ECALDQM_WORKER(TYPE)
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
edm::ESGetToken< EcalDAQTowerStatus, EcalDAQTowerStatusRcd > daqHndlToken
MESet & at(const std::string &key)
edm::ESGetToken< EcalDCSTowerStatus, EcalDCSTowerStatusRcd > dcsHndlToken
static EcalScDetId unhashIndex(int hi)
const Item & barrel(size_t hashedIndex) const
void producePlots(ProcessType) override
void producePlotsTask_(float const *, std::string const &)
void setTokens(edm::ConsumesCollector &) override
void setParams(edm::ParameterSet const &) override
unsigned nCrystals(unsigned)
unsigned dccId(DetId const &, EcalElectronicsMapping const *)
virtual void fill(EcalDQMSetupObjects const, DetId const &, double=1., double=1., double=1.)
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
EcalElectronicsMapping const * GetElectronicsMap()
EcalDQMSetupObjects const getEcalDQMSetupObjects()
virtual void resetAll(double=0., double=0., double=0.)
const Item & endcap(size_t hashedIndex) const
std::vector< DetId > scConstituents(EcalScDetId const &)
Log< level::Warning, false > LogWarning
virtual void reset(EcalElectronicsMapping const *, double=0., double=0., double=0.)
void erase(const std::string &key)