27 using namespace ecaldqm;
36 evaluateTime_(_ps.getUntrackedParameter<bool>(
"evaluateTime")),
37 allowMissingCollections_(_ps.getUntrackedParameter<bool>(
"allowMissingCollections"))
46 std::multimap<Collections, Collections> dependencies;
48 for(vector<string>::iterator tItr(taskNames.begin()); tItr != taskNames.end(); ++tItr){
49 if (!(factory = SetWorker::findFactory(*tItr)))
continue;
53 DQWorker* worker(factory(taskParams, mePaths.getUntrackedParameterSet(*tItr)));
65 const std::vector<std::pair<Collections, Collections> >& dep(task->
getDependencies());
66 for(std::vector<std::pair<Collections, Collections> >::const_iterator depItr(dep.begin()); depItr != dep.end(); ++depItr)
67 dependencies.insert(*depItr);
72 std::vector<Collections> usedCollections;
81 for(vector<DQWorkerTask*>::iterator wItr(
workers_.begin()); wItr !=
workers_.end(); ++wItr){
82 if((*wItr)->runsOn(iCol)){
98 for(
unsigned iCol(0); iCol <
schedule_.size(); iCol++)
106 for(std::vector<DQWorkerTask *>::iterator wItr(
workers_.begin()); wItr !=
workers_.end(); ++wItr)
132 for(std::vector<DQWorkerTask*>::iterator wItr(
workers_.begin()); wItr !=
workers_.end(); ++wItr){
150 for(vector<DQWorkerTask *>::iterator wItr(
workers_.begin()); wItr !=
workers_.end(); ++wItr){
158 ss <<
"************** " <<
moduleName_ <<
" **************" << endl;
159 ss <<
" Mean time consumption of the modules" << endl;
160 ss <<
"____________________________________" << endl;
161 for(std::vector<DQWorkerTask *>::iterator wItr(
workers_.begin()); wItr !=
workers_.end(); ++wItr){
172 for(std::vector<DQWorkerTask *>::iterator wItr(
workers_.begin()); wItr !=
workers_.end(); ++wItr){
181 for(std::vector<DQWorkerTask *>::iterator wItr(
workers_.begin()); wItr !=
workers_.end(); ++wItr){
191 using namespace ecaldqm;
200 std::vector<short>
runType(54, -1);
202 runType[dcchItr->id() - 1] = dcchItr->getRunType();
205 bool atLeastOne(
false);
210 for(vector<DQWorkerTask*>::iterator wItr(
workers_.begin()); wItr !=
workers_.end(); ++wItr){
229 if(!atLeastOne)
return;
232 for(
unsigned iSch(0); iSch <
schedule_.size(); iSch++){
238 for(vector<DQWorkerTask *>::iterator wItr(
workers_.begin()); wItr !=
workers_.end(); ++wItr){
T getUntrackedParameter(std::string const &, T const &) const
std::vector< ecaldqm::DQWorkerTask * > workers_
std::map< ecaldqm::DQWorkerTask *, bool > enabled_
void setTrigTowerMap(const EcalTrigTowerConstituentsMap *)
virtual void endEvent(const edm::Event &, const edm::EventSetup &)
void endLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &)
std::vector< T >::const_iterator const_iterator
EcalDQMonitorTask(const edm::ParameterSet &)
void beginRun(const edm::Run &, const edm::EventSetup &)
void analyze(const edm::Event &, const edm::EventSetup &)
virtual void beginRun(const edm::Run &, const edm::EventSetup &)
void(EcalDQMonitorTask::* Processor)(const edm::Event &, ecaldqm::Collections)
virtual void setVerbosity(int _verbosity)
void formSchedule_(const std::vector< ecaldqm::Collections > &, const std::multimap< ecaldqm::Collections, ecaldqm::Collections > &)
virtual void setInitialized(bool _init)
U second(std::pair< T, U > const &p)
void setElectronicsMap(const EcalElectronicsMapping *)
std::map< ecaldqm::DQWorkerTask *, double > taskTimes_
void addDefault(ParameterSetDescription const &psetDescription)
std::string const collectionName[nCollections]
virtual bool runsOn(unsigned)
virtual std::string const & getName()
virtual bool isInitialized()
ParameterSet const & getUntrackedParameterSet(std::string const &name, ParameterSet const &defaultValue) const
virtual void beginEvent(const edm::Event &, const edm::EventSetup &)
virtual void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &)
void endRun(const edm::Run &, const edm::EventSetup &)
virtual void endLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &)
DQWorker *(* WorkerFactory)(const edm::ParameterSet &, const edm::ParameterSet &)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual bool filterRunType(const std::vector< short > &)
void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &)
virtual void endRun(const edm::Run &, const edm::EventSetup &)
std::vector< std::pair< Processor, ecaldqm::Collections > > schedule_
T const * product() const
std::vector< ecaldqm::DQWorkerTask * > taskLists_[ecaldqm::nCollections]
virtual const std::vector< std::pair< Collections, Collections > > & getDependencies()
edm::InputTag collectionTags_[ecaldqm::nCollections]
static void fillDescriptions(edm::ConfigurationDescriptions &)