ATLAS Offline Software
Loading...
Searching...
No Matches
PerfMonMTAuditor.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5// Framework includes
7
8// PerfMonKernel includes
10
11// PerfMonComps includes
12#include "PerfMonMTAuditor.h"
13
14
15/*
16 * Constructor
17 */
18PerfMonMTAuditor::PerfMonMTAuditor( const std::string& name,
19 ISvcLocator* pSvcLocator ) :
20 Auditor ( name, pSvcLocator ),
21 m_perfMonMTSvc ( "PerfMonMTSvc", name )
22{
23}
24
25/*
26 * Initialize the Auditor
27 */
29{
30 ATH_CHECK( m_perfMonMTSvc.retrieve() );
31
32 return StatusCode::SUCCESS;
33}
34
35/*
36 * Implementation of base class methods
37 */
38void PerfMonMTAuditor::before(const std::string& event, const std::string& name,
39 const EventContext& ctx) {
40 m_perfMonMTSvc->startAud( event , name , ctx );
41}
42
43void PerfMonMTAuditor::after(const std::string& event, const std::string& name,
44 const EventContext& ctx, const StatusCode&) {
45 m_perfMonMTSvc->stopAud( event , name , ctx);
46}
#define ATH_CHECK
Evaluate an expression and check for errors.
virtual void before(const std::string &event, const std::string &name, const EventContext &) override
Implement inherited methods from Auditor.
PerfMonMTAuditor(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
virtual void after(const std::string &event, const std::string &name, const EventContext &, const StatusCode &) override
virtual StatusCode initialize() override
Gaudi hooks.
ServiceHandle< IPerfMonMTSvc > m_perfMonMTSvc
Handle to PerfMonMTSvc.