12Auditor(name, pSvcLocator),
23 return StatusCode::SUCCESS;
30 return StatusCode::SUCCESS;
36 const EventContext& ctx) {
37 if (event != IAuditor::Execute)
return;
46 const EventContext& ctx,
const StatusCode&
sc) {
47 if (event != IAuditor::Execute)
return;
55 const EventContext& ctx) {
57 ATH_MSG_FATAL(
"Error in TrigCostSvc called by TrigCostAuditor, auditing algorithm: " << caller);
58 throw std::runtime_error(
"TrigCostAuditor exception");
#define ATH_CHECK
Evaluate an expression and check for errors.
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
AuditType
Disambiguation enum for the start or the end of an algorithm's execution.
virtual StatusCode finalize() override
Does nothing.
virtual StatusCode initialize() override
Initialise auditor.
virtual void before(const std::string &event, const std::string &caller, const EventContext &ctx) override
Audit before an algorithm standard event type is called.
virtual void after(const std::string &event, const std::string &caller, const EventContext &ctx, const StatusCode &sc) override
Audit after an algorithm standard event type is called.
void callService(const std::string &caller, ITrigCostSvc::AuditType type, const EventContext &ctx)
Performs internal call to the trigger cost service.
TrigCostAuditor(const std::string &name, ISvcLocator *svcloc)
Standard Gaudi Auditor constructor.
ServiceHandle< ITrigCostSvc > m_trigCostSvcHandle