ATLAS Offline Software
MdtDriftCircle_v1.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef XAODMUONPREPDATA_VERSION_MDTDRIFTCIRCLE_V1_H
5 #define XAODMUONPREPDATA_VERSION_MDTDRIFTCIRCLE_V1_H
6 
8 #include "Identifier/Identifier.h"
12 #include "CxxUtils/CachedValue.h"
13 
14 namespace MuonGMR4{
15  class MdtReadoutElement;
16 }
17 
18 namespace xAOD {
20 
22 
23  public:
26  MdtDriftCircle_v1() = default;
28  virtual ~MdtDriftCircle_v1() = default;
29 
31  xAOD::UncalibMeasType type() const override final {
33  }
36  const Identifier& identify() const;
42  unsigned int numDimensions() const override { return 1; }
44  int16_t tdc() const;
46  int16_t adc() const;
47 
51  uint8_t tubeLayer() const;
57  float driftRadius() const;
59  float driftRadiusCov() const;
61  float driftRadiusUncert() const;
62 
64 
70  void setTube(uint16_t tube_n);
72  void setLayer(uint8_t layer_n);
81 
82  private:
83 #ifdef __CLING__
88 #else
91 #endif
92 
93 };
94 
95 } // namespace xAOD
96 #endif
xAOD::MdtDriftCircle_v1::m_readoutEle
CxxUtils::CachedValue< const MuonGMR4::MdtReadoutElement * > m_readoutEle
Definition: MdtDriftCircle_v1.h:89
xAOD::MdtDriftCircle_v1::setTdc
void setTdc(int16_t tdc)
Setter methods.
xAOD::MdtDriftCircle_v1::tdc
int16_t tdc() const
Returns the TDC (typically range is 0 to 2500)
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:557
xAOD::MdtDriftCircle_v1::measurementHash
IdentifierHash measurementHash() const
Returns the hash of the measurement channel (tube (x) layer)
Definition: MdtDriftCircle_v1.cxx:29
Muon::MdtDriftCircleStatus
MdtDriftCircleStatus
Enum to represent the 'status' of Mdt measurements e.g.
Definition: MdtDriftCircleStatus.h:25
xAOD::MdtDriftCircle_v1::identify
const Identifier & identify() const
: Returns the Athena identifier of the drift circle.
Definition: MdtDriftCircle_v1.cxx:39
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::MdtDriftCircle_v1::driftTube
uint16_t driftTube() const
Returns the tube number of the measurement (1-120)
xAOD::MdtDriftCircle_v1::type
xAOD::UncalibMeasType type() const override final
Returns the type of the Mdt drift circle as a simple enumeration.
Definition: MdtDriftCircle_v1.h:31
xAOD::MdtDriftCircle_v1::MdtDriftCircle_v1
MdtDriftCircle_v1()=default
Default constructor.
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
xAOD::int16_t
setScaleOne setStatusOne setSaturated int16_t
Definition: gFexGlobalRoI_v1.cxx:55
xAOD::MdtDriftCircle_v1::readoutElement
const MuonGMR4::MdtReadoutElement * readoutElement() const
Retrieve the associated MdtReadoutElement.
xAOD::MdtDriftCircle_v1::setStatus
void setStatus(MdtDriftCircleStatus st)
Sets the status of the drift circle.
xAOD::MdtDriftCircle_v1::driftRadius
float driftRadius() const
Returns the drift radius.
Definition: MdtDriftCircle_v1.cxx:45
GeoPrimitives.h
UncalibratedMeasurement_v1.h
xAOD::UncalibratedMeasurement_v1
Definition: UncalibratedMeasurement_v1.h:13
MuonGMR4
The ReadoutGeomCnvAlg converts the Run4 Readout geometry build from the GeoModelXML into the legacy M...
Definition: MdtCalibInput.h:20
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:93
xAOD::MdtDriftCircle_v1::setAdc
void setAdc(int16_t adc)
Sets the ADC counts.
CxxUtils::CachedValue< const MuonGMR4::MdtReadoutElement * >
xAOD::MdtDriftCircle_v1::numDimensions
unsigned int numDimensions() const override
Override the dimensions to be 1.
Definition: MdtDriftCircle_v1.h:42
xAOD::MdtDriftCircle_v1::m_identifier
CxxUtils::CachedValue< Identifier > m_identifier
Definition: MdtDriftCircle_v1.h:90
xAOD::MdtDriftCircle_v1::~MdtDriftCircle_v1
virtual ~MdtDriftCircle_v1()=default
Virtual destructor.
xAOD::MdtDriftCircle_v1::adc
int16_t adc() const
Returns the ADC (typically range is 0 to 250)
CachedValue.h
Cached value with atomic update.
MuonGMR4::MdtReadoutElement
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MdtReadoutElement.h:22
IdentifierHash.h
xAOD::MdtDriftCircle_v1::localCirclePosition
Amg::Vector3D localCirclePosition() const
: Return the measurement's position vector in the local frame.
Definition: MdtDriftCircle_v1.cxx:33
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
xAOD::MdtDriftCircle_v1::setReadoutElement
void setReadoutElement(const MuonGMR4::MdtReadoutElement *readoutEle)
set the pointer to the MdtReadoutElement
xAOD::UncalibMeasType
UncalibMeasType
Define the type of the uncalibrated measurement.
Definition: MeasurementDefs.h:24
xAOD::MdtDriftCircle_v1::setLayer
void setLayer(uint8_t layer_n)
Sets the layer number.
xAOD::MdtDriftCircle_v1::status
MdtDriftCircleStatus status() const
Returns the status of the measurement.
xAOD::MdtDriftCircle_v1::tubeLayer
uint8_t tubeLayer() const
Returns the layer number of the measurement (1-4)
xAOD::MdtDriftCircle_v1
https://gitlab.cern.ch/atlas/athena/-/blob/master/MuonSpectrometer/MuonReconstruction/MuonRecEvent/Mu...
Definition: MdtDriftCircle_v1.h:21
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
xAOD::UncalibMeasType::MdtDriftCircleType
@ MdtDriftCircleType
xAOD::MdtDriftCircle_v1::driftRadiusUncert
float driftRadiusUncert() const
Returns the uncertainty on the drift radius.
Definition: MdtDriftCircle_v1.cxx:55
xAOD::MdtDriftCircle_v1::setTube
void setTube(uint16_t tube_n)
Sets the tube number.
xAOD::MdtDriftCircle_v1::driftRadiusCov
float driftRadiusCov() const
Returns the covariance of the drift radius.
Definition: MdtDriftCircle_v1.cxx:50
MdtDriftCircleStatus.h
Identifier
Definition: IdentifierFieldParser.cxx:14