18 :
DQWorker(), sources_(), qualitySummaries_(), hasLumiPlots_(
false), statusManager_(nullptr) {}
28 sourceParameters.addNode(
39 for (
auto& mItr :
MEs_) {
40 if (mItr.second->getLumiFlag()) {
48 std::vector<std::string>
const& sourceNames(
_params.getParameterNames());
50 for (
unsigned iS(0); iS < sourceNames.size(); iS++) {
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());
125 for (
unsigned iS(0); iS <
multi->getMultiplicity(); ++iS) {
128 multi->resetAll(-1.);
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);
virtual const_iterator end(EcalElectronicsMapping const *electronicsMap) const
virtual const_iterator beginChannel(EcalElectronicsMapping const *electronicsMap) const
void towerAverage_(MESet &, MESet const &, float)
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
std::vector< DetId > constituentsOf(const EcalTrigTowerDetId &id) const
Get the constituent detids for this tower id.
const_iterator & toNextChannel(EcalElectronicsMapping const *electronicsMap)
void insert(const std::string &key, MESet *ptr)
bool retrieveSource(DQMStore::IGetter &, ProcessType)
virtual void releaseMEs()
ParameterWildcardBase * addWildcardUntracked(U const &pattern)
static constexpr int kUnknown
virtual double getBinContent(EcalDQMSetupObjects const, DetId const &, int=0) const
std::set< std::string > qualitySummaries_
static void fillDescriptions(edm::ParameterSetDescription &)
unsigned towerId(DetId const &, EcalElectronicsMapping const *)
MESetColletionType::const_iterator const_iterator
virtual void bookMEs(DQMStore::IBooker &)
MESetColletionType::iterator iterator
Log< level::Info, false > LogInfo
EcalElectronicsMapping const * GetElectronicsMap()
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 bookMEs(DQMStore::IBooker &) override
void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
std::vector< DetId > scConstituents(EcalScDetId const &)
void setME(edm::ParameterSet const &_ps) final
EcalTrigTowerConstituentsMap const * GetTrigTowerMap()
Log< level::Warning, false > LogWarning
MESet * createMESet(edm::ParameterSet const &)
void fillMESetDescriptions(edm::ParameterSetDescription &)