ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonPhaseII
Event
xAOD
xAODMuonPrepData
Root
TgcStrip_v1.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// EDM include(s):
6
#include "
xAODMuonPrepData/versions/AccessorMacros.h
"
7
// Local include(s):
8
#include "
TrkEventPrimitives/ParamDefs.h
"
9
#include "
xAODMuonPrepData/versions/TgcStrip_v1.h
"
10
#include "GaudiKernel/ServiceHandle.h"
11
#include "
MuonReadoutGeometryR4/MuonDetectorManager.h
"
12
#include "
MuonReadoutGeometryR4/TgcReadoutElement.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
, std::uint8_t, bcBitMap, setBcBitMap)
22
IMPLEMENT_SETTER_GETTER
(
TgcStrip_v1
, std::uint16_t, channelNumber, setChannelNumber)
23
IMPLEMENT_SETTER_GETTER
(
TgcStrip_v1
, std::uint8_t, gasGap, setGasGap)
24
IMPLEMENT_SETTER_GETTER
(
TgcStrip_v1
, std::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
}
30
IdentifierHash
TgcStrip_v1::layerHash
()
const
{
31
return
MuonGMR4::TgcReadoutElement::constructHash
(0,
gasGap
(),
false
);
32
}
33
Amg::Vector3D
TgcStrip_v1::localMeasurementPos
()
const
{
34
return
localPosition<1>
()[0] * Amg::Vector3D::Unit(
measuresPhi
());
35
}
36
}
// namespace xAOD
37
#undef IMPLEMENT_SETTER_GETTER
AccessorMacros.h
IMPLEMENT_READOUTELEMENT
#define IMPLEMENT_READOUTELEMENT(CLASS_NAME, CACHED_VALUE, READOUT_ELEMENT_TYPE)
Macro to handle the readoutElement.
Definition
AccessorMacros.h:55
MuonDetectorManager.h
TgcReadoutElement.h
IMPLEMENT_SETTER_GETTER
#define IMPLEMENT_SETTER_GETTER(DTYPE, GETTER, SETTER)
Definition
NRPCRDO_v1.cxx:13
ParamDefs.h
StoreGateSvc.h
TgcStrip_v1.h
IdentifierHash
This is a "hash" representation of an Identifier.
Definition
IdentifierHash.h:25
MuonGMR4::TgcReadoutElement::constructHash
static IdentifierHash constructHash(unsigned measCh, unsigned gasGap, const bool isStrip)
Constructs the Hash out of the Identifier fields (channel, gasGap, isStrip).
xAOD::TgcStrip_v1
Definition
TgcStrip_v1.h:12
xAOD::TgcStrip_v1::localMeasurementPos
Amg::Vector3D localMeasurementPos() const override final
Returns the local position of the measurement.
Definition
TgcStrip_v1.cxx:33
xAOD::TgcStrip_v1::channelNumber
std::uint16_t channelNumber() const
Strip or wire group number of the Tgc strip measurement.
xAOD::TgcStrip_v1::TgcStrip_v1
TgcStrip_v1()=default
Default constructor.
xAOD::TgcStrip_v1::measurementHash
IdentifierHash measurementHash() const override final
Returns the hash of the measurement channel.
Definition
TgcStrip_v1.cxx:27
xAOD::TgcStrip_v1::layerHash
IdentifierHash layerHash() const override final
Returns the hash of the associated layer (Needed for surface retrieval).
Definition
TgcStrip_v1.cxx:30
xAOD::TgcStrip_v1::gasGap
std::uint8_t gasGap() const
Associated gas gap number of the Tgc strip measurement Ranges [1-N].
xAOD::TgcStrip_v1::measuresPhi
std::uint8_t measuresPhi() const override final
Does the object belong to an eta or a phi measurement (si /no).
xAOD::UncalibratedMeasurement_v1::localPosition
ConstVectorMap< N > localPosition() const
Returns the local position of the measurement.
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition
GeoPrimitives.h:47
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition
ICaloAffectedTool.h:24
Generated on
for ATLAS Offline Software by
1.17.0