ATLAS Offline Software
Public Member Functions | Static Public Member Functions | List of all members
TRT_ConditionsTestSvc Class Reference

#include <TRT_ConditionsTestSvc.h>

Inheritance diagram for TRT_ConditionsTestSvc:
Collaboration diagram for TRT_ConditionsTestSvc:

Public Member Functions

 TRT_ConditionsTestSvc (const std::string &name, ISvcLocator *pSvcLocator)
 Constructor //. More...
 
virtual ~TRT_ConditionsTestSvc ()
 Destructor //. More...
 
virtual StatusCode initialize ()
 Initialize //. More...
 
virtual StatusCode finalize ()
 Finalize //. More...
 
virtual StatusCode queryInterface (const InterfaceID &riid, void **ppvInterface)
 Query Interface. More...
 
MsgStream & msg () const
 
MsgStream & msg (const MSG::Level lvl) const
 
bool msgLvl (const MSG::Level lvl) const
 
Functions inherited from ITRT_ConditionsTestSvc
StatusCode test (const Identifier &)
 Test Method. More...
 
Functions inherited from ITRT_ConditionsSvc
InDet::TRT_CondFlag condSummaryStatus (const Identifier &)
 Evaluation for TRT_ConditionsSummarySvc. More...
 

Static Public Member Functions

static const InterfaceID & interfaceID ()
 
static const InterfaceID & interfaceID ()
 Interface ID. More...
 

Detailed Description

Definition at line 19 of file TRT_ConditionsTestSvc.h.

Constructor & Destructor Documentation

◆ TRT_ConditionsTestSvc()

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

Constructor //.

Definition at line 17 of file TRT_ConditionsTestSvc.cxx.

18  :
19  AthService( name, pSvcLocator )
20 {
21 }

◆ ~TRT_ConditionsTestSvc()

TRT_ConditionsTestSvc::~TRT_ConditionsTestSvc ( )
virtualdefault

Destructor //.

Member Function Documentation

◆ condSummaryStatus()

InDet::TRT_CondFlag TRT_ConditionsTestSvc::condSummaryStatus ( const Identifier )
virtual

Evaluation for TRT_ConditionsSummarySvc.

StatusFlag for TRT_ConditionsSummaryTool (by Identifier) //.

Function inherited from ITRT_ConditionsSvc. Simply returns a InDet::TRT_GOOD.

Implements ITRT_ConditionsSvc.

Definition at line 41 of file TRT_ConditionsTestSvc.cxx.

41  {
42  return InDet::TRT_COND_GOOD;
43 }

◆ finalize()

StatusCode TRT_ConditionsTestSvc::finalize ( )
virtual

Finalize //.

Definition at line 48 of file TRT_ConditionsTestSvc.cxx.

48  {
49  return StatusCode::SUCCESS;
50 }

◆ initialize()

StatusCode TRT_ConditionsTestSvc::initialize ( )
virtual

Initialize //.

Definition at line 31 of file TRT_ConditionsTestSvc.cxx.

31  {
32  if (msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "TRT_ConditionsTestSvc: Initialize." << endmsg;
33  StatusCode sc(StatusCode::SUCCESS);
34 
35  return StatusCode::SUCCESS;
36 }

◆ interfaceID() [1/2]

const InterfaceID & ITRT_ConditionsTestSvc::interfaceID ( )
inlinestaticinherited

Interface ID.

Definition at line 34 of file ITRT_ConditionsTestSvc.h.

34  {
35  static const InterfaceID IID("ITRT_ConditionsTestSvc",1,0);
36  return IID;
37 }

◆ interfaceID() [2/2]

const InterfaceID & ITRT_ConditionsSvc::interfaceID ( )
inlinestaticinherited

Definition at line 45 of file ITRT_ConditionsSvc.h.

45  {
46  static const InterfaceID IID("ITRT_ConditionsSvc",1,0);
47  return IID;
48 }

◆ msg() [1/2]

MsgStream& AthCommonMsg< Service >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24  {
25  return this->msgStream();
26  }

◆ msg() [2/2]

MsgStream& AthCommonMsg< Service >::msg ( const MSG::Level  lvl) const
inlineinherited

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

◆ msgLvl()

bool AthCommonMsg< Service >::msgLvl ( const MSG::Level  lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30  {
31  return this->msgLevel(lvl);
32  }

◆ queryInterface()

StatusCode TRT_ConditionsTestSvc::queryInterface ( const InterfaceID &  riid,
void **  ppvInterface 
)
inlinevirtual

Query Interface.

Definition at line 61 of file TRT_ConditionsTestSvc.h.

61  {
62  if ( ITRT_ConditionsSvc::interfaceID() == riid ) {
63  ATH_MSG_DEBUG("TRT_ConditionsTestSvc interface queried as ITRT_ConditionsSvc.");
64  *ppvInterface = dynamic_cast<ITRT_ConditionsSvc*>(this);
65  addRef();
66  } else if ( ITRT_ConditionsTestSvc::interfaceID() == riid ) {
67  ATH_MSG_DEBUG("TRT_ConditionsTestSvc interface queried as ITRT_ConditionsTestSvc.");
68  *ppvInterface = dynamic_cast<ITRT_ConditionsTestSvc*>(this);
69  addRef();
70  } else {
71  ATH_MSG_DEBUG("TRT_ConditionsTestSvc interface queried as Service.");
72  return AthService::queryInterface( riid, ppvInterface );
73  }
74  return StatusCode::SUCCESS;
75 }

◆ test()

StatusCode TRT_ConditionsTestSvc::test ( const Identifier )
inlinevirtual

Test Method.

Function inherited from ITRT_ConditionsTestSvc. Simply prints "Hello World."

Implements ITRT_ConditionsTestSvc.

Definition at line 77 of file TRT_ConditionsTestSvc.h.

77  {
78  ATH_MSG_INFO("Hello World! From TRT_ConditionsTestSvc.");
79  return StatusCode::SUCCESS;
80 }

The documentation for this class was generated from the following files:
AthService::AthService
AthService()
ITRT_ConditionsSvc::interfaceID
static const InterfaceID & interfaceID()
Definition: ITRT_ConditionsSvc.h:45
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
AthCommonMsg< Service >::msgLvl
bool msgLvl(const MSG::Level lvl) const
Definition: AthCommonMsg.h:30
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
ITRT_ConditionsSvc
Definition: ITRT_ConditionsSvc.h:34
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
ITRT_ConditionsTestSvc::interfaceID
static const InterfaceID & interfaceID()
Interface ID.
Definition: ITRT_ConditionsTestSvc.h:34
ITRT_ConditionsTestSvc
Definition: ITRT_ConditionsTestSvc.h:18
DEBUG
#define DEBUG
Definition: page_access.h:11
AthCommonMsg< Service >::msg
MsgStream & msg() const
Definition: AthCommonMsg.h:24
InDet::TRT_COND_GOOD
@ TRT_COND_GOOD
Definition: ITRT_ConditionsSvc.h:21