1 #include "../interface/DQWorkerClient.h"
45 for(
unsigned iS(0); iS < sourceNames.size(); iS++){
49 if(
onlineMode_ && params.getUntrackedParameter<
bool>(
"online"))
continue;
56 ss <<
name_ <<
": Using ";
57 for(MESetCollection::const_iterator sItr(
sources_.begin()); sItr !=
sources_.end(); ++sItr)
58 ss << sItr->first <<
" ";
69 for(MESetCollection::iterator sItr(
sources_.begin()); sItr !=
sources_.end(); ++sItr){
70 if(!sItr->second->getLumiFlag())
continue;
71 MESetChannel
const* channel(dynamic_cast<MESetChannel const*>(sItr->second));
72 if(channel) channel->checkDirectory();
94 for(MESetCollection::iterator sItr(
sources_.begin()); sItr !=
sources_.end(); ++sItr)
95 sItr->second->clear();
104 for(MESetCollection::iterator sItr(
sources_.begin()); sItr !=
sources_.end(); ++sItr){
105 if(_type ==
kLumi && !sItr->second->getLumiFlag())
continue;
107 if(!sItr->second->retrieve(_store, &failedPath)){
121 for(MESetCollection::iterator mItr(
MEs_.begin()); mItr !=
MEs_.end(); ++mItr){
122 MESet* meset(mItr->second);
154 bool isQuality(_threshold > 0.);
160 std::vector<DetId> cryIds;
167 if(cryIds.size() == 0)
return;
172 for(
unsigned iId(0); iId < cryIds.size(); ++iId){
176 if(
content == 5.) masked =
true;
194 if(nValid < 1.) tItr->setBinContent(masked ? 5. : 2.);
197 if(mean < _threshold) tItr->setBinContent(masked ? 3. : 0.);
198 else tItr->setBinContent(masked ? 4. : 1.);
202 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 const &, ProcessType)
virtual void releaseMEs()
ParameterSet getUntrackedParameterSet(std::string const &name, ParameterSet const &defaultValue) const
void bookMEs(DQMStore &) override
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.)
virtual void bookMEs(DQMStore &)
std::vector< std::string > getParameterNames() const
std::vector< DetId > constituentsOf(const EcalTrigTowerDetId &id) const
Get the constituent detids for this tower id.
unsigned towerId(DetId const &)
void releaseMEs() override
static void fillDescriptions(edm::ParameterSetDescription &_desc)
virtual void resetAll(double=0., double=0., double=0.)
void setSource(edm::ParameterSet const &) override
void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
virtual const_iterator end() const
std::vector< DetId > scConstituents(EcalScDetId const &)
MESet * createMESet(edm::ParameterSet const &)
void fillMESetDescriptions(edm::ParameterSetDescription &)