|
|
Go to the documentation of this file.
31 allowMissingCollections_(_ps.getUntrackedParameter<
bool>(
"allowMissingCollections")),
34 resetInterval_(_ps.getUntrackedParameter<double>(
"resetInterval")) {
36 std::bitset<ecaldqm::nCollections> hasTaskToRun;
43 throw cms::Exception(
"InvalidConfiguration") <<
"Non-task DQWorker " << worker->
getName() <<
" passed";
48 hasTaskToRun.set(iCol);
51 task->setTokens(collector);
58 if (hasTaskToRun[iCol])
69 for (
unsigned iCol(0); iCol <
schedule_.size(); iCol++)
75 if (commonParams.getUntrackedParameter<
bool>(
"onlineMode"))
95 desc.
addUntracked<
bool>(
"allowMissingCollections",
true);
146 std::set<ecaldqm::DQWorker*> enabledTasks;
151 std::stringstream
ss;
159 ss << dcchItr->getRunType() <<
" ";
160 runType[dcchItr->id() - 1] = dcchItr->getRunType();
169 if (static_cast<ecaldqm::DQWorkerTask*>(worker)->filterRunType(
runType)) {
172 enabledTasks.insert(worker);
181 edm::LogWarning(
"EcalDQM") <<
"EcalRawDataCollection does not exist. No event-type filtering will be applied";
190 if (enabledTasks.find(worker) != enabledTasks.end()) {
194 static_cast<ecaldqm::DQWorkerTask*>(worker)->beginEvent(_evt, _es);
200 for (
unsigned iSch(0); iSch <
schedule_.size(); iSch++) {
208 if (enabledTasks.find(worker) != enabledTasks.end())
209 static_cast<ecaldqm::DQWorkerTask*>(worker)->endEvent(_evt, _es);
ParameterDescriptionBase * add(U const &iLabel, T const &value)
std::vector< T >::const_iterator const_iterator
const std::string moduleName_
const std::string collectionName[nCollections]
void ecaldqmBeginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
ParameterSet getUntrackedParameterSet(std::string const &name, ParameterSet const &defaultValue) const
edm::EDGetToken collectionTokens_[ecaldqm::nCollections]
void ecaldqmBeginRun(edm::Run const &, edm::EventSetup const &)
U second(std::pair< T, U > const &p)
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
static void fillDescriptions(edm::ParameterSetDescription &)
virtual void bookMEs(DQMStore::IBooker &)
LuminosityBlockNumber_t luminosityBlock() const
void formSchedule(std::vector< ecaldqm::Collections > const &, edm::ParameterSet const &)
void executeOnWorkers_(FuncOnWorker, std::string const &, std::string const &="", int=1)
virtual void releaseMEs()
void setEventNumber(edm::EventNumber_t _e)
#define DEFINE_FWK_MODULE(type)
const_iterator begin() const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
dispatcher processEvent(e, inputTag, standby)
void dqmEndRun(edm::Run const &, edm::EventSetup const &) override
void ecaldqmEndLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
void analyze(edm::Event const &, edm::EventSetup const &) override
const_iterator end() const
EventNumber_t event() const
void(EcalDQMonitorTask::* Processor)(edm::Event const &, ecaldqm::Collections, std::set< ecaldqm::DQWorker * > const &)
ParameterDescriptionNode * addNode(ParameterDescriptionNode const &node)
void dqmBeginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
void ecaldqmEndRun(edm::Run const &, edm::EventSetup const &)
const std::string & getName() const
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
std::vector< std::pair< Processor, ecaldqm::Collections > > schedule_
void dqmBeginRun(edm::Run const &, edm::EventSetup const &) override
static void fillDescriptions(edm::ParameterSetDescription &)
static void fillDescriptions(edm::ConfigurationDescriptions &)
void dqmEndLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
void addDefault(ParameterSetDescription const &psetDescription)
EcalDQMonitorTask(edm::ParameterSet const &)
void ecaldqmGetSetupObjects(edm::EventSetup const &)
ParameterSet const & getParameterSet(std::string const &) const