ATLAS Offline Software
Loading...
Searching...
No Matches
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.
bool isGood (const Identifier &channelId) const
 Returns whether the channelId does not belong to a dead gasGap.

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}{}
const Muon::IMuonIdHelperSvc * m_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}
std::unordered_set< Identifier > m_cachedDeadStationsId

◆ 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 {
11 m_cachedDeadStationsId.insert(m_idHelperSvc->gasGapId(Id));
12}

Member Data Documentation

◆ m_cachedDeadStationsId

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

Definition at line 32 of file TgcCondDbData.h.

32{};

◆ m_idHelperSvc

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

Definition at line 31 of file TgcCondDbData.h.

31{nullptr};

The documentation for this class was generated from the following files: