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

Class describing HGTD clusters. More...

#include <PixelCluster_v1.h>

Inheritance diagram for xAOD::PixelCluster_v1:
Collaboration diagram for xAOD::PixelCluster_v1:

Classes

struct  ClusterVars

Public Member Functions

 PixelCluster_v1 ()=default
 Default constructor.
virtual ~PixelCluster_v1 ()=default
 Virtual destructor.
Functions to get pixel cluster properties
xAOD::UncalibMeasType type () const override final
 Returns the type of the pixel cluster as a simple enumeration.
unsigned int numDimensions () const override final
 Returns the number of dimensions of the measurement.
ConstVectorMap< 3 > globalPosition () const
 Returns the global position of the pixel cluster.
VectorMap< 3 > globalPosition ()
SG::ConstAccessor< SG::JaggedVecElt< Identifier::value_type > >::element_type rdoList () const
 Returns the list of identifiers of the channels building the cluster.
int channelsInPhi () const
 Returns the dimensions of the cluster in numbers of channels in phi (x) and eta (y) directions, respectively.
int channelsInEta () const
float widthInEta () const
 Returns the width of the cluster in phi (x) and eta (y) directions, respectively.
SG::ConstAccessor< SG::JaggedVecElt< int > >::element_type totList () const
 Returns the list of ToT of the channels building the cluster.
SG::ConstAccessor< SG::JaggedVecElt< float > >::element_type chargeList () const
 Returns the list of charges of the channels building the cluster.
float energyLoss () const
 Return the energy loss in the cluster in MeV.
int lvl1a () const
 Return the LVL1 accept.
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 Protected Attributes

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

Functions to set pixel cluster properties

void setRDOlist (const std::vector< Identifier > &rdolist)
 Sets the list of identifiers of the channels building the cluster.
void setRDOlist (std::vector< Identifier::value_type > &&rdolist)
 Setter with std::move if the value_type is already available.
void setRDOlist (std::span< Identifier::value_type > rdolist)
 Setter with std::move if the value_type is already available.
void setChannelsInPhiEta (int channelsInPhi, int channelsInEta)
 Sets the dimensions of the cluster in numbers of channels in phi (x) and eta (y) directions.
void setWidthInEta (float widthInEta)
 Sets the width of the cluster in eta (y) direction.
void setToTlist (const std::vector< int > &tots)
 Sets the list of ToT of the channels building the cluster.
void setToTlist (std::span< int > tots)
void setChargelist (const std::vector< float > &charges)
 Sets the list of charges of the channels building the cluster.
void setChargelist (std::span< float > charges)
void setEnergyLoss (float dEdX)
 Sets the energy loss in the cluster in MeV.
void setLVL1A (int lvl1a)
 Sets the LVL1 accept.
static const SG::AuxElement::Accessor< SG::JaggedVecElt< Identifier::value_type > > rdoListAcc ()
static const SG::AuxElement::Accessor< SG::JaggedVecElt< int > > totListAcc ()
static const SG::AuxElement::Accessor< SG::JaggedVecElt< float > > chargeListAcc ()

Detailed Description

Class describing HGTD clusters.

Class describing pixel clusters.

Definition at line 20 of file PixelCluster_v1.h.

Constructor & Destructor Documentation

◆ PixelCluster_v1()

xAOD::PixelCluster_v1::PixelCluster_v1 ( )
default

Default constructor.

◆ ~PixelCluster_v1()

virtual xAOD::PixelCluster_v1::~PixelCluster_v1 ( )
virtualdefault

Virtual destructor.

Member Function Documentation

◆ channelsInEta()

int xAOD::PixelCluster_v1::channelsInEta ( ) const

◆ channelsInPhi()

int xAOD::PixelCluster_v1::channelsInPhi ( ) const

Returns the dimensions of the cluster in numbers of channels in phi (x) and eta (y) directions, respectively.

◆ chargeList()

SG::ConstAccessor< SG::JaggedVecElt< float > >::element_type xAOD::PixelCluster_v1::chargeList ( ) const
inline

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

Definition at line 156 of file PixelCluster_v1.h.

156 {
157 return s_chargeListAcc(*this);
158}
static const SG::AuxElement::Accessor< SG::JaggedVecElt< float > > s_chargeListAcc

◆ chargeListAcc()

const SG::AuxElement::Accessor< SG::JaggedVecElt< float > > xAOD::PixelCluster_v1::chargeListAcc ( )
inlinestatic

Definition at line 105 of file PixelCluster_v1.h.

105{ return s_chargeListAcc; }

◆ energyLoss()

float xAOD::PixelCluster_v1::energyLoss ( ) const

Return the energy loss in the cluster in MeV.

◆ globalPosition() [1/2]

xAOD::VectorMap< 3 > xAOD::PixelCluster_v1::globalPosition ( )

Definition at line 20 of file PixelCluster_v1.cxx.

20 {
21 auto& values = globalPosAcc(*this);
22 return VectorMap<3>{values.data()};
23}
static const SG::AuxElement::Accessor< std::array< float, 3 > > globalPosAcc("globalPosition")
Eigen::Map< MeasVector< N > > VectorMap
static AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(EmTauRoI_v1, uint32_t, roiWord, setRoIWord) uint32_t EmTauRoI_v1 const SG::AuxElement::Accessor< std::vector< float > > values("thrValues")
This is a convenience function for accessing the threshold pattern part of the RoI.

◆ globalPosition() [2/2]

xAOD::ConstVectorMap< 3 > xAOD::PixelCluster_v1::globalPosition ( ) const

