18 :
DQWorker(), sources_(), qualitySummaries_(), hasLumiPlots_(
false), statusManager_(nullptr) {}
28 sourceParameters.addNode(
39 for (
auto& mItr :
MEs_) {
40 if (mItr.second->getLumiFlag()) {
50 for (
unsigned iS(0); iS < sourceNames.size(); iS++) {
62 ss <<
name_ <<
": Using ";
64 ss << sItr->first <<
" ";
74 if(!sItr->second->getLumiFlag())
continue;
75 MESetChannel
const* channel(dynamic_cast<MESetChannel const*>(sItr->second));
76 if(channel) channel->checkDirectory();
93 sItr->second->clear();
105 edm::LogWarning(
"EcalDQM") <<
name_ <<
": Could not find source " << sItr->first <<
"@" << failedPath;
114 for (
auto& mItr :
MEs_) {
115 MESet* meset(mItr.second.get());
135 meset->resetAll(-1.);
146 for (
auto const& meset :
MEs_) {
148 while (
auto me = meset.second->getME(i)) {
149 if (
me->getLumiFlag()) {
160 bool isQuality(_threshold > 0.);
167 std::vector<DetId> cryIds;
180 for (
unsigned iId(0); iId < cryIds.size(); ++iId) {
203 tItr->setBinContent(masked ? 5. : 2.);
206 if (mean < _threshold)
207 tItr->setBinContent(masked ? 3. : 0.);
209 tItr->setBinContent(masked ? 4. : 1.);
212 tItr->setBinContent(nValid < 1. ? 0. : mean / nValid);
MonitorElement::Kind getKind() const
void towerAverage_(MESet &, MESet const &, float)
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
virtual double getBinContent(EcalDQMSetupObjects const, DetId const &, int=0) const
const_iterator & toNextChannel(EcalElectronicsMapping const *electronicsMap)
void insert(const std::string &key, MESet *ptr)
bool retrieveSource(DQMStore::IGetter &, ProcessType)
virtual void releaseMEs()
ParameterSet getUntrackedParameterSet(std::string const &name, ParameterSet const &defaultValue) const
unsigned getMultiplicity() const
ParameterWildcardBase * addWildcardUntracked(U const &pattern)
virtual const_iterator beginChannel(EcalElectronicsMapping const *electronicsMap) const
EcalTrigTowerConstituentsMap const * GetTrigTowerMap()
std::set< std::string > qualitySummaries_
static void fillDescriptions(edm::ParameterSetDescription &)
unsigned towerId(DetId const &, EcalElectronicsMapping const *)
void resetAll(double=0., double=0., double=0.) override
MESetColletionType::const_iterator const_iterator
std::vector< std::string > getParameterNames() const
virtual void bookMEs(DQMStore::IBooker &)
std::vector< DetId > constituentsOf(const EcalTrigTowerDetId &id) const
Get the constituent detids for this tower id.
MESetColletionType::iterator iterator
Log< level::Info, false > LogInfo
EcalDQMSetupObjects const getEcalDQMSetupObjects()
virtual void setME(edm::ParameterSet const &)
void releaseMEs() override
static void fillDescriptions(edm::ParameterSetDescription &_desc)
void setSource(edm::ParameterSet const &) override
void reset(EcalElectronicsMapping const *, double=0., double=0., double=0.) override
void bookMEs(DQMStore::IBooker &) override
void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
EcalElectronicsMapping const * GetElectronicsMap()
std::vector< DetId > scConstituents(EcalScDetId const &)
void setME(edm::ParameterSet const &_ps) final
virtual const_iterator end(EcalElectronicsMapping const *electronicsMap) const
Log< level::Warning, false > LogWarning
MESet * createMESet(edm::ParameterSet const &)
void fillMESetDescriptions(edm::ParameterSetDescription &)