ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
PerfMonMTAuditor Class Reference

#include <PerfMonMTAuditor.h>

Inheritance diagram for PerfMonMTAuditor:
Collaboration diagram for PerfMonMTAuditor:

Public Member Functions

 PerfMonMTAuditor (const std::string &name, ISvcLocator *pSvcLocator)
 Constructor. More...
 
virtual StatusCode initialize () override
 Gaudi hooks. More...
 
virtual void before (const std::string &event, const std::string &name, const EventContext &) override
 Implement inherited methods from Auditor. More...
 
virtual void after (const std::string &event, const std::string &name, const EventContext &, const StatusCode &) override
 

Private Attributes

ServiceHandle< IPerfMonMTSvcm_perfMonMTSvc
 Handle to PerfMonMTSvc. More...
 

Detailed Description

Definition at line 18 of file PerfMonMTAuditor.h.

Constructor & Destructor Documentation

◆ PerfMonMTAuditor()

PerfMonMTAuditor::PerfMonMTAuditor ( const std::string &  name,
ISvcLocator *  pSvcLocator 
)

Constructor.

Definition at line 18 of file PerfMonMTAuditor.cxx.

19  :
20  Auditor ( name, pSvcLocator ),
21  m_perfMonMTSvc ( "PerfMonMTSvc", name )
22 {
23 }

Member Function Documentation

◆ after()

void PerfMonMTAuditor::after ( const std::string &  event,
const std::string &  name,
const EventContext &  ,
const StatusCode &   
)
overridevirtual

Definition at line 43 of file PerfMonMTAuditor.cxx.

44  {
45  m_perfMonMTSvc->stopAud( event , name );
46 }

◆ before()

void PerfMonMTAuditor::before ( const std::string &  event,
const std::string &  name,
const EventContext &   
)
overridevirtual

Implement inherited methods from Auditor.

Definition at line 38 of file PerfMonMTAuditor.cxx.

39  {
40  m_perfMonMTSvc->startAud( event , name );
41 }

◆ initialize()

StatusCode PerfMonMTAuditor::initialize ( )
overridevirtual

Gaudi hooks.

Definition at line 28 of file PerfMonMTAuditor.cxx.

29 {
30  ATH_CHECK( m_perfMonMTSvc.retrieve() );
31 
32  return StatusCode::SUCCESS;
33 }

Member Data Documentation

◆ m_perfMonMTSvc

ServiceHandle< IPerfMonMTSvc > PerfMonMTAuditor::m_perfMonMTSvc
private

Handle to PerfMonMTSvc.

Definition at line 38 of file PerfMonMTAuditor.h.


The documentation for this class was generated from the following files:
event
POOL::TEvent event(POOL::TEvent::kClassAccess)
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
PerfMonMTAuditor::m_perfMonMTSvc
ServiceHandle< IPerfMonMTSvc > m_perfMonMTSvc
Handle to PerfMonMTSvc.
Definition: PerfMonMTAuditor.h:38