49 const char* globalIndent =
" ";
50 const char* globalModuleIndent =
" ";
51 const char* streamIndent =
" ";
52 const char* streamModuleIndent =
" ";
58 : verbose_(iPS.getUntrackedParameter<
bool>(
"verbose")),
59 printTimestamps_(iPS.getUntrackedParameter<
bool>(
"printTimestamps")) {
139 desc.addUntracked<
bool>(
"verbose",
false)->setComment(
"Prints LogAbsolute messages for every transition");
140 desc.addUntracked<
bool>(
"printTimestamps",
false)
141 ->setComment(
"Include a time stamp in message printed for every transition");
142 descriptions.
add(
"TestServiceOne",
desc);
181 out << globalModuleIndent <<
"TestServiceOne::preModuleBeginJob " << TimeStamper(
printTimestamps_)
182 <<
" label = " <<
desc.moduleLabel();
190 out << globalModuleIndent <<
"TestServiceOne::postModuleBeginJob " << TimeStamper(
printTimestamps_)
191 <<
" label = " <<
desc.moduleLabel();
199 out << globalModuleIndent <<
"TestServiceOne::preModuleEndJob " << TimeStamper(
printTimestamps_)
200 <<
" label = " <<
desc.moduleLabel();
208 out << globalModuleIndent <<
"TestServiceOne::postModuleEndJob " << TimeStamper(
printTimestamps_)
209 <<
" label = " <<
desc.moduleLabel();
253 out << streamModuleIndent <<
"TestServiceOne::preModuleBeginStream " << TimeStamper(
printTimestamps_)
262 out << streamModuleIndent <<
"TestServiceOne::postModuleBeginStream " << TimeStamper(
printTimestamps_)
271 out << streamModuleIndent <<
"TestServiceOne::preModuleEndStream " << TimeStamper(
printTimestamps_)
280 out << streamModuleIndent <<
"TestServiceOne::postModuleEndStream " << TimeStamper(
printTimestamps_)
289 out << globalIndent <<
"TestServiceOne::preBeginProcessBlock " << TimeStamper(
printTimestamps_);
297 out << globalIndent <<
"TestServiceOne::postBeginProcessBlock " << TimeStamper(
printTimestamps_);
305 out << globalIndent <<
"TestServiceOne::preEndProcessBlock " << TimeStamper(
printTimestamps_);
313 out << globalIndent <<
"TestServiceOne::postEndProcessBlock " << TimeStamper(
printTimestamps_);
321 out << globalModuleIndent <<
"TestServiceOne::preModuleBeginProcessBlock " << TimeStamper(
printTimestamps_)
330 out << globalModuleIndent <<
"TestServiceOne::postModuleBeginProcessBlock " << TimeStamper(
printTimestamps_)
339 out << globalModuleIndent <<
"TestServiceOne::preModuleEndProcessBlock " << TimeStamper(
printTimestamps_)
348 out << globalModuleIndent <<
"TestServiceOne::postModuleEndProcessBlock " << TimeStamper(
printTimestamps_)
357 out << streamIndent <<
"TestServiceOne::preStreamBeginLumi " << TimeStamper(
printTimestamps_)
367 out << streamIndent <<
"TestServiceOne::postStreamBeginLumi " << TimeStamper(
printTimestamps_)
377 out << streamIndent <<
"TestServiceOne::preStreamEndLumi " << TimeStamper(
printTimestamps_)
387 out << streamIndent <<
"TestServiceOne::postStreamEndLumi " << TimeStamper(
printTimestamps_)
397 out << streamModuleIndent <<
"TestServiceOne::preModuleStreamBeginLumi " << TimeStamper(
printTimestamps_)
407 out << streamModuleIndent <<
"TestServiceOne::postModuleStreamBeginLumi " << TimeStamper(
printTimestamps_)
417 out << streamModuleIndent <<
"TestServiceOne::preModuleStreamEndLumi " << TimeStamper(
printTimestamps_)
427 out << streamModuleIndent <<
"TestServiceOne::postModuleStreamEndLumi " << TimeStamper(
printTimestamps_)
437 out << globalIndent <<
"TestServiceOne::preGlobalBeginLumi " << TimeStamper(
printTimestamps_)
446 out << globalIndent <<
"TestServiceOne::postGlobalBeginLumi " << TimeStamper(
printTimestamps_)
455 out << globalIndent <<
"TestServiceOne::preGlobalEndLumi " << TimeStamper(
printTimestamps_)
464 out << globalIndent <<
"TestServiceOne::postGlobalEndLumi " << TimeStamper(
printTimestamps_)
473 out << globalModuleIndent <<
"TestServiceOne::preModuleGlobalBeginLumi " << TimeStamper(
printTimestamps_)
483 out << globalModuleIndent <<
"TestServiceOne::postModuleGlobalBeginLumi " << TimeStamper(
printTimestamps_)
493 out << globalModuleIndent <<
"TestServiceOne::preModuleGlobalEndLumi " << TimeStamper(
printTimestamps_)
503 out << globalModuleIndent <<
"TestServiceOne::postModuleGlobalEndLumi " << TimeStamper(
printTimestamps_)
513 out << globalIndent <<
"TestServiceOne::preGlobalWriteLumi " << TimeStamper(
printTimestamps_)
522 out << globalIndent <<
"TestServiceOne::postGlobalWriteLumi " << TimeStamper(
printTimestamps_)
531 out << streamIndent <<
"TestServiceOne::preStreamBeginRun " << TimeStamper(
printTimestamps_)
540 out << streamIndent <<
"TestServiceOne::postStreamBeginRun " << TimeStamper(
printTimestamps_)
558 out << streamIndent <<
"TestServiceOne::postStreamEndRun " << TimeStamper(
printTimestamps_)
567 out << streamModuleIndent <<
"TestServiceOne::preModuleStreamBeginRun " << TimeStamper(
printTimestamps_)
577 out << streamModuleIndent <<
"TestServiceOne::postModuleStreamBeginRun " << TimeStamper(
printTimestamps_)
587 out << streamModuleIndent <<
"TestServiceOne::preModuleStreamEndRun " << TimeStamper(
printTimestamps_)
597 out << streamModuleIndent <<
"TestServiceOne::postModuleStreamEndRun " << TimeStamper(
printTimestamps_)
607 out << globalIndent <<
"TestServiceOne::preGlobalBeginRun " << TimeStamper(
printTimestamps_)
616 out << globalIndent <<
"TestServiceOne::postGlobalBeginRun " << TimeStamper(
printTimestamps_)
634 out << globalIndent <<
"TestServiceOne::postGlobalEndRun " << TimeStamper(
printTimestamps_)
643 out << globalModuleIndent <<
"TestServiceOne::preModuleGlobalBeginRun " << TimeStamper(
printTimestamps_)
652 out << globalModuleIndent <<
"TestServiceOne::postModuleGlobalBeginRun " << TimeStamper(
printTimestamps_)
661 out << globalModuleIndent <<
"TestServiceOne::preModuleGlobalEndRun " << TimeStamper(
printTimestamps_)
670 out << globalModuleIndent <<
"TestServiceOne::postModuleGlobalEndRun " << TimeStamper(
printTimestamps_)
679 out << globalIndent <<
"TestServiceOne::preGlobalWriteRun " << TimeStamper(
printTimestamps_)
688 out << globalIndent <<
"TestServiceOne::postGlobalWriteRun " << TimeStamper(
printTimestamps_)
std::atomic< unsigned int > nPreGlobalEndRun_
std::atomic< unsigned int > nPostModuleGlobalEndLumi_
void postModuleGlobalEndRun(edm::GlobalContext const &, edm::ModuleCallingContext const &)
std::atomic< unsigned int > nPostModuleBeginStream_
void postModuleEndJob(edm::ModuleDescription const &)
void watchPostModuleGlobalEndLumi(PostModuleGlobalEndLumi::slot_type const &iSlot)
std::atomic< unsigned int > nPostModuleGlobalBeginRun_
std::atomic< unsigned int > nPreGlobalWriteLumi_
unsigned int nPreStreamEndLumi() const
std::atomic< unsigned int > nPostGlobalEndLumi_
void watchPreModuleGlobalBeginRun(PreModuleGlobalBeginRun::slot_type const &iSlot)
std::atomic< unsigned int > nPostModuleBeginJob_
std::atomic< unsigned int > nPostStreamEndLumi_
unsigned int nPostBeginJob() const
unsigned int nPreModuleGlobalBeginLumi() const
LuminosityBlockNumber_t luminosityBlock() const
void preModuleGlobalBeginLumi(edm::GlobalContext const &, edm::ModuleCallingContext const &)
std::atomic< unsigned int > nPreGlobalBeginLumi_
void preStreamBeginRun(edm::StreamContext const &)
unsigned int nPreStreamBeginLumi() const
void postGlobalBeginLumi(edm::GlobalContext const &)
unsigned int nPostBeginProcessBlock() const
void postStreamBeginLumi(edm::StreamContext const &)
unsigned int nPreModuleEndJob() const
void preModuleGlobalEndLumi(edm::GlobalContext const &, edm::ModuleCallingContext const &)
void preGlobalWriteLumi(edm::GlobalContext const &)
std::atomic< unsigned int > nPreStreamEndRun_
void preGlobalEndLumi(edm::GlobalContext const &)
void preBeginJob(edm::PathsAndConsumesOfModulesBase const &, edm::ProcessContext const &)
void postModuleEndProcessBlock(edm::GlobalContext const &, edm::ModuleCallingContext const &)
void watchPostModuleEndProcessBlock(PostModuleEndProcessBlock::slot_type const &iSlot)
void preModuleStreamEndRun(edm::StreamContext const &, edm::ModuleCallingContext const &)
std::atomic< unsigned int > nPostModuleGlobalBeginLumi_
void preModuleStreamBeginRun(edm::StreamContext const &, edm::ModuleCallingContext const &)
void watchPostEndJob(PostEndJob::slot_type const &iSlot)
void postModuleStreamEndRun(edm::StreamContext const &, edm::ModuleCallingContext const &)
void preModuleStreamBeginLumi(edm::StreamContext const &, edm::ModuleCallingContext const &)
void watchPostModuleEndStream(PostModuleEndStream::slot_type const &iSlot)
std::atomic< unsigned int > nPostEndJob_
void watchPreModuleEndProcessBlock(PreModuleEndProcessBlock::slot_type const &iSlot)
void watchPreGlobalEndLumi(PreGlobalEndLumi::slot_type const &iSlot)
std::atomic< unsigned int > nPreModuleBeginJob_
void postStreamEndRun(edm::StreamContext const &)
void preGlobalBeginRun(edm::GlobalContext const &)
void watchPreStreamEndRun(PreStreamEndRun::slot_type const &iSlot)
unsigned int nPostModuleStreamEndLumi() const
void watchPreGlobalBeginLumi(PreGlobalBeginLumi::slot_type const &iSlot)
void watchPostStreamEndLumi(PostStreamEndLumi::slot_type const &iSlot)
std::atomic< unsigned int > nPostGlobalWriteLumi_
void watchPostEndProcessBlock(PostEndProcessBlock::slot_type const &iSlot)
void watchPostModuleGlobalBeginLumi(PostModuleGlobalBeginLumi::slot_type const &iSlot)
void watchPostModuleStreamEndLumi(PostModuleStreamEndLumi::slot_type const &iSlot)
unsigned int nPostGlobalBeginRun() const
std::atomic< unsigned int > nPostBeginProcessBlock_
void watchPostGlobalBeginLumi(PostGlobalBeginLumi::slot_type const &iSlot)
unsigned int nPreModuleStreamBeginRun() const
std::atomic< unsigned int > nPostStreamBeginLumi_
void watchPostModuleStreamBeginRun(PostModuleStreamBeginRun::slot_type const &iSlot)
void preGlobalEndRun(edm::GlobalContext const &)
void watchPreBeginProcessBlock(PreBeginProcessBlock::slot_type const &iSlot)
void watchPreEndProcessBlock(PreEndProcessBlock::slot_type const &iSlot)
void watchPreModuleBeginStream(PreModuleBeginStream::slot_type const &iSlot)
std::ostream & operator<<(std::ostream &out, const ALILine &li)
std::atomic< unsigned int > nPostBeginJob_
std::atomic< unsigned int > nPostModuleEndJob_
ModuleDescription const * moduleDescription() const noexcept
unsigned int nPreBeginProcessBlock() const
std::atomic< unsigned int > nPostStreamEndRun_
void watchPreStreamEndLumi(PreStreamEndLumi::slot_type const &iSlot)
std::atomic< unsigned int > nPreBeginStream_
void preGlobalWriteRun(edm::GlobalContext const &)
std::atomic< unsigned int > nPostModuleStreamEndRun_
void watchPreModuleGlobalEndRun(PreModuleGlobalEndRun::slot_type const &iSlot)
std::atomic< unsigned int > nPreModuleGlobalBeginRun_
void postGlobalWriteLumi(edm::GlobalContext const &)
void preModuleBeginStream(edm::StreamContext const &, edm::ModuleCallingContext const &)
void preModuleEndJob(edm::ModuleDescription const &)
unsigned int nPreModuleBeginJob() const
void postModuleGlobalEndLumi(edm::GlobalContext const &, edm::ModuleCallingContext const &)
unsigned int nPreModuleGlobalEndRun() const
unsigned int nPostGlobalEndLumi() const
std::atomic< unsigned int > nPostGlobalWriteRun_
void preEndProcessBlock(edm::GlobalContext const &)
unsigned int nPostModuleGlobalEndRun() const
LuminosityBlockNumber_t luminosityBlock() const
unsigned int nPreGlobalEndLumi() const
void postModuleEndStream(edm::StreamContext const &, edm::ModuleCallingContext const &)
void preStreamBeginLumi(edm::StreamContext const &)
void postEndProcessBlock(edm::GlobalContext const &)
std::atomic< unsigned int > nPreModuleStreamBeginRun_
void postModuleGlobalBeginLumi(edm::GlobalContext const &, edm::ModuleCallingContext const &)
unsigned int nPostGlobalWriteLumi() const
unsigned int nPreModuleBeginProcessBlock() const
void postModuleGlobalBeginRun(edm::GlobalContext const &, edm::ModuleCallingContext const &)
unsigned int nPostModuleStreamBeginLumi() const
unsigned int nPostModuleEndProcessBlock() const
void watchPostGlobalBeginRun(PostGlobalBeginRun::slot_type const &iSlot)
unsigned int nPreModuleBeginStream() const
unsigned int nPostModuleEndJob() const
std::atomic< unsigned int > nPostGlobalBeginLumi_
unsigned int nPreGlobalBeginLumi() const
unsigned int nPreEndJob() const
void watchPreGlobalEndRun(PreGlobalEndRun::slot_type const &iSlot)
unsigned int nPreEndStream() const
unsigned int nPreModuleStreamBeginLumi() const
unsigned int nPostModuleGlobalBeginLumi() const
void watchPostBeginProcessBlock(PostBeginProcessBlock::slot_type const &iSlot)
void postGlobalEndLumi(edm::GlobalContext const &)
void watchPostBeginStream(PostBeginStream::slot_type const &iSlot)
std::atomic< unsigned int > nPreModuleGlobalEndLumi_
void preEndStream(edm::StreamContext const &)
void postEndStream(edm::StreamContext const &)
std::atomic< unsigned int > nPreGlobalWriteRun_
TestServiceOne(const edm::ParameterSet &, edm::ActivityRegistry &)
void watchPostStreamBeginLumi(PostStreamBeginLumi::slot_type const &iSlot)
std::atomic< unsigned int > nPreModuleBeginStream_
std::atomic< unsigned int > nPreModuleEndStream_
std::atomic< unsigned int > nPreGlobalEndLumi_
std::atomic< unsigned int > nPostModuleBeginProcessBlock_
unsigned int nPostStreamBeginLumi() const
unsigned int nPreStreamBeginRun() const
std::atomic< unsigned int > nPostBeginStream_
StreamID const & streamID() const
unsigned int nPostGlobalEndRun() const
void preModuleGlobalEndRun(edm::GlobalContext const &, edm::ModuleCallingContext const &)
std::atomic< unsigned int > nPostStreamBeginRun_
void watchPreModuleBeginProcessBlock(PreModuleBeginProcessBlock::slot_type const &iSlot)
unsigned int nPostStreamEndRun() const
void watchPostEndStream(PostEndStream::slot_type const &iSlot)
unsigned int nPreBeginStream() const
void watchPreModuleEndJob(PreModuleEndJob::slot_type const &iSlot)
std::atomic< unsigned int > nPreBeginJob_
void postGlobalBeginRun(edm::GlobalContext const &)
unsigned int nPreGlobalEndRun() const
void postStreamEndLumi(edm::StreamContext const &)
void watchPostGlobalEndLumi(PostGlobalEndLumi::slot_type const &iSlot)
void watchPreEndStream(PreEndStream::slot_type const &iSlot)
std::atomic< unsigned int > nPreBeginProcessBlock_
void postGlobalWriteRun(edm::GlobalContext const &)
std::atomic< unsigned int > nPostGlobalBeginRun_
std::atomic< unsigned int > nPreModuleGlobalEndRun_
void postBeginProcessBlock(edm::GlobalContext const &)
std::atomic< unsigned int > nPostModuleEndStream_
std::atomic< unsigned int > nPostEndStream_
void watchPreModuleBeginJob(PreModuleBeginJob::slot_type const &iSlot)
unsigned int nPreModuleEndStream() const
void postModuleBeginJob(edm::ModuleDescription const &)
void watchPostStreamEndRun(PostStreamEndRun::slot_type const &iSlot)
LuminosityBlockID const & luminosityBlockID() const
unsigned int nPreGlobalWriteLumi() const
unsigned int nPreStreamEndRun() const
std::atomic< unsigned int > nPreEndStream_
unsigned int nPreGlobalWriteRun() const
std::atomic< unsigned int > nPreModuleGlobalBeginLumi_
unsigned int nPostModuleBeginProcessBlock() const
void watchPostModuleStreamEndRun(PostModuleStreamEndRun::slot_type const &iSlot)
void watchPreModuleGlobalBeginLumi(PreModuleGlobalBeginLumi::slot_type const &iSlot)
void preModuleBeginProcessBlock(edm::GlobalContext const &, edm::ModuleCallingContext const &)
void watchPostModuleBeginProcessBlock(PostModuleBeginProcessBlock::slot_type const &iSlot)
void watchPreGlobalBeginRun(PreGlobalBeginRun::slot_type const &iSlot)
void watchPreModuleStreamBeginLumi(PreModuleStreamBeginLumi::slot_type const &iSlot)
void watchPreGlobalWriteLumi(PreGlobalWriteLumi::slot_type const &iSlot)
unsigned int nPostModuleBeginJob() const
unsigned int nPreModuleGlobalBeginRun() const
void preStreamEndLumi(edm::StreamContext const &)
#define DEFINE_FWK_SERVICE(type)
unsigned int nPostModuleGlobalBeginRun() const
void preStreamEndRun(edm::StreamContext const &)
void watchPostModuleBeginStream(PostModuleBeginStream::slot_type const &iSlot)
void preModuleEndStream(edm::StreamContext const &, edm::ModuleCallingContext const &)
unsigned int nPostModuleEndStream() const
std::atomic< unsigned int > nPostModuleStreamBeginLumi_
void postBeginStream(edm::StreamContext const &)
void preModuleGlobalBeginRun(edm::GlobalContext const &, edm::ModuleCallingContext const &)
void watchPostModuleGlobalEndRun(PostModuleGlobalEndRun::slot_type const &iSlot)
void watchPostGlobalWriteRun(PostGlobalWriteRun::slot_type const &iSlot)
void watchPostModuleStreamBeginLumi(PostModuleStreamBeginLumi::slot_type const &iSlot)
void postModuleStreamEndLumi(edm::StreamContext const &, edm::ModuleCallingContext const &)
unsigned int nPostEndStream() const
std::atomic< unsigned int > nPreEndProcessBlock_
std::atomic< unsigned int > nPreStreamBeginRun_
void watchPreModuleStreamEndLumi(PreModuleStreamEndLumi::slot_type const &iSlot)
void watchPreModuleStreamBeginRun(PreModuleStreamBeginRun::slot_type const &iSlot)
unsigned int nPreBeginJob() const
unsigned int nPostGlobalBeginLumi() const
void postModuleStreamBeginRun(edm::StreamContext const &, edm::ModuleCallingContext const &)
void watchPostGlobalEndRun(PostGlobalEndRun::slot_type const &iSlot)
void watchPreStreamBeginLumi(PreStreamBeginLumi::slot_type const &iSlot)
void postStreamBeginRun(edm::StreamContext const &)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void watchPreModuleEndStream(PreModuleEndStream::slot_type const &iSlot)
void preModuleBeginJob(edm::ModuleDescription const &)
unsigned int nPostModuleStreamBeginRun() const
unsigned int nPostModuleGlobalEndLumi() const
void watchPreBeginJob(PreBeginJob::slot_type const &iSlot)
convenience function for attaching to signal
std::atomic< unsigned int > nPreStreamEndLumi_
std::atomic< unsigned int > nPostEndProcessBlock_
std::atomic< unsigned int > nPreModuleStreamBeginLumi_
unsigned int nPreModuleStreamEndLumi() const
void watchPreEndJob(PreEndJob::slot_type const &iSlot)
std::atomic< unsigned int > nPreEndJob_
void watchPostStreamBeginRun(PostStreamBeginRun::slot_type const &iSlot)
std::atomic< unsigned int > nPreGlobalBeginRun_
void preBeginStream(edm::StreamContext const &)
void watchPostGlobalWriteLumi(PostGlobalEndLumi::slot_type const &iSlot)
void watchPreStreamBeginRun(PreStreamBeginRun::slot_type const &iSlot)
unsigned int nPreModuleEndProcessBlock() const
unsigned int nPreModuleGlobalEndLumi() const
void watchPreModuleStreamEndRun(PreModuleStreamEndRun::slot_type const &iSlot)
EventID const & eventID() const
std::atomic< unsigned int > nPreModuleEndJob_
std::atomic< unsigned int > nPostModuleStreamEndLumi_
void watchPostModuleBeginJob(PostModuleBeginJob::slot_type const &iSlot)
unsigned int nPostEndProcessBlock() const
unsigned int nPostBeginStream() const
std::atomic< unsigned int > nPreModuleStreamEndLumi_
void watchPostModuleGlobalBeginRun(PostModuleGlobalBeginRun::slot_type const &iSlot)
void preModuleEndProcessBlock(edm::GlobalContext const &, edm::ModuleCallingContext const &)
std::atomic< unsigned int > nPostGlobalEndRun_
unsigned int nPostGlobalWriteRun() const
unsigned int nPostModuleStreamEndRun() const
unsigned int nPostEndJob() const
void postModuleStreamBeginLumi(edm::StreamContext const &, edm::ModuleCallingContext const &)
std::atomic< unsigned int > nPostModuleEndProcessBlock_
std::atomic< unsigned int > nPostModuleStreamBeginRun_
void postModuleBeginProcessBlock(edm::GlobalContext const &, edm::ModuleCallingContext const &)
void postGlobalEndRun(edm::GlobalContext const &)
std::atomic< unsigned int > nPreModuleBeginProcessBlock_
unsigned int nPreModuleStreamEndRun() const
std::string const & moduleLabel() const
unsigned int nPostStreamBeginRun() const
void watchPreGlobalWriteRun(PreGlobalWriteRun::slot_type const &iSlot)
unsigned int nPostModuleBeginStream() const
std::atomic< unsigned int > nPreStreamBeginLumi_
void watchPostModuleEndJob(PostModuleEndJob::slot_type const &iSlot)
void preGlobalBeginLumi(edm::GlobalContext const &)
void preBeginProcessBlock(edm::GlobalContext const &)
std::atomic< unsigned int > nPostModuleGlobalEndRun_
void watchPreModuleGlobalEndLumi(PreModuleGlobalEndLumi::slot_type const &iSlot)
static void fillDescriptions(edm::ConfigurationDescriptions &)
void preModuleStreamEndLumi(edm::StreamContext const &, edm::ModuleCallingContext const &)
std::atomic< unsigned int > nPreModuleStreamEndRun_
void watchPreBeginStream(PreBeginStream::slot_type const &iSlot)
unsigned int nPostStreamEndLumi() const
std::atomic< unsigned int > nPreModuleEndProcessBlock_
void watchPostBeginJob(PostBeginJob::slot_type const &iSlot)
convenience function for attaching to signal
unsigned int nPreGlobalBeginRun() const
void postModuleBeginStream(edm::StreamContext const &, edm::ModuleCallingContext const &)
unsigned int nPreEndProcessBlock() const