ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
TgcCondDbData Class Reference

Conditions object to mark switched-off Tgc gasGaps. More...

#include <TgcCondDbData.h>

Collaboration diagram for TgcCondDbData:

Public Member Functions

 TgcCondDbData (const Muon::IMuonIdHelperSvc *idHelperSvc)
 
virtual ~TgcCondDbData ()=default
 
void setDeadGasGap (const Identifier &id)
 Declare all channels wires + strips in a gasGap as dead. More...
 
bool isGood (const Identifier &channelId) const
 Returns whether the channelId does not belong to a dead gasGap. More...
 

Private Attributes

const Muon::IMuonIdHelperSvcm_idHelperSvc {nullptr}
 
std::unordered_set< Identifierm_cachedDeadStationsId {}
 

Detailed Description

Conditions object to mark switched-off Tgc gasGaps.

Definition at line 20 of file TgcCondDbData.h.

Constructor & Destructor Documentation

◆ TgcCondDbData()

TgcCondDbData::TgcCondDbData ( const Muon::IMuonIdHelperSvc idHelperSvc)

Definition at line 7 of file TgcCondDbData.cxx.

7  :
8  m_idHelperSvc{idHelperSvc}{}

◆ ~TgcCondDbData()

virtual TgcCondDbData::~TgcCondDbData ( )
virtualdefault

Member Function Documentation

◆ isGood()

bool TgcCondDbData::isGood ( const Identifier channelId) const

Returns whether the channelId does not belong to a dead gasGap.

Definition at line 13 of file TgcCondDbData.cxx.

13  {
14  return !m_cachedDeadStationsId.count(m_idHelperSvc->gasGapId(Id));
15 }

◆ setDeadGasGap()

void TgcCondDbData::setDeadGasGap ( const Identifier id)

Declare all channels wires + strips in a gasGap as dead.

Definition at line 10 of file TgcCondDbData.cxx.

10  {
12 }

Member Data Documentation

◆ m_cachedDeadStationsId

std::unordered_set<Identifier> TgcCondDbData::m_cachedDeadStationsId {}
private

Definition at line 32 of file TgcCondDbData.h.

◆ m_idHelperSvc

const Muon::IMuonIdHelperSvc* TgcCondDbData::m_idHelperSvc {nullptr}
private

Definition at line 31 of file TgcCondDbData.h.


The documentation for this class was generated from the following files:
TgcCondDbData::m_idHelperSvc
const Muon::IMuonIdHelperSvc * m_idHelperSvc
Definition: TgcCondDbData.h:31
Muon::IMuonIdHelperSvc::gasGapId
virtual Identifier gasGapId(const Identifier &id) const =0
create a gasGap ID (will return layer Id for MDTs)
TgcCondDbData::m_cachedDeadStationsId
std::unordered_set< Identifier > m_cachedDeadStationsId
Definition: TgcCondDbData.h:32