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"
14 namespace xAOD {
15 
17 
18  public:
20  MMCluster_v1() = default;
22  virtual ~MMCluster_v1() = default;
23 
25  xAOD::UncalibMeasType type() const override final {
27  }
28  unsigned int numDimensions() const override final { return 1; }
29 
31  uint8_t gasGap() const;
32 
36 
38 
42  IdentifierHash layerHash() const;
43 
46  uint16_t time() const;
49 
53  uint32_t charge() const;
56 
58  float driftDist() const;
60  void setDriftDist(float value);
61 
63  float angle() const;
65  void setAngle(float value);
66 
68  float chiSqProb() const;
70  void setChiSqProb(float value);
71 
73  Author author() const;
75 
77  Quality quality() const;
79 
81  const std::vector<uint16_t>& stripNumbers() const;
82  void setStripNumbers(const std::vector<uint16_t>& stripNumbers);
83 
85  const std::vector<int16_t>& stripTimes() const;
86  void setStripTimes(const std::vector<int16_t>& stripTimes);
87 
89  const std::vector<int>& stripCharges() const;
90  void setStripCharges(const std::vector<int>& stripCharges);
91 
93  const std::vector<float>& stripDriftDist() const;
94  void setStripDriftDist(const std::vector<float>& stripDriftDist);
95 
98  const std::vector<DriftCov_t>& stripDriftErrors() const;
99 
100  void setStripDriftErrors(const std::vector<DriftCov_t>& stripDriftErrors);
101  void setStripDriftErrors(const std::vector<AmgVector(2)>& stripDriftErrors);
102 
109 
110  private:
111 #ifdef __CLING__
115 #else
117 #endif
118 
119 
120 };
121 
122 } // namespace xAOD
123 
126 #endif
xAOD::MMCluster_v1::setStripTimes
void setStripTimes(const std::vector< int16_t > &stripTimes)
MuonGMR4::MmReadoutElement
Definition: MmReadoutElement.h:18
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:575
xAOD::MMCluster_v1
Definition: MMCluster_v1.h:16
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
DATAVECTOR_BASE
DATAVECTOR_BASE(xAOD::MMCluster_v1, xAOD::UncalibratedMeasurement_v1)
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:122
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:562
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:25
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:24
xAOD::UncalibratedMeasurement_v1
Definition: UncalibratedMeasurement_v1.h:13
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:88
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:97
SG::Accessor::element_type
typename AuxDataTraits< T, ALLOC >::element_type element_type
Type the user sees.
Definition: Control/AthContainers/AthContainers/Accessor.h:72
xAOD::MMCluster_v1::numDimensions
unsigned int numDimensions() const override final
Returns the number of dimensions of the measurement.
Definition: MMCluster_v1.h:28
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:21
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:116
Muon::MMPrepData::Author
Author
Definition: MMPrepData.h:156
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
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
Definition: IdentifierHash.h:38
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)
MmReadoutElement.h
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.