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")) {
112 desc.addUntracked<
bool>(
"verbose",
false)->setComment(
"Prints LogAbsolute messages for every transition");
113 desc.addUntracked<
bool>(
"printTimestamps",
false)
114 ->setComment(
"Include a time stamp in message printed for every transition");
115 descriptions.
add(
"TestServiceTwo",
desc);
120 edm::LogAbsolute(
"TestServiceTwo") <<
"test message from TestServiceTwo::preBeginProcessBlock";
126 edm::LogAbsolute(
"TestServiceTwo") <<
"test message from TestServiceTwo::preEndProcessBlock";
134 out << streamIndent <<
"TestServiceTwo::preStreamBeginLumi " << TimeStamper(
printTimestamps_)
144 out << streamIndent <<
"TestServiceTwo::postStreamBeginLumi " << TimeStamper(
printTimestamps_)
154 out << streamIndent <<
"TestServiceTwo::preStreamEndLumi " << TimeStamper(
printTimestamps_)
164 out << streamIndent <<
"TestServiceTwo::postStreamEndLumi " << TimeStamper(
printTimestamps_)
174 out << streamModuleIndent <<
"TestServiceTwo::preModuleStreamBeginLumi " << TimeStamper(
printTimestamps_)
184 out << streamModuleIndent <<
"TestServiceTwo::postModuleStreamBeginLumi " << TimeStamper(
printTimestamps_)
194 out << streamModuleIndent <<
"TestServiceTwo::preModuleStreamEndLumi " << TimeStamper(
printTimestamps_)
204 out << streamModuleIndent <<
"TestServiceTwo::postModuleStreamEndLumi " << TimeStamper(
printTimestamps_)
214 out << globalIndent <<
"TestServiceTwo::preGlobalBeginLumi " << TimeStamper(
printTimestamps_)
223 out << globalIndent <<
"TestServiceTwo::postGlobalBeginLumi " << TimeStamper(
printTimestamps_)
232 out << globalIndent <<
"TestServiceTwo::preGlobalEndLumi " << TimeStamper(
printTimestamps_)
241 out << globalIndent <<
"TestServiceTwo::postGlobalEndLumi " << TimeStamper(
printTimestamps_)
250 out << globalModuleIndent <<
"TestServiceTwo::preModuleGlobalBeginLumi " << TimeStamper(
printTimestamps_)
260 out << globalModuleIndent <<
"TestServiceTwo::postModuleGlobalBeginLumi " << TimeStamper(
printTimestamps_)
270 out << globalModuleIndent <<
"TestServiceTwo::preModuleGlobalEndLumi " << TimeStamper(
printTimestamps_)
280 out << globalModuleIndent <<
"TestServiceTwo::postModuleGlobalEndLumi " << TimeStamper(
printTimestamps_)
290 out << globalIndent <<
"TestServiceTwo::preGlobalWriteLumi " << TimeStamper(
printTimestamps_)
299 out << globalIndent <<
"TestServiceTwo::postGlobalWriteLumi " << TimeStamper(
printTimestamps_)
308 out << streamIndent <<
"TestServiceTwo::preStreamBeginRun " << TimeStamper(
printTimestamps_)
317 out << streamIndent <<
"TestServiceTwo::postStreamBeginRun " << TimeStamper(
printTimestamps_)
335 out << streamIndent <<
"TestServiceTwo::postStreamEndRun " << TimeStamper(
printTimestamps_)
344 out << streamModuleIndent <<
"TestServiceTwo::preModuleStreamBeginRun " << TimeStamper(
printTimestamps_)
354 out << streamModuleIndent <<
"TestServiceTwo::postModuleStreamBeginRun " << TimeStamper(
printTimestamps_)
364 out << streamModuleIndent <<
"TestServiceTwo::preModuleStreamEndRun " << TimeStamper(
printTimestamps_)
374 out << streamModuleIndent <<
"TestServiceTwo::postModuleStreamEndRun " << TimeStamper(
printTimestamps_)
384 out << globalIndent <<
"TestServiceTwo::preGlobalBeginRun " << TimeStamper(
printTimestamps_)
393 out << globalIndent <<
"TestServiceTwo::postGlobalBeginRun " << TimeStamper(
printTimestamps_)
411 out << globalIndent <<
"TestServiceTwo::postGlobalEndRun " << TimeStamper(
printTimestamps_)
420 out << globalModuleIndent <<
"TestServiceTwo::preModuleGlobalBeginRun " << TimeStamper(
printTimestamps_)
429 out << globalModuleIndent <<
"TestServiceTwo::postModuleGlobalBeginRun " << TimeStamper(
printTimestamps_)
438 out << globalModuleIndent <<
"TestServiceTwo::preModuleGlobalEndRun " << TimeStamper(
printTimestamps_)
447 out << globalModuleIndent <<
"TestServiceTwo::postModuleGlobalEndRun " << TimeStamper(
printTimestamps_)
456 out << globalIndent <<
"TestServiceTwo::preGlobalWriteRun " << TimeStamper(
printTimestamps_)
465 out << globalIndent <<
"TestServiceTwo::postGlobalWriteRun " << TimeStamper(
printTimestamps_)
void watchPostModuleGlobalEndLumi(PostModuleGlobalEndLumi::slot_type const &iSlot)
void postModuleGlobalEndRun(edm::GlobalContext const &, edm::ModuleCallingContext const &)
std::atomic< unsigned int > nPostGlobalEndRun_
void watchPreModuleGlobalBeginRun(PreModuleGlobalBeginRun::slot_type const &iSlot)
void preStreamBeginLumi(edm::StreamContext const &)
void postGlobalEndRun(edm::GlobalContext const &)
LuminosityBlockNumber_t luminosityBlock() const
void preStreamEndLumi(edm::StreamContext const &)
unsigned int nPreStreamBeginRun() const
std::atomic< unsigned int > nPreModuleGlobalBeginLumi_
void preGlobalBeginLumi(edm::GlobalContext const &)
void postModuleStreamBeginRun(edm::StreamContext const &, edm::ModuleCallingContext const &)
unsigned int nPreStreamBeginLumi() const
std::atomic< unsigned int > nPreStreamBeginLumi_
unsigned int nPreModuleStreamBeginLumi() const
void preEndProcessBlock(edm::GlobalContext const &)
void preGlobalBeginRun(edm::GlobalContext const &)
std::atomic< unsigned int > nPreStreamBeginRun_
std::atomic< unsigned int > nPostStreamEndLumi_
std::atomic< unsigned int > nPreGlobalEndRun_
unsigned int nPreModuleGlobalBeginLumi() const
std::atomic< unsigned int > nPostModuleStreamBeginLumi_
void watchPreGlobalEndLumi(PreGlobalEndLumi::slot_type const &iSlot)
std::atomic< unsigned int > nPreGlobalEndLumi_
unsigned int nPostGlobalEndLumi() const
std::atomic< unsigned int > nPreStreamEndLumi_
std::atomic< unsigned int > nPreModuleStreamBeginRun_
std::atomic< unsigned int > nPreModuleGlobalEndLumi_
unsigned int nPostStreamBeginLumi() const
void watchPreStreamEndRun(PreStreamEndRun::slot_type const &iSlot)
std::atomic< unsigned int > nPostGlobalWriteLumi_
void preGlobalWriteRun(edm::GlobalContext const &)
void watchPreGlobalBeginLumi(PreGlobalBeginLumi::slot_type const &iSlot)
void watchPostStreamEndLumi(PostStreamEndLumi::slot_type const &iSlot)
unsigned int nPreGlobalEndRun() const
void watchPostModuleGlobalBeginLumi(PostModuleGlobalBeginLumi::slot_type const &iSlot)
void watchPostModuleStreamEndLumi(PostModuleStreamEndLumi::slot_type const &iSlot)
void watchPostGlobalBeginLumi(PostGlobalBeginLumi::slot_type const &iSlot)
void watchPostModuleStreamBeginRun(PostModuleStreamBeginRun::slot_type const &iSlot)
void preModuleStreamEndRun(edm::StreamContext const &, edm::ModuleCallingContext const &)
void postStreamBeginLumi(edm::StreamContext const &)
unsigned int nPreGlobalBeginLumi() const
void watchPreBeginProcessBlock(PreBeginProcessBlock::slot_type const &iSlot)
void preGlobalEndRun(edm::GlobalContext const &)
std::atomic< unsigned int > nPreModuleGlobalEndRun_
std::atomic< unsigned int > nPreModuleStreamEndLumi_
std::atomic< unsigned int > nPreGlobalBeginLumi_
unsigned int nPostGlobalBeginLumi() const
unsigned int nPostStreamBeginRun() const
void watchPreEndProcessBlock(PreEndProcessBlock::slot_type const &iSlot)
std::ostream & operator<<(std::ostream &out, const ALILine &li)
ModuleDescription const * moduleDescription() const noexcept
void watchPreStreamEndLumi(PreStreamEndLumi::slot_type const &iSlot)
void preStreamEndRun(edm::StreamContext const &)
void watchPreModuleGlobalEndRun(PreModuleGlobalEndRun::slot_type const &iSlot)
std::atomic< unsigned int > nPostModuleStreamEndLumi_
void preModuleGlobalEndRun(edm::GlobalContext const &, edm::ModuleCallingContext const &)
LuminosityBlockNumber_t luminosityBlock() const
std::atomic< unsigned int > nPostModuleGlobalBeginLumi_
void preModuleGlobalBeginLumi(edm::GlobalContext const &, edm::ModuleCallingContext const &)
std::atomic< unsigned int > nPreStreamEndRun_
TestServiceTwo(const edm::ParameterSet &, edm::ActivityRegistry &)
void preModuleGlobalBeginRun(edm::GlobalContext const &, edm::ModuleCallingContext const &)
void preStreamBeginRun(edm::StreamContext const &)
void watchPostGlobalBeginRun(PostGlobalBeginRun::slot_type const &iSlot)
void watchPreGlobalEndRun(PreGlobalEndRun::slot_type const &iSlot)
void preGlobalWriteLumi(edm::GlobalContext const &)
void watchPostStreamBeginLumi(PostStreamBeginLumi::slot_type const &iSlot)
unsigned int nPreGlobalWriteRun() const
void postGlobalBeginLumi(edm::GlobalContext const &)
unsigned int nPostGlobalBeginRun() const
StreamID const & streamID() const
unsigned int nPreModuleStreamBeginRun() const
void postModuleStreamEndLumi(edm::StreamContext const &, edm::ModuleCallingContext const &)
void postGlobalWriteLumi(edm::GlobalContext const &)
unsigned int nPreGlobalBeginRun() const
void postStreamEndRun(edm::StreamContext const &)
void watchPostGlobalEndLumi(PostGlobalEndLumi::slot_type const &iSlot)
std::atomic< unsigned int > nPostGlobalEndLumi_
unsigned int nPreStreamEndLumi() const
unsigned int nPreModuleGlobalBeginRun() const
void watchPostStreamEndRun(PostStreamEndRun::slot_type const &iSlot)
void preModuleStreamBeginLumi(edm::StreamContext const &, edm::ModuleCallingContext const &)
LuminosityBlockID const & luminosityBlockID() const
void preModuleStreamBeginRun(edm::StreamContext const &, edm::ModuleCallingContext const &)
std::atomic< unsigned int > nPreModuleStreamBeginLumi_
unsigned int nPostModuleGlobalBeginLumi() const
void preModuleStreamEndLumi(edm::StreamContext const &, edm::ModuleCallingContext const &)
unsigned int nPreModuleGlobalEndLumi() const
void watchPostModuleStreamEndRun(PostModuleStreamEndRun::slot_type const &iSlot)
void watchPreModuleGlobalBeginLumi(PreModuleGlobalBeginLumi::slot_type const &iSlot)
std::atomic< unsigned int > nPostModuleStreamEndRun_
std::atomic< unsigned int > nPostGlobalWriteRun_
void watchPreGlobalBeginRun(PreGlobalBeginRun::slot_type const &iSlot)
void watchPreModuleStreamBeginLumi(PreModuleStreamBeginLumi::slot_type const &iSlot)
void watchPreGlobalWriteLumi(PreGlobalWriteLumi::slot_type const &iSlot)
std::atomic< unsigned int > nPostModuleGlobalBeginRun_
#define DEFINE_FWK_SERVICE(type)
void preModuleGlobalEndLumi(edm::GlobalContext const &, edm::ModuleCallingContext const &)
std::atomic< unsigned int > nPreModuleStreamEndRun_
static void fillDescriptions(edm::ConfigurationDescriptions &)
unsigned int nPostModuleGlobalEndLumi() const
unsigned int nPostModuleStreamEndLumi() const
std::atomic< unsigned int > nPostModuleGlobalEndRun_
void watchPostModuleGlobalEndRun(PostModuleGlobalEndRun::slot_type const &iSlot)
void watchPostGlobalWriteRun(PostGlobalWriteRun::slot_type const &iSlot)
void watchPostModuleStreamBeginLumi(PostModuleStreamBeginLumi::slot_type const &iSlot)
std::atomic< unsigned int > nPostStreamBeginRun_
unsigned int nPostGlobalWriteLumi() const
std::atomic< unsigned int > nPreModuleGlobalBeginRun_
unsigned int nPreGlobalWriteLumi() const
void postModuleGlobalBeginLumi(edm::GlobalContext const &, edm::ModuleCallingContext const &)
void watchPreModuleStreamEndLumi(PreModuleStreamEndLumi::slot_type const &iSlot)
unsigned int nPostStreamEndLumi() const
void watchPreModuleStreamBeginRun(PreModuleStreamBeginRun::slot_type const &iSlot)
unsigned int nPostModuleGlobalBeginRun() const
void watchPostGlobalEndRun(PostGlobalEndRun::slot_type const &iSlot)
void watchPreStreamBeginLumi(PreStreamBeginLumi::slot_type const &iSlot)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::atomic< unsigned int > nPostStreamEndRun_
std::atomic< unsigned int > nPreGlobalBeginRun_
unsigned int nPostModuleGlobalEndRun() const
unsigned int nPreStreamEndRun() const
unsigned int nPreModuleStreamEndRun() const
void watchPostStreamBeginRun(PostStreamBeginRun::slot_type const &iSlot)
std::atomic< unsigned int > nPostModuleStreamBeginRun_
void postModuleGlobalEndLumi(edm::GlobalContext const &, edm::ModuleCallingContext const &)
void postModuleGlobalBeginRun(edm::GlobalContext const &, edm::ModuleCallingContext const &)
void preBeginProcessBlock(edm::GlobalContext const &)
void watchPostGlobalWriteLumi(PostGlobalEndLumi::slot_type const &iSlot)
unsigned int nPostModuleStreamEndRun() const
void postGlobalWriteRun(edm::GlobalContext const &)
void watchPreStreamBeginRun(PreStreamBeginRun::slot_type const &iSlot)
void postGlobalBeginRun(edm::GlobalContext const &)
void watchPreModuleStreamEndRun(PreModuleStreamEndRun::slot_type const &iSlot)
EventID const & eventID() const
void postGlobalEndLumi(edm::GlobalContext const &)
void watchPostModuleGlobalBeginRun(PostModuleGlobalBeginRun::slot_type const &iSlot)
std::atomic< unsigned int > nPostGlobalBeginLumi_
unsigned int nPostStreamEndRun() const
unsigned int nPostGlobalWriteRun() const
unsigned int nPreModuleStreamEndLumi() const
void postModuleStreamBeginLumi(edm::StreamContext const &, edm::ModuleCallingContext const &)
Log< level::System, true > LogAbsolute
void postStreamBeginRun(edm::StreamContext const &)
unsigned int nPreModuleGlobalEndRun() const
unsigned int nPostGlobalEndRun() const
std::atomic< unsigned int > nPreGlobalWriteLumi_
void preGlobalEndLumi(edm::GlobalContext const &)
void postModuleStreamEndRun(edm::StreamContext const &, edm::ModuleCallingContext const &)
void postStreamEndLumi(edm::StreamContext const &)
std::atomic< unsigned int > nPostModuleGlobalEndLumi_
std::atomic< unsigned int > nPostStreamBeginLumi_
std::string const & moduleLabel() const
unsigned int nPostModuleStreamBeginRun() const
void watchPreGlobalWriteRun(PreGlobalWriteRun::slot_type const &iSlot)
std::atomic< unsigned int > nPostGlobalBeginRun_
unsigned int nPostModuleStreamBeginLumi() const
void watchPreModuleGlobalEndLumi(PreModuleGlobalEndLumi::slot_type const &iSlot)
std::atomic< unsigned int > nPreGlobalWriteRun_
unsigned int nPreGlobalEndLumi() const