ATLAS Offline Software
TgcStrip_v1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // EDM include(s):
7 // Local include(s):
10 #include "GaudiKernel/ServiceHandle.h"
13 #include "StoreGate/StoreGateSvc.h"
14 
15 namespace {
16  static const std::string preFixStr{"Tgc_"};
17 }
18 
19 namespace xAOD {
20 
21 IMPLEMENT_SETTER_GETTER(TgcStrip_v1, uint16_t, bcBitMap, setBcBitMap)
22 IMPLEMENT_SETTER_GETTER(TgcStrip_v1, uint16_t, channelNumber, setChannelNumber)
23 IMPLEMENT_SETTER_GETTER(TgcStrip_v1, uint8_t, gasGap, setGasGap)
24 IMPLEMENT_SETTER_GETTER(TgcStrip_v1, uint8_t, measuresPhi, setMeasuresPhi)
25 IMPLEMENT_READOUTELEMENT(TgcStrip_v1, m_readoutEle, TgcReadoutElement)
26 
27 IdentifierHash TgcStrip_v1::measurementHash() const {
28  return MuonGMR4::TgcReadoutElement::constructHash(channelNumber(), gasGap(), measuresPhi());
29 }
31  if (!m_identifier.isValid()){
32  m_identifier.set(readoutElement()->measurementId(measurementHash()));
33  }
34  return (*m_identifier.ptr());
35 }
38 }
39 } // namespace xAOD
40 #undef IMPLEMENT_SETTER_GETTER
dumpTgcDigiDeadChambers.gasGap
list gasGap
Definition: dumpTgcDigiDeadChambers.py:33
xAOD::TgcStrip_v1::measurementHash
IdentifierHash measurementHash() const
Returns the hash of the measurement channel
Definition: TgcStrip_v1.cxx:27
CxxUtils::CachedValue::ptr
const T * ptr() const
Return a pointer to the cached value.
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:557
TgcStrip_v1.h
CxxUtils::CachedValue::isValid
bool isValid() const
Test to see if the value is valid.
xAOD::TgcStrip_v1
Definition: TgcStrip_v1.h:19
xAOD::TgcStrip_v1::gasGap
uint8_t gasGap() const
Associated gas gap number of the Tgc strip measurement Ranges [1-N].
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::TgcStrip_v1::m_identifier
CxxUtils::CachedValue< Identifier > m_identifier
Definition: TgcStrip_v1.h:79
ParamDefs.h
IMPLEMENT_READOUTELEMENT
#define IMPLEMENT_READOUTELEMENT(CLASS_NAME, CACHED_VALUE, READOUT_ELEMENT_TYPE)
Macro to handle the readoutElement.
Definition: AccessorMacros.h:55
MuonGMR4::TgcReadoutElement::constructHash
static IdentifierHash constructHash(unsigned int measCh, unsigned int gasGap, const bool isStrip)
Constructs the Hash out of the Identifier fields (channel, gasGap, isStrip)
xAOD::TgcStrip_v1::layerHash
IdentifierHash layerHash() const
Returns the hash of the associated layer (Needed for surface retrieval)
Definition: TgcStrip_v1.cxx:36
AccessorMacros.h
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:93
MuonDetectorManager.h
xAOD::TgcStrip_v1::readoutElement
const MuonGMR4::TgcReadoutElement * readoutElement() const
Retrieve the associated TgcReadoutElement.
CxxUtils::CachedValue::set
void set(const T &val) const
Set the value, assuming it is currently invalid.
xAOD::TgcStrip_v1::identify
const Identifier & identify() const
: Returns the Athena identifier of the measurement It's constructed from the measurementHash & passed...
Definition: TgcStrip_v1.cxx:30
IMPLEMENT_SETTER_GETTER
#define IMPLEMENT_SETTER_GETTER(DTYPE, GETTER, SETTER)
Definition: NRPCRDO_v1.cxx:13
xAOD::TgcStrip_v1::measuresPhi
uint8_t measuresPhi() const
Does the object belong to an eta or a phi measurement (si /no)
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition: IdentifierHash.h:25
StoreGateSvc.h
TgcReadoutElement.h
Identifier
Definition: IdentifierFieldParser.cxx:14