ATLAS Offline Software
MdtTwinDriftCircle_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):
8 
9 // Local include(s):
12 namespace {
13  static const std::string preFixStr{"Mdt_"};
14 }
15 
16 namespace xAOD {
17 
18 IMPLEMENT_SETTER_GETTER(MdtTwinDriftCircle_v1, int16_t, twinTdc, setTwinTdc)
19 IMPLEMENT_SETTER_GETTER(MdtTwinDriftCircle_v1, int16_t, twinAdc, setTwinAdc)
20 IMPLEMENT_SETTER_GETTER(MdtTwinDriftCircle_v1, uint8_t, twinLayer, setTwinLayer)
21 IMPLEMENT_SETTER_GETTER(MdtTwinDriftCircle_v1, uint16_t, twinTube, setTwinTube)
22 
23 Identifier MdtTwinDriftCircle_v1::twinIdentify() const {
24  return readoutElement()->measurementId(readoutElement()->measurementHash(twinLayer(), twinTube()));
25 }
27  return localPosition<2>()(Trk::locZ);
28 }
30  return localCovariance<2>()(Trk::locZ, Trk::locZ);
31 }
33  return std::sqrt(posAlongWireCov());
34 }
35 
36 } // namespace xAOD
xAOD::MdtTwinDriftCircle_v1::posAlongWire
float posAlongWire() const
Returns the coordinate along the wire.
Definition: MdtTwinDriftCircle_v1.cxx:26
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:557
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
ParamDefs.h
xAOD::int16_t
setScaleOne setStatusOne setSaturated int16_t
Definition: gFexGlobalRoI_v1.cxx:55
AccessorMacros.h
Trk::locZ
@ locZ
local cylindrical
Definition: ParamDefs.h:42
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:88
xAOD::MdtTwinDriftCircle_v1
Definition: MdtTwinDriftCircle_v1.h:12
xAOD::readoutElement
const MuonGMR4::MuonReadoutElement * readoutElement(const UncalibratedMeasurement *meas)
Returns the associated readout element to the measurement.
Definition: MuonSpectrometer/MuonPhaseII/Event/xAOD/xAODMuonPrepData/Root/UtilFunctions.cxx:42
MuonGMR4::MuonReadoutElement::measurementId
virtual Identifier measurementId(const IdentifierHash &measHash) const =0
Converts the measurement hash back to the full Identifier.
xAOD::MdtTwinDriftCircle_v1::posAlongWireUncert
float posAlongWireUncert() const
Returns the uncertainty on the coordinate along the wire.
Definition: MdtTwinDriftCircle_v1.cxx:32
MdtReadoutElement.h
IMPLEMENT_SETTER_GETTER
#define IMPLEMENT_SETTER_GETTER(DTYPE, GETTER, SETTER)
Definition: NRPCRDO_v1.cxx:13
MdtTwinDriftCircle_v1.h
xAOD::MdtTwinDriftCircle_v1::posAlongWireCov
float posAlongWireCov() const
Returns the covariance of the coordinate along the wire.
Definition: MdtTwinDriftCircle_v1.cxx:29
Identifier
Definition: IdentifierFieldParser.cxx:14