|
|
Go to the documentation of this file.
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();
103 if (!sItr->second->retrieve(_igetter, &failedPath)) {
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.);
166 std::vector<DetId> cryIds;
179 for (
unsigned iId(0); iId < cryIds.size(); ++iId) {
202 tItr->setBinContent(masked ? 5. : 2.);
205 if (
mean < _threshold)
206 tItr->setBinContent(masked ? 3. : 0.);
208 tItr->setBinContent(masked ? 4. : 1.);
211 tItr->setBinContent(nValid < 1. ? 0. :
mean / nValid);
void setSource(edm::ParameterSet const &) override
void setME(edm::ParameterSet const &_ps) final
bool retrieveSource(DQMStore::IGetter &, ProcessType)
static void fillDescriptions(edm::ParameterSetDescription &)
MESetColletionType::const_iterator const_iterator
void fillMESetDescriptions(edm::ParameterSetDescription &)
virtual const_iterator end() const
void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
virtual void bookMEs(DQMStore::IBooker &)
Log< level::Info, false > LogInfo
void bookMEs(DQMStore::IBooker &) override
Log< level::Warning, false > LogWarning
virtual void releaseMEs()
virtual double getBinContent(DetId const &, int=0) const
std::set< std::string > qualitySummaries_
static void fillDescriptions(edm::ParameterSetDescription &_desc)
const_iterator & toNextChannel()
ParameterWildcardBase * addWildcardUntracked(U const &pattern)
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
void insert(const std::string &key, MESet *ptr)
const EcalTrigTowerConstituentsMap * getTrigTowerMap()
virtual void setME(edm::ParameterSet const &)
std::vector< DetId > scConstituents(EcalScDetId const &)
unsigned towerId(DetId const &)
std::vector< DetId > constituentsOf(const EcalTrigTowerDetId &id) const
Get the constituent detids for this tower id.
MESet * createMESet(edm::ParameterSet const &)
void towerAverage_(MESet &, MESet const &, float)
void releaseMEs() override
virtual const_iterator beginChannel() const
MESetColletionType::iterator iterator