|
|
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"))
89 desc.addUntracked(
"workerParameters", allWorkers);
95 desc.addUntracked<
bool>(
"allowMissingCollections",
true);
96 desc.addUntracked<
double>(
"resetInterval", 0.);
124 std::shared_ptr<ecaldqm::EcalLSCache> tmpCache = std::make_shared<ecaldqm::EcalLSCache>();
127 "globalBeginLuminosityBlock");
132 tmpCache->lhcStatusSet_ =
false;
157 std::set<ecaldqm::DQWorker*> enabledTasks;
162 std::stringstream
ss;
170 ss << dcchItr->getRunType() <<
" ";
171 runType[dcchItr->id() - 1] = dcchItr->getRunType();
180 if (static_cast<ecaldqm::DQWorkerTask*>(worker)->filterRunType(
runType)) {
183 enabledTasks.insert(worker);
192 edm::LogWarning(
"EcalDQM") <<
"EcalRawDataCollection does not exist. No event-type filtering will be applied";
202 if (enabledTasks.find(worker) != enabledTasks.end()) {
206 bool ByLumiResetSwitch = (lumiCache->ByLumiPlotsResetSwitches).at(worker->
getName());
207 bool lhcStatusSet = lumiCache->lhcStatusSet_;
208 static_cast<ecaldqm::DQWorkerTask*>(worker)->beginEvent(_evt, _es, ByLumiResetSwitch, lhcStatusSet);
209 (lumiCache->ByLumiPlotsResetSwitches)[worker->
getName()] =
false;
210 lumiCache->lhcStatusSet_ = lhcStatusSet;
216 for (
unsigned iSch(0); iSch <
schedule_.size(); iSch++) {
224 if (enabledTasks.find(worker) != enabledTasks.end())
225 static_cast<ecaldqm::DQWorkerTask*>(worker)->endEvent(_evt, _es);
std::shared_ptr< ecaldqm::EcalLSCache > globalBeginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) const override
LuminosityBlock const & getLuminosityBlock() const
std::vector< T >::const_iterator const_iterator
const std::string moduleName_
void globalEndLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
const std::string collectionName[nCollections]
ParameterSet getUntrackedParameterSet(std::string const &name, ParameterSet const &defaultValue) const
edm::EDGetToken collectionTokens_[ecaldqm::nCollections]
void executeOnWorkers_(FuncOnWorker, std::string const &, std::string const &="", int=1) const
LuminosityBlockIndex index() const
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 &)
Log< level::Info, false > LogInfo
LuminosityBlockNumber_t luminosityBlock() const
void formSchedule(std::vector< ecaldqm::Collections > const &, edm::ParameterSet const &)
Log< level::Warning, false > LogWarning
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 &)
void analyze(edm::Event const &, edm::EventSetup const &) override
const_iterator end() const
void ecaldqmBeginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) const
EventNumber_t event() const
void(EcalDQMonitorTask::* Processor)(edm::Event const &, ecaldqm::Collections, std::set< ecaldqm::DQWorker * > const &)
ParameterDescriptionNode * addNode(ParameterDescriptionNode const &node)
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 addDefault(ParameterSetDescription const &psetDescription)
EcalDQMonitorTask(edm::ParameterSet const &)
void ecaldqmGetSetupObjects(edm::EventSetup const &)
ParameterSet const & getParameterSet(std::string const &) const