ATLAS Offline Software
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  */
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  */
38 void PerfMonMTAuditor::before(const std::string& event, const std::string& name,
39  const EventContext&) {
40  m_perfMonMTSvc->startAud( event , name );
41 }
42 
43 void PerfMonMTAuditor::after(const std::string& event, const std::string& name,
44  const EventContext&, const StatusCode&) {
45  m_perfMonMTSvc->stopAud( event , name );
46 }
PerfMonMTAuditor::after
virtual void after(const std::string &event, const std::string &name, const EventContext &, const StatusCode &) override
Definition: PerfMonMTAuditor.cxx:43
AthCheckMacros.h
IPerfMonMTSvc.h
PerfMonMTAuditor::before
virtual void before(const std::string &event, const std::string &name, const EventContext &) override
Implement inherited methods from Auditor.
Definition: PerfMonMTAuditor.cxx:38
event
POOL::TEvent event(POOL::TEvent::kClassAccess)
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
PerfMonMTAuditor.h
PerfMonMTAuditor::m_perfMonMTSvc
ServiceHandle< IPerfMonMTSvc > m_perfMonMTSvc
Handle to PerfMonMTSvc.
Definition: PerfMonMTAuditor.h:38
PerfMonMTAuditor::PerfMonMTAuditor
PerfMonMTAuditor(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition: PerfMonMTAuditor.cxx:18
PerfMonMTAuditor::initialize
virtual StatusCode initialize() override
Gaudi hooks.
Definition: PerfMonMTAuditor.cxx:28