1 #include "../interface/DQWorkerClient.h" 50 for(MESetCollection::iterator mItr(
MEs_.begin()); mItr !=
MEs_.end(); ++mItr){
51 if(mItr->second->getLumiFlag()){
65 for(
unsigned iS(0); iS < sourceNames.size(); iS++){
69 if(
onlineMode_ && params.getUntrackedParameter<
bool>(
"online"))
continue;
76 ss <<
name_ <<
": Using ";
77 for(MESetCollection::const_iterator sItr(
sources_.begin()); sItr !=
sources_.end(); ++sItr)
78 ss << sItr->first <<
" ";
89 for(MESetCollection::iterator sItr(
sources_.begin()); sItr !=
sources_.end(); ++sItr){
90 if(!sItr->second->getLumiFlag())
continue;
91 MESetChannel
const* channel(dynamic_cast<MESetChannel const*>(sItr->second));
92 if(channel) channel->checkDirectory();
114 for(MESetCollection::iterator sItr(
sources_.begin()); sItr !=
sources_.end(); ++sItr)
115 sItr->second->clear();
122 for(MESetCollection::iterator sItr(
sources_.begin()); sItr !=
sources_.end(); ++sItr){
123 if(!
onlineMode_ && _type ==
kLumi && !sItr->second->getLumiFlag())
continue;
125 if(!sItr->second->retrieve(_igetter, &failedPath)){
137 for(MESetCollection::iterator mItr(
MEs_.begin()); mItr !=
MEs_.end(); ++mItr){
138 MESet* meset(mItr->second);
175 bool isQuality(_threshold > 0.);
181 std::vector<DetId> cryIds;
188 if(cryIds.size() == 0)
return;
193 for(
unsigned iId(0); iId < cryIds.size(); ++iId){
197 if(
content == 5.) masked =
true;
215 if(nValid < 1.) tItr->setBinContent(masked ? 5. : 2.);
218 if(mean < _threshold) tItr->setBinContent(masked ? 3. : 0.);
219 else tItr->setBinContent(masked ? 4. : 1.);
223 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 &)