ATLAS Offline Software
Loading...
Searching...
No Matches
xAOD::RpcStrip_v1 Class Reference

#include <RpcStrip_v1.h>

Inheritance diagram for xAOD::RpcStrip_v1:
Collaboration diagram for xAOD::RpcStrip_v1:

Public Member Functions

 RpcStrip_v1 ()=default
 Default constructor.
virtual ~RpcStrip_v1 ()=default
 Virtual destructor.
unsigned numDimensions () const override final
 Returns the number of dimensions of the measurement.
std::uint8_t measuresPhi () const override final
 returns whether the hit measures the phi coordinate
void setMeasuresPhi (std::uint8_t measPhi)
 sets the measuresPhi value
xAOD::UncalibMeasType type () const override final
 Returns the type of the Rpc strip as a simple enumeration.
Amg::Vector3D localMeasurementPos () const override final
 Returns the local position of the measurement.
std::uint16_t channelNumber () const
 returns the associated strip number
std::uint8_t gasGap () const
 returns the associated gas gap
std::uint8_t doubletPhi () const
 doubletPhi identifier field of the measurement
float time () const
 Returns the time.
float timeCovariance () const
 Returns the uncertainty squared on the time measurement.
std::uint32_t triggerInfo () const
 Returns the trigger coincidence - usually false, unless ijk>5 or highpt&&ijk==0.
std::uint8_t ambiguityFlag () const
 Returns the number of ambiguities associated with this RpcPrepData.
float timeOverThreshold () const
 Returns the time over threshold.
IdentifierHash measurementHash () const override final
 Returns the hash of the measurement channel.
IdentifierHash layerHash () const override final
 Returns the hash of the associated layer (Needed for surface retrieval).
const MuonGMR4::RpcReadoutElementreadoutElement () const override final
 Retrieve the associated RpcReadoutElement.
void setTime (float time)
 Sets the the triger time of the hit.
void setTriggerInfo (std::uint32_t triggerinfo)
 Set the trigger info of the hit.
void setAmbiguityFlag (std::uint8_t ambi)
 Sets the ADC counts.
void setTimeOverThreshold (float timeoverthreshold)
 Sets the TDC counts.
void setDoubletPhi (std::uint8_t doubPhi)
 Sets the doubletPhi identifier field.
void setGasGap (std::uint8_t gap)
 Sets the associated gasGap identifier field.
void setChannelNumber (std::uint16_t strip)
 Sets the associated strip number identifier field.
void setReadoutElement (const MuonGMR4::RpcReadoutElement *readoutEle)
 set the pointer to the ReadoutElement
void setTimeCovariance (float timeCov)
 Set the time covariance of the Measurement.
const Identifieridentify () const
 Returns the Athena identifier of the measurement.
Functions to get measurement properties
DetectorIDHashType identifierHash () const
 Returns the IdentifierHash of the measurement (corresponds to the detector element IdentifierHash).
DetectorIdentType identifier () const
 Returns the full Identifier of the measurement.
template<int N>
ConstVectorMap< N > localPosition () const
 Returns the local position of the measurement.
template<int N>
VectorMap< N > localPosition ()
 Returns the local position as mutable eigen map which can be assigned as well.
template<int N>
ConstMatrixMap< N > localCovariance () const
 Returns the local covariance of the measurement.
template<int N>
MatrixMap< N > localCovariance ()
 Returns the local covariance as mutable eigen map which can be assigned as well.
Functions to set measurement properties
void setIdentifierHash (const DetectorIDHashType idHash)
 Sets the IdentifierHash of the measurement (corresponds to the detector element IdentifierHash).
void setIdentifier (const DetectorIdentType measId)
 Sets the full Identifier of the measurement.
Direct method to set measurement properties
template<int N>
void setMeasurement (const DetectorIDHashType idHash, MeasVector< N > locPos, MeasMatrix< N > locCov)
 Sets IdentifierHash, local position and local covariance of the measurement.

Protected Attributes

CxxUtils::CachedValue< const MuonGMR4::MuonReadoutElement * > m_readoutEle {}
 Cache value of the.

Private Attributes

CxxUtils::CachedValue< Identifierm_identifier {}

Detailed Description

Definition at line 11 of file RpcStrip_v1.h.

Constructor & Destructor Documentation

◆ RpcStrip_v1()

xAOD::RpcStrip_v1::RpcStrip_v1 ( )
default

Default constructor.

◆ ~RpcStrip_v1()

virtual xAOD::RpcStrip_v1::~RpcStrip_v1 ( )
virtualdefault

Virtual destructor.

Member Function Documentation

◆ ambiguityFlag()

std::uint8_t xAOD::RpcMeasurement_v1::ambiguityFlag ( ) const
inherited

