ATLAS Offline Software
Loading...
Searching...
No Matches
TrigCostAuditor.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRIGCOSTMONITOR_TRIGCOSTAUDITOR_H
6#define TRIGCOSTMONITOR_TRIGCOSTAUDITOR_H 1
7
8#include "Gaudi/Auditor.h"
9#include "GaudiKernel/ServiceHandle.h"
10
12
13#include "ITrigCostSvc.h"
14
21class TrigCostAuditor : virtual public Gaudi::Auditor, public AthMessaging {
22
24
25 public:
26
32 TrigCostAuditor( const std::string& name, ISvcLocator* svcloc );
33
38 virtual StatusCode initialize() override;
39
44 virtual StatusCode finalize() override;
45
46
53 virtual void before(const std::string& event, const std::string& caller,
54 const EventContext& ctx) override;
55
63 virtual void after(const std::string& event, const std::string& caller,
64 const EventContext& ctx, const StatusCode& sc) override;
65
66private:
67
74 void callService(const std::string& caller, ITrigCostSvc::AuditType type, const EventContext& ctx);
75
76 ServiceHandle<ITrigCostSvc> m_trigCostSvcHandle { this, "TrigCostSvc", "TrigCostSvc",
77 "The trigger cost service to pass audit information to" };
78
79};
80
81#endif // TRIGCOSTMONITOR_TRIGCOSTAUDITOR_H
static Double_t sc
MsgStream & msg() const
The standard message stream.
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