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

Class describing strip clusters. More...

#include <StripCluster_v1.h>

Inheritance diagram for xAOD::StripCluster_v1:
Collaboration diagram for xAOD::StripCluster_v1:

Public Member Functions

 StripCluster_v1 ()=default
 Default constructor.
virtual ~StripCluster_v1 ()=default
 Virtual destructor.
Functions to get strip cluster properties
xAOD::UncalibMeasType type () const override final
 Returns the type of the strip 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 strip cluster.
VectorMap< 3 > globalPosition ()
const std::vector< IdentifierrdoList () 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), respectively.
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 setChannelsInPhi (int channelsInPhi)
 Sets the dimensions of the cluster in numbers of channels in phi (x).
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.

Detailed Description

Class describing strip clusters.

Definition at line 17 of file StripCluster_v1.h.

Constructor & Destructor Documentation

◆ StripCluster_v1()

xAOD::StripCluster_v1::StripCluster_v1 ( )
default

Default constructor.

◆ ~StripCluster_v1()

virtual xAOD::StripCluster_v1::~StripCluster_v1 ( )
virtualdefault

Virtual destructor.

Member Function Documentation

◆ channelsInPhi()

int xAOD::StripCluster_v1::channelsInPhi ( ) const

Returns the dimensions of the cluster in numbers of channels in phi (x), respectively.

◆ globalPosition() [1/2]

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

Definition at line 20 of file StripCluster_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::StripCluster_v1::globalPosition ( ) const

Returns the global position of the strip cluster.

Definition at line 15 of file StripCluster_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.

◆ numDimensions()

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

Returns the number of dimensions of the measurement.

Implements xAOD::UncalibratedMeasurement_v1.

Definition at line 32 of file StripCluster_v1.h.

32{ return 1; }

◆ rdoList()

const std::vector< Identifier > xAOD::StripCluster_v1::rdoList ( ) const

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

Definition at line 37 of file StripCluster_v1.cxx.

37 {
38 const std::vector<Identifier::value_type>& values = rdoListAcc(*this);
39 std::vector<Identifier> rdos(values.size());
40 for (std::size_t i(0); i < rdos.size(); ++i) {
41 rdos[i].set_literal(values[i]);
42 }
43 return rdos;
44}
static const SG::AuxElement::Accessor< std::vector< Identifier::value_type > > rdoListAcc("rdoList")

◆ setChannelsInPhi()

void xAOD::StripCluster_v1::setChannelsInPhi ( int channelsInPhi)

Sets the dimensions of the cluster in numbers of channels in phi (x).

◆ 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::StripCluster_v1::setRDOlist ( const std::vector< Identifier > & rdolist)

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

Definition at line 29 of file StripCluster_v1.cxx.

29 {
30 std::vector<Identifier::value_type> rdos(rdoList.size());
31 for (std::size_t i(0); i < rdos.size(); ++i) {
32 rdos[i] = rdoList[i].get_compact();
33 }
34 rdoListAcc(*this) = std::move(rdos);
35}
const std::vector< Identifier > rdoList() const
Returns the list of identifiers of the channels building the cluster.

◆ setRDOlist() [2/2]

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

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

Definition at line 25 of file StripCluster_v1.cxx.

25 {
26 rdoListAcc(*this) = std::move(rdoList);
27}

◆ type()

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

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

Implements xAOD::UncalibratedMeasurement_v1.

Definition at line 29 of file StripCluster_v1.h.


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