30 }
else if (doDCSInfo_) {
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)
T getUntrackedParameter(std::string const &, T const &) const
static EcalTrigTowerDetId detIdFromDenseIndex(uint32_t di)
const Item & endcap(size_t hashedIndex) const
#define DEFINE_ECALDQM_WORKER(TYPE)
edm::ESGetToken< EcalDAQTowerStatus, EcalDAQTowerStatusRcd > daqHndlToken
MESet & at(const std::string &key)
edm::ESGetToken< EcalDCSTowerStatus, EcalDCSTowerStatusRcd > dcsHndlToken
static EcalScDetId unhashIndex(int hi)
void producePlots(ProcessType) override
void producePlotsTask_(float const *, std::string const &)
void setTokens(edm::ConsumesCollector &) override
void setParams(edm::ParameterSet const &) override
bool getData(T &iHolder) const
unsigned nCrystals(unsigned)
unsigned dccId(DetId const &, EcalElectronicsMapping const *)
virtual void fill(EcalDQMSetupObjects const, DetId const &, double=1., double=1., double=1.)
void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
EcalDQMSetupObjects const getEcalDQMSetupObjects()
virtual void resetAll(double=0., double=0., double=0.)
const Item & barrel(size_t hashedIndex) const
EcalElectronicsMapping const * GetElectronicsMap()
std::vector< DetId > scConstituents(EcalScDetId const &)
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Log< level::Warning, false > LogWarning
virtual void reset(EcalElectronicsMapping const *, double=0., double=0., double=0.)
tuple size
Write out results.
void erase(const std::string &key)