28 sourceParameters.addNode(
39 for (MESetCollection::iterator mItr(
MEs_.begin()); mItr !=
MEs_.end(); ++mItr) {
40 if (mItr->second->getLumiFlag()) {
50 for (
unsigned iS(0); iS < sourceNames.size(); iS++) {
62 ss <<
name_ <<
": Using ";
63 for (MESetCollection::const_iterator sItr(
sources_.begin()); sItr !=
sources_.end(); ++sItr)
64 ss << sItr->first <<
" ";
73 for(MESetCollection::iterator sItr(
sources_.begin()); sItr !=
sources_.end(); ++sItr){
74 if(!sItr->second->getLumiFlag())
continue;
75 MESetChannel
const* channel(dynamic_cast<MESetChannel const*>(sItr->second));
76 if(channel) channel->checkDirectory();
92 for (MESetCollection::iterator sItr(
sources_.begin()); sItr !=
sources_.end(); ++sItr)
93 sItr->second->clear();
98 for (MESetCollection::iterator sItr(
sources_.begin()); sItr !=
sources_.end(); ++sItr) {
103 if (!sItr->second->retrieve(_igetter, &failedPath)) {
105 edm::LogWarning(
"EcalDQM") <<
name_ <<
": Could not find source " << sItr->first <<
"@" << failedPath;
114 for (MESetCollection::iterator mItr(
MEs_.begin()); mItr !=
MEs_.end(); ++mItr) {
115 MESet* meset(mItr->second);
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);
MonitorElement::Kind getKind() const
void towerAverage_(MESet &, MESet const &, float)
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
void reset(double=0., double=0., double=0.) override
bool retrieveSource(DQMStore::IGetter &, ProcessType)
virtual void releaseMEs()
ParameterSet getUntrackedParameterSet(std::string const &name, ParameterSet const &defaultValue) const
const_iterator & toNextChannel()
unsigned getMultiplicity() const
ParameterWildcardBase * addWildcardUntracked(U const &pattern)
std::set< std::string > qualitySummaries_
virtual double getBinContent(DetId const &, int=0) const
static void fillDescriptions(edm::ParameterSetDescription &)
EcalTrigTowerConstituentsMap const * getTrigTowerMap()
void resetAll(double=0., double=0., double=0.) override
virtual const_iterator beginChannel() const
virtual void reset(double=0., double=0., double=0.)
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.
unsigned towerId(DetId const &)
virtual void setME(edm::ParameterSet const &)
void releaseMEs() override
static void fillDescriptions(edm::ParameterSetDescription &_desc)
binning::BinningType getBinType() const
virtual void resetAll(double=0., double=0., double=0.)
void setSource(edm::ParameterSet const &) override
void bookMEs(DQMStore::IBooker &) override
void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
virtual const_iterator end() const
std::vector< DetId > scConstituents(EcalScDetId const &)
void setME(edm::ParameterSet const &_ps) final
MESet * createMESet(edm::ParameterSet const &)
void fillMESetDescriptions(edm::ParameterSetDescription &)