Go to the documentation of this file.
40 throw cms::Exception(
"InvalidConfiguration") <<
"Nothing to do in TowerStatusTask";
51 if (daqHndl->
barrel(
id).getStatusCode() != 0) {
57 if (daqHndl->
endcap(
id).getStatusCode() != 0) {
59 unsigned dccid(
dccId(scid));
74 if (dcsHndl->
barrel(
id).getStatusCode() != 0) {
80 if (dcsHndl->
endcap(
id).getStatusCode() != 0) {
82 unsigned dccid(
dccId(scid));
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");
106 meSummary->
reset(-1.);
108 meSummaryMap->
reset();
109 meContents->
reset(-1.);
111 float totalFraction(0.);
112 for (
int iDCC(0); iDCC <
nDCC; iDCC++) {
114 meContents->
fill(iDCC + 1, _status[iDCC]);
115 totalFraction += _status[iDCC] /
nCrystals(iDCC + 1);
118 meSummary->
fill(totalFraction);
const Item & endcap(size_t hashedIndex) const
void producePlots(ProcessType) override
static EcalScDetId unhashIndex(int hi)
void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
Log< level::Warning, false > LogWarning
virtual void fill(DetId const &, double=1., double=1., double=1.)
unsigned nCrystals(unsigned)
MESet & at(const std::string &key)
void erase(const std::string &key)
virtual void reset(double=0., double=0., double=0.)
std::vector< DetId > scConstituents(EcalScDetId const &)
virtual void setBinContent(DetId const &, double)
const Item & barrel(size_t hashedIndex) const
static EcalTrigTowerDetId detIdFromDenseIndex(uint32_t di)
#define DEFINE_ECALDQM_WORKER(TYPE)
virtual void resetAll(double=0., double=0., double=0.)
void setParams(edm::ParameterSet const &) override
void producePlotsTask_(float const *, std::string const &)
unsigned dccId(DetId const &)