ATLAS Offline Software
TgcCondDbData.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
8  m_idHelperSvc{idHelperSvc}{}
9 
12 }
13 bool TgcCondDbData::isGood(const Identifier & Id) const {
14  return !m_cachedDeadStationsId.count(m_idHelperSvc->gasGapId(Id));
15 }
TgcCondDbData::m_idHelperSvc
const Muon::IMuonIdHelperSvc * m_idHelperSvc
Definition: TgcCondDbData.h:31
TgcCondDbData::isGood
bool isGood(const Identifier &channelId) const
Returns whether the channelId does not belong to a dead gasGap.
Definition: TgcCondDbData.cxx:13
TgcCondDbData.h
TgcCondDbData::TgcCondDbData
TgcCondDbData(const Muon::IMuonIdHelperSvc *idHelperSvc)
Definition: TgcCondDbData.cxx:7
Muon::IMuonIdHelperSvc::gasGapId
virtual Identifier gasGapId(const Identifier &id) const =0
create a gasGap ID (will return layer Id for MDTs)
Muon::IMuonIdHelperSvc
Interface for Helper service that creates muon Identifiers and can be used to print Identifiers.
Definition: IMuonIdHelperSvc.h:27
TgcCondDbData::m_cachedDeadStationsId
std::unordered_set< Identifier > m_cachedDeadStationsId
Definition: TgcCondDbData.h:32
TgcCondDbData::setDeadGasGap
void setDeadGasGap(const Identifier &id)
Declare all channels wires + strips in a gasGap as dead.
Definition: TgcCondDbData.cxx:10
Identifier
Definition: IdentifierFieldParser.cxx:14