ATLAS Offline Software
MMCluster_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_MMCluster_V1_H
5 #define XAODMUONPREPDATA_VERSION_MMCluster_V1_H
6 
8 #include "Identifier/Identifier.h"
11 #include "CxxUtils/CachedValue.h"
13 
14 namespace MuonGMR4{
15  class MmReadoutElement;
16 }
17 
18 namespace xAOD {
19 
21 
22  public:
24  MMCluster_v1() = default;
26  virtual ~MMCluster_v1() = default;
27 
29  xAOD::UncalibMeasType type() const override final {
31  }
34  const Identifier& identify() const;
35  unsigned int numDimensions() const override final { return 1; }
36 
38  uint8_t gasGap() const;
39 
43 
45 
49  IdentifierHash layerHash() const;
50 
53  uint16_t time() const;
56 
60  uint32_t charge() const;
63 
65  float driftDist() const;
67  void setDriftDist(float value);
68 
70  float angle() const;
72  void setAngle(float value);
73 
75  float chiSqProb() const;
77  void setChiSqProb(float value);
78 
80  Author author() const;
82 
84  Quality quality() const;
86 
88  const std::vector<uint16_t>& stripNumbers() const;
89  void setStripNumbers(const std::vector<uint16_t>& stripNumbers);
90 
92  const std::vector<int16_t>& stripTimes() const;
93  void setStripTimes(const std::vector<int16_t>& stripTimes);
94 
96  const std::vector<int>& stripCharges() const;
97  void setStripCharges(const std::vector<int>& stripCharges);
98 
100  const std::vector<float>& stripDriftDist() const;
101  void setStripDriftDist(const std::vector<float>& stripDriftDist);
102 
105  const std::vector<DriftCov_t>& stripDriftErrors() const;
106 
107  void setStripDriftErrors(const std::vector<DriftCov_t>& stripDriftErrors);
108  void setStripDriftErrors(const std::vector<AmgVector(2)>& stripDriftErrors);
109 
116 
117  private:
118 #ifdef __CLING__
123 #else
126 #endif
127 
128 
129 };
130 
131 } // namespace xAOD
132 
133 #endif
xAOD::MMCluster_v1::setStripTimes
void setStripTimes(const std::vector< int16_t > &stripTimes)
MuonGMR4::MmReadoutElement
Definition: MmReadoutElement.h:19
xAOD::MMCluster_v1::stripDriftDist
const std::vector< float > & stripDriftDist() const
returns the list of drift distances
xAOD::MMCluster_v1::quality
Quality quality() const
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:557
xAOD::MMCluster_v1
Definition: MMCluster_v1.h:20
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
xAOD::MMCluster_v1::setDriftDist
void setDriftDist(float value)
Sets the drift distance.
xAOD::MMCluster_v1::gasGap
uint8_t gasGap() const
Returns the gas gap number to which the clsuter.
xAOD::UncalibMeasType::MMClusterType
@ MMClusterType
xAOD::MMCluster_v1::readoutElement
const MuonGMR4::MmReadoutElement * readoutElement() const
Retrieve the associated MmReadoutElement.
xAOD::MMCluster_v1::setAngle
void setAngle(float value)
Sets the microTPC angle.
xAOD::MMCluster_v1::author
Author author() const
xAOD::MMCluster_v1::setStripDriftErrors
void setStripDriftErrors(const std::vector< DriftCov_t > &stripDriftErrors)
xAOD::MMCluster_v1::stripDriftErrors
const std::vector< DriftCov_t > & stripDriftErrors() const
athena.value
value
Definition: athena.py:124
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::MMCluster_v1::~MMCluster_v1
virtual ~MMCluster_v1()=default
Virtual destructor.
xAOD::MMCluster_v1::setStripDriftDist
void setStripDriftDist(const std::vector< float > &stripDriftDist)
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
xAOD::MMCluster_v1::type
xAOD::UncalibMeasType type() const override final
Returns the type of the MM strip as a simple enumeration.
Definition: MMCluster_v1.h:29
CaloSwCorrections.gap
def gap(flags, cells_name, *args, **kw)
Definition: CaloSwCorrections.py:212
xAOD::MMCluster_v1::time
uint16_t time() const
Returns the time (ns).
xAOD::MMCluster_v1::angle
float angle() const
Returns the microTPC angle.
xAOD::MMCluster_v1::setCharge
void setCharge(uint32_t value)
Sets the calibrated charge.
xAOD::MMCluster_v1::setAuthor
void setAuthor(Author author)
xAOD::MMCluster_v1::setGasGap
void setGasGap(uint8_t gap)
GeoPrimitives.h
xAOD::AmgVector
AmgVector(N) toEigen(const ConstVectorMap< N > &xAODvec)
Definition: MeasurementDefs.h:96
UncalibratedMeasurement_v1.h
xAOD::MMCluster_v1::layerHash
IdentifierHash layerHash() const
Returns the hash of the associated layer (Needed for surface retrieval)
Definition: MMCluster_v1.cxx:23
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::MMCluster_v1::channelNumber
uint16_t channelNumber() const
returns the number of the central strip
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:93
xAOD::MMCluster_v1::m_identifier
CxxUtils::CachedValue< Identifier > m_identifier
Definition: MMCluster_v1.h:125
xAOD::MMCluster_v1::identify
const Identifier & identify() const
: Returns the Athena identifier of the micro mega cluster It's constructed from the measurementHash &...
Definition: MMCluster_v1.cxx:26
xAOD::MMCluster_v1::stripNumbers
const std::vector< uint16_t > & stripNumbers() const
returns the list of strip numbers
xAOD::MMCluster_v1::chiSqProb
float chiSqProb() const
Returns the microTPC chisq Prob.
xAOD::MMCluster_v1::setStripCharges
void setStripCharges(const std::vector< int > &stripCharges)
MMPrepData.h
CxxUtils::CachedValue< const MuonGMR4::MmReadoutElement * >
xAOD::MMCluster_v1::DriftCov_t
PosAccessor< 2 >::element_type DriftCov_t
returns the list of drift distances
Definition: MMCluster_v1.h:104
SG::Accessor::element_type
typename AuxDataTraits< T, ALLOC >::element_type element_type
Type the user sees.
Definition: Control/AthContainers/AthContainers/Accessor.h:74
xAOD::MMCluster_v1::numDimensions
unsigned int numDimensions() const override final
Returns the number of dimensions of the measurement.
Definition: MMCluster_v1.h:35
CachedValue.h
Cached value with atomic update.
xAOD::MMCluster_v1::stripTimes
const std::vector< int16_t > & stripTimes() const
returns the list of times
IdentifierHash.h
xAOD::MMCluster_v1::measurementHash
IdentifierHash measurementHash() const
Returns the hash of the measurement channel.
Definition: MMCluster_v1.cxx:20
xAOD::MMCluster_v1::MMCluster_v1
MMCluster_v1()=default
Default constructor.
xAOD::MMCluster_v1::setChiSqProb
void setChiSqProb(float value)
Sets the microTPC chisq probability.
xAOD::MMCluster_v1::m_readoutEle
CxxUtils::CachedValue< const MuonGMR4::MmReadoutElement * > m_readoutEle
Definition: MMCluster_v1.h:124
Muon::MMPrepData::Author
Author
Definition: MMPrepData.h:156
Muon::MMPrepData::Quality
Quality
Definition: MMPrepData.h:164
xAOD::UncalibMeasType
UncalibMeasType
Define the type of the uncalibrated measurement.
Definition: MeasurementDefs.h:24
xAOD::MMCluster_v1::setTime
void setTime(uint16_t value)
Sets the TDC counts.
xAOD::MMCluster_v1::setReadoutElement
void setReadoutElement(const MuonGMR4::MmReadoutElement *readoutEle)
set the pointer to the MmReadoutElement
xAOD::MMCluster_v1::setQuality
void setQuality(Quality quality)
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::MMCluster_v1::setStripNumbers
void setStripNumbers(const std::vector< uint16_t > &stripNumbers)
xAOD::MMCluster_v1::charge
uint32_t charge() const
Returns the charge The charge is calibrated, i.e.
xAOD::MMCluster_v1::setChannelNumber
void setChannelNumber(uint16_t strip)
xAOD::MMCluster_v1::stripCharges
const std::vector< int > & stripCharges() const
returns the list of charges
xAOD::MMCluster_v1::driftDist
float driftDist() const
Returns the Drift Distance.
Identifier
Definition: IdentifierFieldParser.cxx:14