18 if ( !m_ctxtSpecCounter ) {
19 m_ctxtSpecCounter =
new int( 1 );
21 ++( *m_ctxtSpecCounter );
24 << *m_ctxtSpecCounter <<
endmsg;
38 info() <<
"Total count of events: " 40 [
this](
const int* p ) {
41 const int r = ( p ? *p : 0 );
GAUDI_API ContextIdType currentContextId()
Return the current context id.
MsgStream & info() const
shortcut for the method msgStream(MSG::INFO)
StatusCode execute() override final
StatusCode finalize() override
Algorithm finalization.
StatusCode finalize() override
the default (empty) implementation of IStateful::finalize() method
StatusCode execute() override
Standard constructor.
Gaudi::Hive::ContextSpecificPtr< int > m_ctxtSpecCounter
#define DECLARE_COMPONENT(type)
This class is used for returning status codes from appropriate routines.
constexpr static const auto SUCCESS
MsgStream & debug() const
shortcut for the method msgStream(MSG::DEBUG)
StatusCode finalize() override
Algorithm finalization.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
MSG::Level msgLevel() const
get the cached level (originally extracted from the embedded MsgStream)