Returns the global position of the pixel cluster.

Definition at line 15 of file PixelCluster_v1.cxx.

15 {
16 const auto& values = globalPosAcc(*this);
17 return ConstVectorMap<3>{values.data()};
18}
Eigen::Map< const MeasVector< N > > ConstVectorMap

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

◆ lvl1a()

int xAOD::PixelCluster_v1::lvl1a ( ) const

Return the LVL1 accept.

◆ numDimensions()

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

Returns the number of dimensions of the measurement.

Implements xAOD::UncalibratedMeasurement_v1.

Definition at line 35 of file PixelCluster_v1.h.

35{ return 2; }

◆ rdoList()

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

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

Definition at line 144 of file PixelCluster_v1.h.

144 {
145 return s_rdoListAcc(*this);
146}
static const SG::AuxElement::Accessor< SG::JaggedVecElt< Identifier::value_type > > s_rdoListAcc

◆ rdoListAcc()

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

Definition at line 103 of file PixelCluster_v1.h.

103{ return s_rdoListAcc; }

◆ setChannelsInPhiEta()

void xAOD::PixelCluster_v1::setChannelsInPhiEta ( int channelsInPhi,
int channelsInEta )

Sets the dimensions of the cluster in numbers of channels in phi (x) and eta (y) directions.

Definition at line 67 of file PixelCluster_v1.cxx.

68 {
69 static const SG::AuxElement::Accessor<int> chanPhiAcc("channelsInPhi");
70 chanPhiAcc(*this) = channelsInPhi;
71 static const SG::AuxElement::Accessor<int> chanEtaAcc("channelsInEta");
72 chanEtaAcc(*this) = channelsInEta;
73}
int channelsInPhi() const
Returns the dimensions of the cluster in numbers of channels in phi (x) and eta (y) directions,...
int channelsInEta() const

◆ setChargelist() [1/2]

void xAOD::PixelCluster_v1::setChargelist ( const std::vector< float > & charges)

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

Definition at line 55 of file PixelCluster_v1.cxx.

55 {
56 s_chargeListAcc.set(*this,charges);
57}

◆ setChargelist() [2/2]

void xAOD::PixelCluster_v1::setChargelist ( std::span< float > charges)

Definition at line 59 of file PixelCluster_v1.cxx.

59 {
60 s_chargeListAcc.set(*this,charges);
61}

◆ setEnergyLoss()

void xAOD::PixelCluster_v1::setEnergyLoss ( float dEdX)

Sets the energy loss in the cluster in MeV.

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

◆ setLVL1A()

void xAOD::PixelCluster_v1::setLVL1A ( int lvl1a)

Sets the LVL1 accept.

◆ 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/3]

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

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

Definition at line 34 of file PixelCluster_v1.cxx.

34 {
35 std::vector<Identifier::value_type> rdos(rdoList.size());
36 for (std::size_t i(0); i < rdos.size(); ++i) {
37 rdos[i] = rdoList[i].get_compact();
38 }
39 s_rdoListAcc.set(*this,rdos);
40}
SG::ConstAccessor< SG::JaggedVecElt< Identifier::value_type > >::element_type rdoList() const
Returns the list of identifiers of the channels building the cluster.

◆ setRDOlist() [2/3]

void xAOD::PixelCluster_v1::setRDOlist ( std::span< Identifier::value_type > rdolist)

Setter with std::move if the value_type is already available.

Definition at line 29 of file PixelCluster_v1.cxx.

29 {
30 s_rdoListAcc.set(*this,rdoList);
31}

◆ setRDOlist() [3/3]

void xAOD::PixelCluster_v1::setRDOlist ( std::vector< Identifier::value_type > && rdolist)

Setter with std::move if the value_type is already available.

Definition at line 26 of file PixelCluster_v1.cxx.

26 {
27 s_rdoListAcc.set(*this,rdoList);
28}

◆ setToTlist() [1/2]

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

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

Definition at line 45 of file PixelCluster_v1.cxx.

45 {
46 s_totListAcc.set(*this,tots);
47}
static const SG::AuxElement::Accessor< SG::JaggedVecElt< int > > s_totListAcc

◆ setToTlist() [2/2]

void xAOD::PixelCluster_v1::setToTlist ( std::span< int > tots)

Definition at line 49 of file PixelCluster_v1.cxx.

49 {
50 s_totListAcc.set(*this,tots);
51}

◆ setWidthInEta()

void xAOD::PixelCluster_v1::setWidthInEta ( float widthInEta)

Sets the width of the cluster in eta (y) direction.

◆ totList()

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

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

Definition at line 150 of file PixelCluster_v1.h.

150 {
151 return s_totListAcc(*this);
152}

◆ totListAcc()

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

Definition at line 104 of file PixelCluster_v1.h.

104{ return s_totListAcc; }

◆ type()

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

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

Implements xAOD::UncalibratedMeasurement_v1.

Definition at line 32 of file PixelCluster_v1.h.

◆ widthInEta()

float xAOD::PixelCluster_v1::widthInEta ( ) const

Returns the width of the cluster in phi (x) and eta (y) directions, respectively.

Member Data Documentation

◆ s_chargeListAcc

const SG::AuxElement::Accessor< SG::JaggedVecElt< float > > xAOD::PixelCluster_v1::s_chargeListAcc
staticprotected

Definition at line 110 of file PixelCluster_v1.h.

◆ s_rdoListAcc

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

Definition at line 108 of file PixelCluster_v1.h.

◆ s_totListAcc

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

Definition at line 109 of file PixelCluster_v1.h.


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