|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #include "GaudiKernel/ThreadLocalContext.h"
14 Auditor(
name, pSvcLocator),
25 return StatusCode::SUCCESS;
32 return StatusCode::SUCCESS;
40 callService(caller, ITrigCostSvc::AuditType::Before);
49 callService(caller, ITrigCostSvc::AuditType::After);
57 ATH_MSG_FATAL(
"Error in TrigCostSvc called by TrigCostAuditor, auditing algorithm: " << caller);
58 throw std::runtime_error(
"TrigCostAuditor exception");
void callService(const std::string &caller, ITrigCostSvc::AuditType type)
Performs internal call to the trigger cost service.
virtual void before(StandardEventType evt, const std::string &caller) override
Audit before an algorithm standard event type is called.
virtual StatusCode initialize() override
Initialise auditor.
msgSvc
Provide convenience handles for various services.
::StatusCode StatusCode
StatusCode definition for legacy code.
Class to provide easy MsgStream access and capabilities.
ServiceHandle< ITrigCostSvc > m_trigCostSvcHandle
TrigCostAuditor(const std::string &name, ISvcLocator *svcloc)
< Inherit CustomEventType as a noop
AuditType
Disambiguation enum for the start or the end of an algorithm's execution.
virtual void after(StandardEventType evt, const std::string &, const StatusCode &sc) override
Audit after an algorithm standard event type is called.
virtual StatusCode finalize() override
Does nothing.