Returns the number of ambiguities associated with this RpcPrepData.

  • 0 if the ambiguites have not been removed by choice;
  • 1 if the ambiguities are fully solved
  • i+1 if "i" other MuonPrepRawData are produced along with the current one from a single RDO hit

◆ channelNumber()

std::uint16_t xAOD::RpcMeasurement_v1::channelNumber ( ) const
inherited

returns the associated strip number

◆ doubletPhi()

std::uint8_t xAOD::RpcMeasurement_v1::doubletPhi ( ) const
inherited

doubletPhi identifier field of the measurement

◆ gasGap()

std::uint8_t xAOD::RpcMeasurement_v1::gasGap ( ) const
inherited

returns the associated gas gap

◆ identifier()

DetectorIdentType xAOD::UncalibratedMeasurement_v1::identifier ( ) const
inherited

Returns the full Identifier of the measurement.

◆ identifierHash()

DetectorIDHashType xAOD::UncalibratedMeasurement_v1::identifierHash ( ) const
inherited

Returns the IdentifierHash of the measurement (corresponds to the detector element IdentifierHash).

◆ identify()

const Identifier & xAOD::MuonMeasurement_v1::identify ( ) const
inherited

Returns the Athena identifier of the measurement.

Definition at line 15 of file MuonMeasurement_v1.cxx.

15 {
16 if (!m_identifier.isValid()){
17 m_identifier.set(readoutElement()->measurementId(measurementHash()));
18 }
19 return (*m_identifier.ptr());
20 }
virtual const MuonGMR4::MuonReadoutElement * readoutElement() const =0
Returns the pointer to the associated readout element.
CxxUtils::CachedValue< Identifier > m_identifier
virtual IdentifierHash measurementHash() const =0
Returns the hash of the measurement channel.

◆ layerHash()

IdentifierHash xAOD::RpcMeasurement_v1::layerHash ( ) const
finaloverridevirtualinherited

Returns the hash of the associated layer (Needed for surface retrieval).

Implements xAOD::MuonMeasurement_v1.

Definition at line 37 of file RpcMeasurement_v1.cxx.

37 {
39 }
static IdentifierHash createHash(const unsigned strip, const unsigned gasGap, const unsigned doubPhi, const bool measPhi)
Constructs an Identifier hash from the Identifier fields controlled by this readout element.
std::uint8_t gasGap() const
returns the associated gas gap
std::uint8_t doubletPhi() const
doubletPhi identifier field of the measurement

◆ localCovariance() [1/2]

template<int N>
MatrixMap< N > xAOD::UncalibratedMeasurement_v1::localCovariance ( )
inherited

Returns the local covariance as mutable eigen map which can be assigned as well.

◆ localCovariance() [2/2]

template<int N>
ConstMatrixMap< N > xAOD::UncalibratedMeasurement_v1::localCovariance ( ) const
inherited

Returns the local covariance of the measurement.

◆ localMeasurementPos()

Amg::Vector3D xAOD::RpcMeasurement_v1::localMeasurementPos ( ) const
finaloverridevirtualinherited

Returns the local position of the measurement.

Implements xAOD::MuonMeasurement_v1.

Definition at line 40 of file RpcMeasurement_v1.cxx.

40 {
41 Amg::Vector3D lPos{Amg::Vector3D::Zero()};
42 if(numDimensions() == 1) {
43 lPos[measuresPhi()] = localPosition<1>()[0];
44 } else {
45 lPos.block<2,1>(0,0) = xAOD::toEigen(localPosition<2>());
46 }
47 return lPos;
48 }
virtual std::uint8_t measuresPhi() const =0
Returns whether the phi coordinate is measured.
ConstVectorMap< N > localPosition() const
Returns the local position of the measurement.
virtual unsigned int numDimensions() const =0
Returns the number of dimensions of the measurement.
Eigen::Matrix< double, 3, 1 > Vector3D

◆ localPosition() [1/2]

template<int N>
VectorMap< N > xAOD::UncalibratedMeasurement_v1::localPosition ( )
inherited

Returns the local position as mutable eigen map which can be assigned as well.

◆ localPosition() [2/2]

template<int N>
ConstVectorMap< N > xAOD::UncalibratedMeasurement_v1::localPosition ( ) const
inherited

Returns the local position of the measurement.

◆ measurementHash()

IdentifierHash xAOD::RpcMeasurement_v1::measurementHash ( ) const
finaloverridevirtualinherited

Returns the hash of the measurement channel.

Implements xAOD::MuonMeasurement_v1.

Definition at line 31 of file RpcMeasurement_v1.cxx.

31 {
33 gasGap(),
34 doubletPhi(),
35 measuresPhi());
36 }
std::uint16_t channelNumber() const
returns the associated strip number

◆ measuresPhi()

std::uint8_t xAOD::RpcStrip_v1::measuresPhi ( ) const
finaloverridevirtual

