ATLAS Offline Software
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
Muon::TGCCablingServerSvc Class Reference

#include <TGCCablingServerSvc.h>

Inheritance diagram for Muon::TGCCablingServerSvc:
Collaboration diagram for Muon::TGCCablingServerSvc:

Public Member Functions

 TGCCablingServerSvc (const std::string &name, ISvcLocator *svc)
 
virtual ~TGCCablingServerSvc ()=default
 
virtual StatusCode queryInterface (const InterfaceID &riid, void **ppvIF)
 
virtual StatusCode giveCabling (const ITGCcablingSvc *&) const
 
virtual bool isAtlas (void) const
 
MsgStream & msg () const
 
MsgStream & msg (const MSG::Level lvl) const
 
bool msgLvl (const MSG::Level lvl) const
 

Static Public Member Functions

static const InterfaceID & interfaceID ()
 

Private Attributes

BooleanProperty m_atlas {this, "Atlas", true, "Controls whether using ATLAS cabling, or from testbeams etc"}
 

Detailed Description

Definition at line 13 of file TGCCablingServerSvc.h.

Constructor & Destructor Documentation

◆ TGCCablingServerSvc()

Muon::TGCCablingServerSvc::TGCCablingServerSvc ( const std::string &  name,
ISvcLocator *  svc 
)

Definition at line 17 of file TGCCablingServerSvc.cxx.

17  :
18 AthService(name, sl) {}

◆ ~TGCCablingServerSvc()

virtual Muon::TGCCablingServerSvc::~TGCCablingServerSvc ( )
virtualdefault

Member Function Documentation

◆ giveCabling()

StatusCode Muon::TGCCablingServerSvc::giveCabling ( const ITGCcablingSvc *&  cabling) const
virtual

Implements ITGCcablingServerSvc.

Definition at line 33 of file TGCCablingServerSvc.cxx.

33  {
34  ATH_MSG_DEBUG ( "requesting instance of TGCcabling" );
35 
36  cabling = nullptr;
37 
38  if(m_atlas) {
39  ATH_CHECK( service("MuonTGC_CablingSvc",cabling,true) );
40  } else {
41  ATH_CHECK( service("TGCcablingSvc",cabling,true) );
42  }
43 
44  return StatusCode::SUCCESS;
45 }

◆ interfaceID()

static const InterfaceID& ITGCcablingServerSvc::interfaceID ( )
inlinestaticinherited

Definition at line 20 of file ITGCcablingServerSvc.h.

20 { return IID_TGCcablingServerSvc; }

◆ isAtlas()

bool Muon::TGCCablingServerSvc::isAtlas ( void  ) const
virtual

Implements ITGCcablingServerSvc.

Definition at line 47 of file TGCCablingServerSvc.cxx.

47  {
48  return m_atlas;
49 }

◆ 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 Muon::TGCCablingServerSvc::queryInterface ( const InterfaceID &  riid,
void **  ppvIF 
)
virtual

Definition at line 20 of file TGCCablingServerSvc.cxx.

20  {
21  if( IID_TGCcablingServerSvc.versionMatch(riid) )
22  {
23  *ppvIF = dynamic_cast<ITGCcablingServerSvc*>(this);
24  } else {
25  ATH_MSG_DEBUG ( name() << " cast to Service Interface" );
26  return AthService::queryInterface(riid, ppvIF);
27  }
28 
29  addRef();
30  return StatusCode::SUCCESS;
31 }

Member Data Documentation

◆ m_atlas

BooleanProperty Muon::TGCCablingServerSvc::m_atlas {this, "Atlas", true, "Controls whether using ATLAS cabling, or from testbeams etc"}
private

Definition at line 27 of file TGCCablingServerSvc.h.


The documentation for this class was generated from the following files:
AthService::AthService
AthService()
ReadCellNoiseFromCool.cabling
cabling
Definition: ReadCellNoiseFromCool.py:154
Muon::TGCCablingServerSvc::m_atlas
BooleanProperty m_atlas
Definition: TGCCablingServerSvc.h:27
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
ITGCcablingServerSvc
Definition: ITGCcablingServerSvc.h:16