ATLAS Offline Software
Loading...
Searching...
No Matches
MMCluster_v1.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 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"
13
14namespace MuonGMR4{
15 class MmReadoutElement;
16}
17
18namespace xAOD {
19
21
22 public:
24 MMCluster_v1() = default;
26 virtual ~MMCluster_v1() = default;
27
32
36 const Identifier& identify() const;
37 unsigned int numDimensions() const override final { return 1; }
38
40 uint8_t gasGap() const;
41
42 void setGasGap(uint8_t gap);
45
47
52
55 uint16_t time() const;
57 void setTime(uint16_t value);
58
64 void setCharge(uint32_t value);
65
67 float driftDist() const;
69 void setDriftDist(float value);
70
72 float angle() const;
74 void setAngle(float value);
75
77 float chiSqProb() const;
79 void setChiSqProb(float value);
80
82 Author author() const;
84
88
90 const std::vector<uint16_t>& stripNumbers() const;
91 void setStripNumbers(const std::vector<uint16_t>& stripNumbers);
92
94 const std::vector<int16_t>& stripTimes() const;
95 void setStripTimes(const std::vector<int16_t>& stripTimes);
96
98 const std::vector<int>& stripCharges() const;
99 void setStripCharges(const std::vector<int>& stripCharges);
100
102 const std::vector<float>& stripDriftDist() const;
103 void setStripDriftDist(const std::vector<float>& stripDriftDist);
104
107 const std::vector<DriftCov_t>& stripDriftErrors() const;
108
109 void setStripDriftErrors(const std::vector<DriftCov_t>& stripDriftErrors);
110 void setStripDriftErrors(const std::vector<AmgVector(2)>& stripDriftErrors);
111
118
119 private:
122};
123
124} // namespace xAOD
125
126#endif
Cached value with atomic update.
#define AmgVector(rows)
Cached value with atomic update.
Definition CachedValue.h:55
This is a "hash" representation of an Identifier.
typename AuxDataTraits< T, ALLOC >::element_type element_type
void setDriftDist(float value)
Sets the drift distance.
Quality quality() const
void setStripDriftDist(const std::vector< float > &stripDriftDist)
void setReadoutElement(const MuonGMR4::MmReadoutElement *readoutEle)
set the pointer to the MmReadoutElement
CxxUtils::CachedValue< Identifier > m_identifier
uint32_t charge() const
Returns the charge The charge is calibrated, i.e.
void setStripDriftErrors(const std::vector< DriftCov_t > &stripDriftErrors)
void setStripNumbers(const std::vector< uint16_t > &stripNumbers)
float driftDist() const
Returns the Drift Distance.
PosAccessor< 2 >::element_type DriftCov_t
returns the list of drift distances
Author author() const
void setStripCharges(const std::vector< int > &stripCharges)
void setAuthor(Author author)
xAOD::UncalibMeasType type() const override final
Returns the type of the MM strip as a simple enumeration.
float angle() const
Returns the microTPC angle.
void setChiSqProb(float value)
Sets the microTPC chisq probability.
const std::vector< uint16_t > & stripNumbers() const
returns the list of strip numbers
MMCluster_v1()=default
Default constructor.
void setTime(uint16_t value)
Sets the TDC counts.
uint8_t gasGap() const
Returns the gas gap number to which the clsuter.
const Identifier & identify() const
: Returns the Athena identifier of the micro mega cluster It's constructed from the measurementHash &...
::Muon::MMPrepData::Author Author
virtual ~MMCluster_v1()=default
Virtual destructor.
unsigned int numDimensions() const override final
Returns the number of dimensions of the measurement.
void setAngle(float value)
Sets the microTPC angle.
::Muon::MMPrepData::Quality Quality
IdentifierHash measurementHash() const
Returns the hash of the measurement channel.
void setQuality(Quality quality)
IdentifierHash layerHash() const
Returns the hash of the associated layer (Needed for surface retrieval)
void setStripTimes(const std::vector< int16_t > &stripTimes)
uint16_t channelNumber() const
returns the number of the central strip
Amg::Vector3D localMeasurementPos() const
Returns the local measurement position as 3-vector.
const std::vector< int > & stripCharges() const
returns the list of charges
CxxUtils::CachedValue< const MuonGMR4::MmReadoutElement * > m_readoutEle
void setChannelNumber(uint16_t strip)
uint16_t time() const
Returns the time (ns).
void setGasGap(uint8_t gap)
float chiSqProb() const
Returns the microTPC chisq Prob.
const std::vector< float > & stripDriftDist() const
returns the list of drift distances
const std::vector< DriftCov_t > & stripDriftErrors() const
const std::vector< int16_t > & stripTimes() const
returns the list of times
const MuonGMR4::MmReadoutElement * readoutElement() const
Retrieve the associated MmReadoutElement.
void setCharge(uint32_t value)
Sets the calibrated charge.
UncalibratedMeasurement_v1()=default
Default constructor.
Eigen::Matrix< double, 3, 1 > Vector3D
The ReadoutGeomCnvAlg converts the Run4 Readout geometry build from the GeoModelXML into the legacy M...
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
UncalibMeasType
Define the type of the uncalibrated measurement.
setWord1 uint16_t
setEventNumber uint32_t