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

#include <TgcStrip_v1.h>

Inheritance diagram for xAOD::TgcStrip_v1:
Collaboration diagram for xAOD::TgcStrip_v1:

Public Member Functions

 TgcStrip_v1 ()=default
 Default constructor.
virtual ~TgcStrip_v1 ()=default
 Virtual destructor.
xAOD::UncalibMeasType type () const override final
 Returns the type of the Tgc strip as a simple enumeration.
unsigned numDimensions () const override final
 Returns the number of dimensions of the measurement.
std::uint8_t bcBitMap () const
 Returns the bcBitMap of this PRD bit2 for Previous BC, bit1 for Current BC, bit0 for Next BC.
void setBcBitMap (std::uint8_t bitMap)
 Set the bunch crossing-id map.
std::uint16_t channelNumber () const
 Strip or wire group number of the Tgc strip measurement.
void setChannelNumber (std::uint16_t chan)
 Set the strip or wire group number of the measurement.
std::uint8_t gasGap () const
 Associated gas gap number of the Tgc strip measurement Ranges [1-N].
void setGasGap (uint8_t gapNum)
 Set the gas gap number of the measurement [1-N].
Amg::Vector3D localMeasurementPos () const override final
 Returns the local position of the measurement.
std::uint8_t measuresPhi () const override final
 Does the object belong to an eta or a phi measurement (si /no).
void setMeasuresPhi (std::uint8_t measPhi)
 Set the measures phi flag of the measurement to true /false.
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).
void setReadoutElement (const MuonGMR4::TgcReadoutElement *readoutEle)
 set the pointer to the TgcReadoutElement
const MuonGMR4::TgcReadoutElementreadoutElement () const override final
 Retrieve the associated TgcReadoutElement.
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 12 of file TgcStrip_v1.h.

Constructor & Destructor Documentation

◆ TgcStrip_v1()

xAOD::TgcStrip_v1::TgcStrip_v1 ( )
default

Default constructor.

◆ ~TgcStrip_v1()

virtual xAOD::TgcStrip_v1::~TgcStrip_v1 ( )
virtualdefault

Virtual destructor.

Member Function Documentation

◆ bcBitMap()

std::uint8_t xAOD::TgcStrip_v1::bcBitMap ( ) const

Returns the bcBitMap of this PRD bit2 for Previous BC, bit1 for Current BC, bit0 for Next BC.

◆ channelNumber()

std::uint16_t xAOD::TgcStrip_v1::channelNumber ( ) const

Strip or wire group number of the Tgc strip measurement.

◆ gasGap()

std::uint8_t xAOD::TgcStrip_v1::gasGap ( ) const

Associated gas gap number of the Tgc strip measurement Ranges [1-N].

◆ 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::TgcStrip_v1::layerHash ( ) const
finaloverridevirtual

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

Implements xAOD::MuonMeasurement_v1.

Definition at line 30 of file TgcStrip_v1.cxx.

30 {
32}
static IdentifierHash constructHash(unsigned measCh, unsigned gasGap, const bool isStrip)
Constructs the Hash out of the Identifier fields (channel, gasGap, isStrip).
std::uint8_t gasGap() const
Associated gas gap number of the Tgc strip measurement Ranges [1-N].

◆ 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::TgcStrip_v1::localMeasurementPos ( ) const
finaloverridevirtual

Returns the local position of the measurement.

Implements xAOD::MuonMeasurement_v1.

Definition at line 33 of file TgcStrip_v1.cxx.

33 {
34 return localPosition<1>()[0] * Amg::Vector3D::Unit(measuresPhi());
35}
std::uint8_t measuresPhi() const override final
Does the object belong to an eta or a phi measurement (si /no).
ConstVectorMap< N > localPosition() const
Returns the local position of the measurement.

◆ 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::TgcStrip_v1::measurementHash ( ) const
finaloverridevirtual

Returns the hash of the measurement channel.

Implements xAOD::MuonMeasurement_v1.

Definition at line 27 of file TgcStrip_v1.cxx.

27 {
29}
std::uint16_t channelNumber() const
Strip or wire group number of the Tgc strip measurement.

◆ measuresPhi()

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

Does the object belong to an eta or a phi measurement (si /no).

Implements xAOD::MuonMeasurement_v1.

◆ numDimensions()

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

Returns the number of dimensions of the measurement.

Implements xAOD::UncalibratedMeasurement_v1.

Definition at line 24 of file TgcStrip_v1.h.

24{ return 1; }

◆ readoutElement()

const MuonGMR4::TgcReadoutElement * xAOD::TgcStrip_v1::readoutElement ( ) const
finaloverridevirtual

Retrieve the associated TgcReadoutElement.

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.

◆ setBcBitMap()

void xAOD::TgcStrip_v1::setBcBitMap ( std::uint8_t bitMap)

Set the bunch crossing-id map.

◆ setChannelNumber()

void xAOD::TgcStrip_v1::setChannelNumber ( std::uint16_t chan)

Set the strip or wire group number of the measurement.

◆ setGasGap()

void xAOD::TgcStrip_v1::setGasGap ( uint8_t gapNum)

Set the gas gap number of the measurement [1-N].

◆ 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::TgcStrip_v1::setMeasuresPhi ( std::uint8_t measPhi)

Set the measures phi flag of the measurement to true /false.

◆ setReadoutElement()

void xAOD::TgcStrip_v1::setReadoutElement ( const MuonGMR4::TgcReadoutElement * readoutEle)

set the pointer to the TgcReadoutElement

◆ type()

xAOD::UncalibMeasType xAOD::TgcStrip_v1::type ( ) const
inlinefinaloverridevirtual

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

Implements xAOD::UncalibratedMeasurement_v1.

Definition at line 21 of file TgcStrip_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 files: