27#define ON_DEBUG if ( msgLevel( MSG::DEBUG ) )
28#define ON_VERBOSE if ( msgLevel( MSG::VERBOSE ) )
30#define DEBMSG ON_DEBUG debug()
31#define VERMSG ON_VERBOSE verbose()
35 if ( sc.isFailure() )
return sc;
40 std::vector<std::string> incNames;
41 incNames.push_back( IncidentType::BeginEvent );
42 incNames.push_back( IncidentType::EndEvent );
46 for (
auto& i : incNames ) {
m_incSvc->addListener(
this, i,
m_prio ); }
54 if ( incident.
type() == IncidentType::BeginEvent ) {
58 warning() <<
" Context already exists for '" << incident.
type() <<
"' event=" << incident.
context().
evt()
61 }
else if ( incident.
type() == IncidentType::EndEvent ) {
69 info() <<
" Cleaned up context store for event =" << incident.
context().
evt() <<
" for incident='"
77 debug() <<
"Asked for data with context " << *ctx <<
endmsg;
80 fatal() <<
" data for event " << ctx->evt() <<
" is not initialized yet!. This shouldn't happen!" <<
endmsg;
88 fatal() <<
" data for event " << ct.evt() <<
" is not initialized yet!. This shouldn't happen!" <<
endmsg;
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
#define DECLARE_COMPONENT(type)
MsgStream & warning() const
shortcut for the method msgStream(MSG::WARNING)
const SmartIF< IMessageSvc > & msgSvc() const
The standard message service.
MsgStream & fatal() const
shortcut for the method msgStream(MSG::FATAL)
MsgStream & debug() const
shortcut for the method msgStream(MSG::DEBUG)
MsgStream & info() const
shortcut for the method msgStream(MSG::INFO)
This class represents an entry point to all the event specific data.
Define general base for Gaudi exception.
Gaudi::Property< long > m_prio
SmartIF< IIncidentSvc > m_incSvc
Gaudi::Property< uint64_t > m_fileOffset
StatusCode finalize() override
tbb::concurrent_unordered_map< EventContext, uint64_t, EventContextHash, EventContextHash > m_ctxData
Gaudi::Property< std::vector< std::string > > m_incidentNames
void getData(uint64_t *data, EventContext *ctx=0) const override
Gaudi::Property< uint64_t > m_eventMultiplier
void handle(const Incident &incident) override
Reimplements from IIncidentListener.
StatusCode initialize() override
SmartIF< IMessageSvc > m_msgSvc
Base class for all Incidents (computing events).
EventContext context() const
Access to the EventContext of the source of the incident.
const std::string & type() const
Access to the incident type.
StatusCode finalize() override
const std::string & name() const override
Retrieve name of the service.
SmartIF< IFace > service(const std::string &name, bool createIf=true) const
StatusCode initialize() override
This class is used for returning status codes from appropriate routines.
constexpr static const auto FAILURE
GAUDI_API const EventContext & currentContext()