returns whether the hit measures the phi coordinate

Implements xAOD::MuonMeasurement_v1.

◆ numDimensions()

unsigned xAOD::RpcStrip_v1::numDimensions ( ) const
inlinefinaloverridevirtual

Returns the number of dimensions of the measurement.

Implements xAOD::UncalibratedMeasurement_v1.

Definition at line 19 of file RpcStrip_v1.h.

19{ return 1; }

◆ readoutElement()

const MuonGMR4::RpcReadoutElement * xAOD::RpcMeasurement_v1::readoutElement ( ) const
finaloverridevirtualinherited

Retrieve the associated RpcReadoutElement.

If the element has not been set before, it's tried to load it on the fly. Exceptions are thrown if that fails as well

Implements xAOD::MuonMeasurement_v1.

◆ setAmbiguityFlag()

void xAOD::RpcMeasurement_v1::setAmbiguityFlag ( std::uint8_t ambi)
inherited

Sets the ADC counts.

◆ setChannelNumber()

void xAOD::RpcMeasurement_v1::setChannelNumber ( std::uint16_t strip)
inherited

Sets the associated strip number identifier field.

◆ setDoubletPhi()

void xAOD::RpcMeasurement_v1::setDoubletPhi ( std::uint8_t doubPhi)
inherited

Sets the doubletPhi identifier field.

◆ setGasGap()

void xAOD::RpcMeasurement_v1::setGasGap ( std::uint8_t gap)
inherited

Sets the associated gasGap identifier field.

◆ setIdentifier()

void xAOD::UncalibratedMeasurement_v1::setIdentifier ( const DetectorIdentType measId)
inherited

Sets the full Identifier of the measurement.

◆ setIdentifierHash()

void xAOD::UncalibratedMeasurement_v1::setIdentifierHash ( const DetectorIDHashType idHash)
inherited

Sets the IdentifierHash of the measurement (corresponds to the detector element IdentifierHash).

◆ setMeasurement()

template<int N>
void xAOD::UncalibratedMeasurement_v1::setMeasurement ( const DetectorIDHashType idHash,
MeasVector< N > locPos,
MeasMatrix< N > locCov )
inherited

Sets IdentifierHash, local position and local covariance of the measurement.

◆ setMeasuresPhi()

void xAOD::RpcStrip_v1::setMeasuresPhi ( std::uint8_t measPhi)

sets the measuresPhi value

◆ setReadoutElement()

void xAOD::RpcMeasurement_v1::setReadoutElement ( const MuonGMR4::RpcReadoutElement * readoutEle)
inherited

set the pointer to the ReadoutElement

◆ setTime()

void xAOD::RpcMeasurement_v1::setTime ( float time)
inherited

Sets the the triger time of the hit.

◆ setTimeCovariance()

void xAOD::RpcMeasurement_v1::setTimeCovariance ( float timeCov)
inherited

Set the time covariance of the Measurement.

◆ setTimeOverThreshold()

void xAOD::RpcMeasurement_v1::setTimeOverThreshold ( float timeoverthreshold)
inherited

Sets the TDC counts.

◆ setTriggerInfo()

void xAOD::RpcMeasurement_v1::setTriggerInfo ( std::uint32_t triggerinfo)
inherited

Set the trigger info of the hit.

◆ time()

float xAOD::RpcMeasurement_v1::time ( ) const
inherited

Returns the time.

◆ timeCovariance()

float xAOD::RpcMeasurement_v1::timeCovariance ( ) const
inherited

Returns the uncertainty squared on the time measurement.

◆ timeOverThreshold()

float xAOD::RpcMeasurement_v1::timeOverThreshold ( ) const
inherited

Returns the time over threshold.

◆ triggerInfo()

std::uint32_t xAOD::RpcMeasurement_v1::triggerInfo ( ) const
inherited

Returns the trigger coincidence - usually false, unless ijk>5 or highpt&&ijk==0.

◆ type()

xAOD::UncalibMeasType xAOD::RpcMeasurement_v1::type ( ) const
inlinefinaloverridevirtualinherited

Returns the type of the Rpc strip as a simple enumeration.

Implements xAOD::UncalibratedMeasurement_v1.

Definition at line 26 of file RpcMeasurement_v1.h.

Member Data Documentation

◆ m_identifier

CxxUtils::CachedValue<Identifier> xAOD::MuonMeasurement_v1::m_identifier {}
privateinherited

Definition at line 48 of file MuonMeasurement_v1.h.

48{};

◆ m_readoutEle

CxxUtils::CachedValue<const MuonGMR4::MuonReadoutElement*> xAOD::MuonMeasurement_v1::m_readoutEle {}
protectedinherited

Cache value of the.

Definition at line 46 of file MuonMeasurement_v1.h.

46{};

The documentation for this class was generated from the following file: