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...
 
void before (StandardEventType, INamedInterface *) override
 Implement inherited methods from Auditor. More...
 
void before (StandardEventType, const std::string &) override
 
void before (CustomEventTypeRef, INamedInterface *) override
 
void before (CustomEventTypeRef, const std::string &) override
 
void after (StandardEventType, INamedInterface *, const StatusCode &) override
 
void after (StandardEventType, const std::string &, const StatusCode &) override
 
void after (CustomEventTypeRef, INamedInterface *, const StatusCode &) override
 
void after (CustomEventTypeRef, const std::string &, const StatusCode &) override
 

Private Attributes

ServiceHandle< IPerfMonMTSvcm_perfMonMTSvc
 Handle to PerfMonMTSvc. More...
 

Detailed Description

Definition at line 19 of file PerfMonMTAuditor.h.

Constructor & Destructor Documentation

◆ PerfMonMTAuditor()

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

Constructor.

Definition at line 19 of file PerfMonMTAuditor.cxx.

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

Member Function Documentation

◆ after() [1/4]

void PerfMonMTAuditor::after ( CustomEventTypeRef  etype,
const std::string &  compName,
const StatusCode &   
)
override

Definition at line 71 of file PerfMonMTAuditor.cxx.

71  {
72  return m_perfMonMTSvc->stopAud( etype, compName );
73 }

◆ after() [2/4]

void PerfMonMTAuditor::after ( CustomEventTypeRef  etype,
INamedInterface *  component,
const StatusCode &   
)
override

Definition at line 67 of file PerfMonMTAuditor.cxx.

67  {
68  return m_perfMonMTSvc->stopAud( etype, component->name() );
69 }

◆ after() [3/4]

void PerfMonMTAuditor::after ( StandardEventType  etype,
const std::string &  compName,
const StatusCode &   
)
override

Definition at line 63 of file PerfMonMTAuditor.cxx.

63  {
64  return m_perfMonMTSvc->stopAud( toStr(etype), compName );
65 }

◆ after() [4/4]

void PerfMonMTAuditor::after ( StandardEventType  etype,
INamedInterface *  component,
const StatusCode &   
)
override

Definition at line 59 of file PerfMonMTAuditor.cxx.

59  {
60  return m_perfMonMTSvc->stopAud( toStr(etype), component->name() );
61 }

◆ before() [1/4]

void PerfMonMTAuditor::before ( CustomEventTypeRef  etype,
const std::string &  compName 
)
override

Definition at line 55 of file PerfMonMTAuditor.cxx.

55  {
56  return m_perfMonMTSvc->startAud( etype , compName );
57 }

◆ before() [2/4]

void PerfMonMTAuditor::before ( CustomEventTypeRef  etype,
INamedInterface *  component 
)
override

Definition at line 51 of file PerfMonMTAuditor.cxx.

51  {
52  return m_perfMonMTSvc->startAud( etype , component->name() );
53 }

◆ before() [3/4]

void PerfMonMTAuditor::before ( StandardEventType  etype,
const std::string &  compName 
)
override

Definition at line 47 of file PerfMonMTAuditor.cxx.

47  {
48  return m_perfMonMTSvc->startAud( toStr(etype) , compName );
49 }

◆ before() [4/4]

void PerfMonMTAuditor::before ( StandardEventType  etype,
INamedInterface *  component 
)
override

Implement inherited methods from Auditor.

Definition at line 43 of file PerfMonMTAuditor.cxx.

43  {
44  return m_perfMonMTSvc->startAud( toStr(etype) , component->name() );
45 }

◆ initialize()

StatusCode PerfMonMTAuditor::initialize ( )
overridevirtual

Gaudi hooks.

Definition at line 30 of file PerfMonMTAuditor.cxx.

31 {
32 
33  if ( !m_perfMonMTSvc.retrieve().isSuccess() ) {
34  return StatusCode::FAILURE;
35  }
36 
37  return StatusCode::SUCCESS;
38 }

Member Data Documentation

◆ m_perfMonMTSvc

ServiceHandle< IPerfMonMTSvc > PerfMonMTAuditor::m_perfMonMTSvc
private

Handle to PerfMonMTSvc.

Definition at line 50 of file PerfMonMTAuditor.h.


The documentation for this class was generated from the following files:
AddEmptyComponent.compName
compName
Definition: AddEmptyComponent.py:32
Ringer::toStr
const char * toStr(SegmentationType e)
Transform enumeration types to string.
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
PerfMonMTAuditor::m_perfMonMTSvc
ServiceHandle< IPerfMonMTSvc > m_perfMonMTSvc
Handle to PerfMonMTSvc.
Definition: PerfMonMTAuditor.h:50