1 #ifndef EcalDQMonitor_H 2 #define EcalDQMonitor_H 36 template<
typename FuncOnWorker>
void executeOnWorkers_(FuncOnWorker,
std::string const&,
std::string const& =
"",
int = 1);
43 template<
typename FuncOnWorker>
45 EcalDQMonitor::executeOnWorkers_(FuncOnWorker _func,
std::string const& _context,
std::string const& _message,
int _verbThreshold)
47 std::for_each(workers_.begin(), workers_.end(), [&](
DQWorker* worker){
48 if(verbosity_ > _verbThreshold && _message !=
"")
edm::LogInfo(
"EcalDQM") << moduleName_ <<
": " << _message <<
" @ " << worker->getName();
53 edm::LogError(
"EcalDQM") << moduleName_ <<
": Exception in " << _context <<
" @ " << worker->getName();
std::vector< DQWorker * > workers_
std::string const moduleName_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)