ATLAS Offline Software
Public Member Functions | Static Public Member Functions | Private Types | Private Attributes | Friends | List of all members
TileCablingSvc Class Reference

#include <TileCablingSvc.h>

Inheritance diagram for TileCablingSvc:
Collaboration diagram for TileCablingSvc:

Public Member Functions

 TileCablingSvc (const std::string &name, ISvcLocator *pSvcLocator)
 
virtual ~TileCablingSvc ()
 
virtual StatusCode initialize ATLAS_NOT_THREAD_SAFE () override
 
virtual StatusCode finalize () override
 
virtual StatusCode queryInterface (const InterfaceID &riid, void **ppvInterface) override
 
const TileCablingServicecablingService () const
 
const std::vector< std::string > & connectedDrawers () const
 
const std::vector< Identifier > & disconnectedCells () 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 Types

enum  MAX_TILE_CELLS { MAX_TILE_CELLS_UPGRADEA = 11200, MAX_TILE_CELLS_UPGRADEBC = 6208, MAX_TILE_CELLS_UPGRADEABC = 12224 }
 

Private Attributes

const TileCablingServicem_cablingService
 
std::vector< std::string > m_connectedDrawers
 
ServiceHandle< StoreGateSvcm_detStore
 
int m_cablingType
 
bool m_useCache
 
std::vector< Identifierm_disconnectedCells
 

Friends

class SvcFactory< TileCablingSvc >
 

Detailed Description

Definition at line 29 of file TileCablingSvc.h.

Member Enumeration Documentation

◆ MAX_TILE_CELLS

Enumerator
MAX_TILE_CELLS_UPGRADEA 
MAX_TILE_CELLS_UPGRADEBC 
MAX_TILE_CELLS_UPGRADEABC 

Definition at line 78 of file TileCablingSvc.h.

Constructor & Destructor Documentation

◆ TileCablingSvc()

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

Definition at line 37 of file TileCablingSvc.cxx.

38  : AthService(name, pSvcLocator)
39  , m_cablingService(nullptr)
40  , m_detStore("DetectorStore", name)
41 {
42  declareProperty("ConnectedDrawers", m_connectedDrawers, "List of connected drawer ranges: starts,end1,start2,end2,...");
43  declareProperty("CablingType", m_cablingType = -9, "Cabling type: -1 - testbeam, 0 - old simulation, 1 - without MBTS, 2 - with MBTS instead of crack scin, 3 - MBTS in spare channels, 4 - RUN2 cabling, 5 - RUN2a cabling");
44  declareProperty("UseCache", m_useCache = true, "Use cache for channel_id to cell_id conversion");
45 }

◆ ~TileCablingSvc()

virtual TileCablingSvc::~TileCablingSvc ( )
inlinevirtual

Definition at line 35 of file TileCablingSvc.h.

35  {
36  }

Member Function Documentation

◆ ATLAS_NOT_THREAD_SAFE()

virtual StatusCode initialize TileCablingSvc::ATLAS_NOT_THREAD_SAFE ( )
overridevirtual

◆ cablingService()

const TileCablingService* TileCablingSvc::cablingService ( ) const
inline

Definition at line 42 of file TileCablingSvc.h.

42  {
43  return m_cablingService;
44  }

◆ connectedDrawers()

const std::vector<std::string>& TileCablingSvc::connectedDrawers ( ) const
inline

Definition at line 46 of file TileCablingSvc.h.

46  {
47  return m_connectedDrawers;
48  }

◆ disconnectedCells()

const std::vector<Identifier>& TileCablingSvc::disconnectedCells ( ) const
inline

Definition at line 49 of file TileCablingSvc.h.

49  {
50  return m_disconnectedCells;
51  }

◆ finalize()

StatusCode TileCablingSvc::finalize ( )
overridevirtual

Definition at line 638 of file TileCablingSvc.cxx.

638  {
639  ATH_MSG_DEBUG( "finalized" );
640  return StatusCode::SUCCESS;
641 }

◆ interfaceID()

const InterfaceID & TileCablingSvc::interfaceID ( )
static

Definition at line 31 of file TileCablingSvc.cxx.

31  {
32  return IID_TileCablingSvc;
33 }

◆ 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 TileCablingSvc::queryInterface ( const InterfaceID &  riid,
void **  ppvInterface 
)
overridevirtual

Definition at line 49 of file TileCablingSvc.cxx.

49  {
50  if (TileCablingSvc::interfaceID().versionMatch(riid)) {
51  *ppvInterface = dynamic_cast<TileCablingSvc*>(this);
52  } else {
53  return AthService::queryInterface(riid, ppvInterface);
54  }
55  addRef();
56  return StatusCode::SUCCESS;
57 }

Friends And Related Function Documentation

◆ SvcFactory< TileCablingSvc >

friend class SvcFactory< TileCablingSvc >
friend

Definition at line 1 of file TileCablingSvc.h.

Member Data Documentation

◆ m_cablingService

const TileCablingService* TileCablingSvc::m_cablingService
private

Definition at line 55 of file TileCablingSvc.h.

◆ m_cablingType

int TileCablingSvc::m_cablingType
private

Definition at line 67 of file TileCablingSvc.h.

◆ m_connectedDrawers

std::vector<std::string> TileCablingSvc::m_connectedDrawers
private

Definition at line 57 of file TileCablingSvc.h.

◆ m_detStore

ServiceHandle<StoreGateSvc> TileCablingSvc::m_detStore
private

Definition at line 65 of file TileCablingSvc.h.

◆ m_disconnectedCells

std::vector<Identifier> TileCablingSvc::m_disconnectedCells
private

Definition at line 72 of file TileCablingSvc.h.

◆ m_useCache

bool TileCablingSvc::m_useCache
private

Definition at line 70 of file TileCablingSvc.h.


The documentation for this class was generated from the following files:
AthService::AthService
AthService()
TileCablingSvc::interfaceID
static const InterfaceID & interfaceID()
Definition: TileCablingSvc.cxx:31
TileCablingSvc::m_connectedDrawers
std::vector< std::string > m_connectedDrawers
Definition: TileCablingSvc.h:57
TileCablingSvc::m_cablingService
const TileCablingService * m_cablingService
Definition: TileCablingSvc.h:55
TileCablingSvc
Definition: TileCablingSvc.h:29
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
TileCablingSvc::m_detStore
ServiceHandle< StoreGateSvc > m_detStore
Definition: TileCablingSvc.h:65
TileCablingSvc::m_disconnectedCells
std::vector< Identifier > m_disconnectedCells
Definition: TileCablingSvc.h:72
TileCablingSvc::MAX_TILE_CELLS_UPGRADEBC
@ MAX_TILE_CELLS_UPGRADEBC
Definition: TileCablingSvc.h:78
TileCablingSvc::MAX_TILE_CELLS_UPGRADEA
@ MAX_TILE_CELLS_UPGRADEA
Definition: TileCablingSvc.h:78
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
TileCablingSvc::MAX_TILE_CELLS_UPGRADEABC
@ MAX_TILE_CELLS_UPGRADEABC
Definition: TileCablingSvc.h:78
TileCablingSvc::m_cablingType
int m_cablingType
Definition: TileCablingSvc.h:67
TileCablingSvc::m_useCache
bool m_useCache
Definition: TileCablingSvc.h:70