19 template <
typename CollectionClass>
22 std::set<ecaldqm::DQWorker*>
const& _enabledTasks) {
37 if (_enabledTasks.find(worker) != _enabledTasks.end())
38 static_cast<ecaldqm::DQWorkerTask*>(worker)->analyze(
collection, _col);
48 for (std::vector<ecaldqm::Collections>::const_iterator colItr(_preSchedule.begin()); colItr != _preSchedule.end();
50 std::pair<Processor, ecaldqm::Collections> sch;
57 sch.first = &EcalDQMonitorTask::runOnCollection<FEDRawDataCollection>;
61 sch.first = &EcalDQMonitorTask::runOnCollection<EcalRawDataCollection>;
67 sch.first = &EcalDQMonitorTask::runOnCollection<EBDetIdCollection>;
73 sch.first = &EcalDQMonitorTask::runOnCollection<EEDetIdCollection>;
82 sch.first = &EcalDQMonitorTask::runOnCollection<EcalElectronicsIdCollection>;
86 sch.first = &EcalDQMonitorTask::runOnCollection<EBSrFlagCollection>;
90 sch.first = &EcalDQMonitorTask::runOnCollection<EESrFlagCollection>;
96 sch.first = &EcalDQMonitorTask::runOnCollection<EBDigiCollection>;
102 sch.first = &EcalDQMonitorTask::runOnCollection<EEDigiCollection>;
106 sch.first = &EcalDQMonitorTask::runOnCollection<EcalPnDiodeDigiCollection>;
111 sch.first = &EcalDQMonitorTask::runOnCollection<EcalTrigPrimDigiCollection>;
124 sch.first = &EcalDQMonitorTask::runOnCollection<EcalUncalibratedRecHitCollection>;
135 sch.first = &EcalDQMonitorTask::runOnCollection<EcalRecHitCollection>;
140 sch.first = &EcalDQMonitorTask::runOnCollection<edm::View<reco::CaloCluster> >;
145 sch.first = &EcalDQMonitorTask::runOnCollection<reco::SuperClusterCollection>;
148 throw cms::Exception(
"InvalidConfiguration") <<
"Undefined collection " << *colItr;
151 sch.second = *colItr;
void formSchedule(std::vector< ecaldqm::Collections > const &, edm::ParameterSet const &)
void executeOnWorkers_(FuncOnWorker, std::string const &, std::string const &="", int=1) const
T const * product() const
edm::EDGetToken collectionTokens_[ecaldqm::nCollections]
bool getByToken(EDGetToken token, Handle< PROD > &result) const
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getUntrackedParameter(std::string const &, T const &) const
std::string const collectionName[nCollections]
std::string const moduleName_
Log< level::Info, false > LogInfo
std::vector< std::pair< Processor, ecaldqm::Collections > > schedule_
bool allowMissingCollections_
void runOnCollection(edm::Event const &, ecaldqm::Collections, std::set< ecaldqm::DQWorker *> const &)
Log< level::Warning, false > LogWarning