1 #include "../interface/DQWorkerClient.h"
25 for(MESetCollection::iterator mItr(
MEs_.begin()); mItr !=
MEs_.end(); ++mItr){
26 if(mItr->second->getLumiFlag()){
52 for(
unsigned iS(0); iS < sourceNames.size(); iS++){
56 if(
onlineMode_ && params.getUntrackedParameter<
bool>(
"online"))
continue;
63 ss <<
name_ <<
": Using ";
64 for(MESetCollection::const_iterator sItr(
sources_.begin()); sItr !=
sources_.end(); ++sItr)
65 ss << sItr->first <<
" ";
76 for(MESetCollection::iterator sItr(
sources_.begin()); sItr !=
sources_.end(); ++sItr){
77 if(!sItr->second->getLumiFlag())
continue;
78 MESetChannel
const* channel(dynamic_cast<MESetChannel const*>(sItr->second));
79 if(channel) channel->checkDirectory();
101 for(MESetCollection::iterator sItr(
sources_.begin()); sItr !=
sources_.end(); ++sItr)
102 sItr->second->clear();
109 for(MESetCollection::iterator sItr(
sources_.begin()); sItr !=
sources_.end(); ++sItr){
110 if(!
onlineMode_ && _type ==
kLumi && !sItr->second->getLumiFlag())
continue;
112 if(!sItr->second->retrieve(_igetter, &failedPath)){
124 for(MESetCollection::iterator mItr(
MEs_.begin()); mItr !=
MEs_.end(); ++mItr){
125 MESet* meset(mItr->second);
157 bool isQuality(_threshold > 0.);
163 std::vector<DetId> cryIds;
170 if(cryIds.size() == 0)
return;
175 for(
unsigned iId(0); iId < cryIds.size(); ++iId){
179 if(
content == 5.) masked =
true;
197 if(nValid < 1.) tItr->setBinContent(masked ? 5. : 2.);
200 if(mean < _threshold) tItr->setBinContent(masked ? 3. : 0.);
201 else tItr->setBinContent(masked ? 4. : 1.);
205 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 &)
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 bookMEs(DQMStore::IBooker &) override
void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
virtual const_iterator end() const
std::vector< DetId > scConstituents(EcalScDetId const &)
volatile std::atomic< bool > shutdown_flag false
MESet * createMESet(edm::ParameterSet const &)
void fillMESetDescriptions(edm::ParameterSetDescription &)