ATLAS Offline Software
MuonSpectrometer
MuonConditions
MuonCondGeneral
MuonCondData
src
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
5
#include "
MuonCondData/TgcCondDbData.h
"
6
7
TgcCondDbData::TgcCondDbData
(
const
Muon::IMuonIdHelperSvc
* idHelperSvc):
8
m_idHelperSvc{idHelperSvc}{}
9
10
void
TgcCondDbData::setDeadGasGap
(
const
Identifier
& Id) {
11
m_cachedDeadStationsId
.insert(
m_idHelperSvc
->
gasGapId
(Id));
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:26
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
Generated on Thu Nov 7 2024 21:27:39 for ATLAS Offline Software by
1.8.18