6#include "GaudiKernel/Incident.h"
19 ATH_MSG_ERROR(
"Need to have at least one incident defined!" <<name());
20 return StatusCode::FAILURE;
22 return StatusCode::SUCCESS;
31 m_incSvc->fireIncident(Incident(name(), inc, ctx));
34 m_incSvc->fireIncident(std::make_unique<Incident>(name(), inc, ctx));
37 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
AthIncFirerAlg(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Property< bool > m_serial
Gaudi::Property< std::vector< std::string > > m_incidents
ServiceHandle< IIncidentSvc > m_incSvc
virtual StatusCode execute(const EventContext &ctx) const override
virtual StatusCode initialize() override
An algorithm that can be simultaneously executed in multiple threads.