ATLAS Offline Software
Loading...
Searching...
No Matches
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"
14
15namespace {
16 static const std::string preFixStr{"Tgc_"};
17}
18
19namespace xAOD {
20
21IMPLEMENT_SETTER_GETTER(TgcStrip_v1, uint16_t, bcBitMap, setBcBitMap)
22IMPLEMENT_SETTER_GETTER(TgcStrip_v1, uint16_t, channelNumber, setChannelNumber)
24IMPLEMENT_SETTER_GETTER(TgcStrip_v1, uint8_t, measuresPhi, setMeasuresPhi)
25IMPLEMENT_READOUTELEMENT(TgcStrip_v1, m_readoutEle, TgcReadoutElement)
26
31 if (!m_identifier.isValid()){
32 m_identifier.set(readoutElement()->measurementId(measurementHash()));
33 }
34 return (*m_identifier.ptr());
35}
40 return localPosition<1>()[0] * Amg::Vector3D::Unit(measuresPhi());
41}
42} // namespace xAOD
43#undef IMPLEMENT_SETTER_GETTER
#define IMPLEMENT_READOUTELEMENT(CLASS_NAME, CACHED_VALUE, READOUT_ELEMENT_TYPE)
Macro to handle the readoutElement.
#define IMPLEMENT_SETTER_GETTER(DTYPE, GETTER, SETTER)
This is a "hash" representation of an Identifier.
static IdentifierHash constructHash(unsigned measCh, unsigned gasGap, const bool isStrip)
Constructs the Hash out of the Identifier fields (channel, gasGap, isStrip)
const Identifier & identify() const
: Returns the Athena identifier of the measurement It's constructed from the measurementHash & passed...
uint16_t channelNumber() const
Strip or wire group number of the Tgc strip measurement.
Amg::Vector3D localMeasurementPos() const
Returns the local position of the measurement.
TgcStrip_v1()=default
Default constructor.
IdentifierHash layerHash() const
Returns the hash of the associated layer (Needed for surface retrieval)
const MuonGMR4::TgcReadoutElement * readoutElement() const
Retrieve the associated TgcReadoutElement.
IdentifierHash measurementHash() const
Returns the hash of the measurement channel.
uint8_t measuresPhi() const
Does the object belong to an eta or a phi measurement (si /no)
CxxUtils::CachedValue< Identifier > m_identifier
Definition TgcStrip_v1.h:74
uint8_t gasGap() const
Associated gas gap number of the Tgc strip measurement Ranges [1-N].
ConstVectorMap< N > localPosition() const
Returns the local position of the measurement.
Eigen::Matrix< double, 3, 1 > Vector3D
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
setWord1 uint16_t