1 #include "../interface/TowerStatusTask.h"
47 throw cms::Exception(
"InvalidConfiguration") <<
"Nothing to do in TowerStatusTask";
60 if(daqHndl->barrel(
id).getStatusCode() != 0){
66 if(daqHndl->endcap(
id).getStatusCode() != 0){
68 unsigned dccid(
dccId(scid));
84 if(dcsHndl->barrel(
id).getStatusCode() != 0){
90 if(dcsHndl->endcap(
id).getStatusCode() != 0){
92 unsigned dccid(
dccId(scid));
113 MESet* meSummaryMap(0);
114 MESet* meContents(0);
115 meSummary = &
MEs_.at(_type +
"Summary");
116 meSummaryMap = &
MEs_.at(_type +
"SummaryMap");
117 meContents = &
MEs_.at(_type +
"Contents");
119 meSummary->
reset(-1.);
121 meSummaryMap->
reset();
122 meContents->
reset(-1.);
124 float totalFraction(0.);
125 for(
int iDCC(0); iDCC <
nDCC; iDCC++){
127 meContents->
fill(iDCC + 1, _status[iDCC]);
128 totalFraction += _status[iDCC] /
nCrystals(iDCC + 1);
131 meSummary->
fill(totalFraction);
T getUntrackedParameter(std::string const &, T const &) const
static EcalTrigTowerDetId detIdFromDenseIndex(uint32_t di)
static EcalScDetId unhashIndex(int hi)
virtual void setBinContent(DetId const &, double)
DEFINE_ECALDQM_WORKER(CalibrationSummaryClient)
void producePlots(ProcessType) override
void producePlotsTask_(float const *, std::string const &)
void setParams(edm::ParameterSet const &) override
unsigned nCrystals(unsigned)
virtual void reset(double=0., double=0., double=0.)
void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
virtual void fill(DetId const &, double=1., double=1., double=1.)
virtual void resetAll(double=0., double=0., double=0.)
std::vector< DetId > scConstituents(EcalScDetId const &)
volatile std::atomic< bool > shutdown_flag false
unsigned dccId(DetId const &)
tuple size
Write out results.