ATLAS Offline Software
Loading...
Searching...
No Matches
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.
virtual StatusCode initialize () override
 Gaudi hooks.
virtual void before (const std::string &event, const std::string &name, const EventContext &) override
 Implement inherited methods from Auditor.
virtual void after (const std::string &event, const std::string &name, const EventContext &, const StatusCode &) override

Private Attributes

ServiceHandle< IPerfMonMTSvcm_perfMonMTSvc
 Handle to PerfMonMTSvc.

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}
ServiceHandle< IPerfMonMTSvc > m_perfMonMTSvc
Handle to PerfMonMTSvc.

Member Function Documentation

◆ after()

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

Definition at line 43 of file PerfMonMTAuditor.cxx.

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

◆ before()

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

Implement inherited methods from Auditor.

Definition at line 38 of file PerfMonMTAuditor.cxx.

39 {
40 m_perfMonMTSvc->startAud( event , name , ctx );
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}
#define ATH_CHECK
Evaluate an expression and check for errors.

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: