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

#include <HGTDCluster_v1.h>

Inheritance diagram for xAOD::HGTDCluster_v1:
Collaboration diagram for xAOD::HGTDCluster_v1:

Public Member Functions

 HGTDCluster_v1 ()=default
 Default constructor.
virtual ~HGTDCluster_v1 ()=default
 Virtual destructor.
xAOD::UncalibMeasType type () const override final
 Returns the type of the HGTD cluster as a simple enumeration.
unsigned int numDimensions () const override final
 Returns the number of dimensions of the measurement.
SG::ConstAccessor< SG::JaggedVecElt< Identifier::value_type > >::element_type rdoList () const
 Returns the list of identifiers of the channels building the cluster.
SG::ConstAccessor< SG::JaggedVecElt< int > >::element_type totList () const
 Returns the list of Time Over Threshold of the channels building the cluster.
float time () const
 Return the measured time in ns.
float timeCovariance () const
 Return the covariance of the measured time in ns squared.
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.

Static Public Member Functions

static float time (ConstVectorMap< 3 > local_position)
 Convenience methods to extract the time from the local position in ns.
static float time (VectorMap< 3 > local_position)
static float timeCovariance (ConstMatrixMap< 3 > local_covariance)
 Convenience methods to extract the time covariance from the local covariance in ns squared.
static float timeCovariance (MatrixMap< 3 > local_covariance)

Static Protected Attributes

static const SG::AuxElement::Accessor< SG::JaggedVecElt< Identifier::value_type > > s_rdoListAcc
static const SG::AuxElement::Accessor< SG::JaggedVecElt< int > > s_totListAcc

Functions to set HGTD cluster properties

void setRDOlist (std::vector< Identifier::value_type > &&rdoList)
 Sets the list of identifiers of the channels building the cluster.
void setRDOlist (const std::vector< Identifier > &rdolist)
 Sets the list of identifiers of the channels building the cluster This will first create a vector of Identifier values and then set the xAOD object properties.
void setToTlist (const std::vector< int > &tots)
 Sets the list of ToT of the channels building the cluster.
static const SG::AuxElement::Accessor< SG::JaggedVecElt< Identifier::value_type > > rdoListAcc ()
static const SG::AuxElement::Accessor< SG::JaggedVecElt< int > > totListAcc ()

Detailed Description

Definition at line 24 of file HGTDCluster_v1.h.

Constructor & Destructor Documentation

◆ HGTDCluster_v1()

xAOD::HGTDCluster_v1::HGTDCluster_v1 ( )
default

Default constructor.

◆ ~HGTDCluster_v1()

virtual xAOD::HGTDCluster_v1::~HGTDCluster_v1 ( )
virtualdefault

Virtual destructor.

Member Function Documentation

◆ 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).

◆ 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.

◆ 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.

◆ numDimensions()

unsigned int xAOD::HGTDCluster_v1::numDimensions ( ) const
inlinefinaloverridevirtual

Returns the number of dimensions of the measurement.

Implements xAOD::UncalibratedMeasurement_v1.

Definition at line 38 of file HGTDCluster_v1.h.

38{ return 3; }

◆ rdoList()

SG::ConstAccessor< SG::JaggedVecElt< Identifier::value_type > >::element_type xAOD::HGTDCluster_v1::rdoList ( ) const
inline

Returns the list of identifiers of the channels building the cluster.

Definition at line 90 of file HGTDCluster_v1.h.

90 {
91 return s_rdoListAcc(*this);
92}
static const SG::AuxElement::Accessor< SG::JaggedVecElt< Identifier::value_type > > s_rdoListAcc

◆ rdoListAcc()

const SG::AuxElement::Accessor< SG::JaggedVecElt< Identifier::value_type > > xAOD::HGTDCluster_v1::rdoListAcc ( )
inlinestatic

Definition at line 70 of file HGTDCluster_v1.h.

70{ return s_rdoListAcc; }

◆ 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.

◆ setRDOlist() [1/2]

void xAOD::HGTDCluster_v1::setRDOlist ( const std::vector< Identifier > & rdolist)

Sets the list of identifiers of the channels building the cluster This will first create a vector of Identifier values and then set the xAOD object properties.

Definition at line 18 of file HGTDCluster_v1.cxx.

18 {
19 std::vector<Identifier::value_type> rdos(rdoList.size());
20 for (std::size_t i(0); i < rdos.size(); ++i) {
21 rdos[i] = rdoList[i].get_compact();
22 }
23 s_rdoListAcc.set(*this,rdos);
24}
SG::ConstAccessor< SG::JaggedVecElt< Identifier::value_type > >::element_type rdoList() const
Returns the list of identifiers of the channels building the cluster.

◆ setRDOlist() [2/2]

void xAOD::HGTDCluster_v1::setRDOlist ( std::vector< Identifier::value_type > && rdoList)

Sets the list of identifiers of the channels building the cluster.

Definition at line 15 of file HGTDCluster_v1.cxx.

15 {
16 s_rdoListAcc.set(*this,rdoList);
17}

◆ setToTlist()

void xAOD::HGTDCluster_v1::setToTlist ( const std::vector< int > & tots)

Sets the list of ToT of the channels building the cluster.

Definition at line 30 of file HGTDCluster_v1.cxx.

30 {
31 s_totListAcc.set(*this,tots);
32}
static const SG::AuxElement::Accessor< SG::JaggedVecElt< int > > s_totListAcc

◆ time() [1/3]

float xAOD::HGTDCluster_v1::time ( ) const
inline

Return the measured time in ns.

Definition at line 112 of file HGTDCluster_v1.h.

112 {
114}
float time() const
Return the measured time in ns.
ConstVectorMap< N > localPosition() const
Returns the local position of the measurement.

◆ time() [2/3]

float xAOD::HGTDCluster_v1::time ( ConstVectorMap< 3 > local_position)
inlinestatic

Convenience methods to extract the time from the local position in ns.

Definition at line 106 of file HGTDCluster_v1.h.

106 {
107 return local_position[2];
108}

◆ time() [3/3]

float xAOD::HGTDCluster_v1::time ( VectorMap< 3 > local_position)
inlinestatic

Definition at line 100 of file HGTDCluster_v1.h.

100 {
101 return local_position[2];
102}

◆ timeCovariance() [1/3]

float xAOD::HGTDCluster_v1::timeCovariance ( ) const
inline

Return the covariance of the measured time in ns squared.

Definition at line 115 of file HGTDCluster_v1.h.

115 {
117}
float timeCovariance() const
Return the covariance of the measured time in ns squared.
ConstMatrixMap< N > localCovariance() const
Returns the local covariance of the measurement.

◆ timeCovariance() [2/3]

float xAOD::HGTDCluster_v1::timeCovariance ( ConstMatrixMap< 3 > local_covariance)
inlinestatic

Convenience methods to extract the time covariance from the local covariance in ns squared.

Definition at line 109 of file HGTDCluster_v1.h.

109 {
110 return local_covariance(2,2);
111}

◆ timeCovariance() [3/3]

float xAOD::HGTDCluster_v1::timeCovariance ( MatrixMap< 3 > local_covariance)
inlinestatic

Definition at line 103 of file HGTDCluster_v1.h.

103 {
104 return local_covariance(2,2);
105}

◆ totList()

SG::ConstAccessor< SG::JaggedVecElt< int > >::element_type xAOD::HGTDCluster_v1::totList ( ) const
inline

Returns the list of Time Over Threshold of the channels building the cluster.

Definition at line 96 of file HGTDCluster_v1.h.

96 {
97 return s_totListAcc(*this);
98}

◆ totListAcc()

const SG::AuxElement::Accessor< SG::JaggedVecElt< int > > xAOD::HGTDCluster_v1::totListAcc ( )
inlinestatic

Definition at line 71 of file HGTDCluster_v1.h.

71{ return s_totListAcc; }

◆ type()

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

Returns the type of the HGTD cluster as a simple enumeration.

Implements xAOD::UncalibratedMeasurement_v1.

Definition at line 35 of file HGTDCluster_v1.h.

Member Data Documentation

◆ s_rdoListAcc

const SG::AuxElement::Accessor< SG::JaggedVecElt< Identifier::value_type > > xAOD::HGTDCluster_v1::s_rdoListAcc
staticprotected

Definition at line 82 of file HGTDCluster_v1.h.

◆ s_totListAcc

const SG::AuxElement::Accessor< SG::JaggedVecElt< int > > xAOD::HGTDCluster_v1::s_totListAcc
staticprotected

Definition at line 83 of file HGTDCluster_v1.h.


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