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

class storing calorimeter information associated with track based objects More...

#include <ParticleCaloExtension.h>

Collaboration diagram for xAOD::ParticleCaloExtension:

Public Member Functions

 ParticleCaloExtension (float charge, std::vector< std::vector< float > > &&parameters, std::vector< std::vector< float > > &&parametersCovariance, std::vector< int > &&identifiers)
 constructor taking calo extrapolation as input.
 ~ParticleCaloExtension ()
 destructor
 ParticleCaloExtension (const ParticleCaloExtension &)=delete
 no copy constructor
ParticleCaloExtensionoperator= (const ParticleCaloExtension &)=delete
 no assignment operator
size_t numberOfParameters () const
 Returns the number of additional parameters stored in the Particle.
const CurvilinearParameters_t trackParameters (unsigned int index) const
 Returns the track parameter vector at 'index'.
int parameterIdentifier (unsigned int index) const
 Return the ParameterPosition of the parameters at 'index'.
bool trackParameterCovarianceMatrix (ParametersCovMatrix_t &matrix, unsigned int index) const
 fill the matrix with the covariance at position 'index', returns false if the parameters at 'index' does not have a covariance
const Trk::CurvilinearParameters curvilinearParameters (unsigned int index) const
 Returns a curvilinear representation of the parameters at 'index'.
bool cellsAreAssociated () const
 return whether cells were already associated or not
const std::vector< CaloCell * > & caloCells () const
 return vector of cells
void setCaloCells (const std::vector< CaloCell * > &cells)
 set vector of cells

Private Attributes

float m_charge
 charge (unused in AnalysisBase)
std::vector< std::vector< float > > m_parameters
 parameters of the intersections with detector layers
std::vector< std::vector< float > > m_parametersCovariance
 covariance of parameters of the intersections with detector layers
std::vector< intm_identifiers
 identifiers of the intersections with detector layers
bool m_cellsAreSet
 cell information
std::vector< CaloCell * > m_caloCells

Detailed Description

class storing calorimeter information associated with track based objects

Definition at line 22 of file ParticleCaloExtension.h.

Constructor & Destructor Documentation

◆ ParticleCaloExtension() [1/2]

xAOD::ParticleCaloExtension::ParticleCaloExtension ( float charge,
std::vector< std::vector< float > > && parameters,
std::vector< std::vector< float > > && parametersCovariance,
std::vector< int > && identifiers )

constructor taking calo extrapolation as input.

All vectors should be of the same length

Definition at line 9 of file ParticleCaloExtension.cxx.

11 :
12 m_charge(charge), m_parameters(parameters),m_parametersCovariance(parametersCovariance),m_identifiers(identifiers), m_cellsAreSet(false)
13 {
14 }
float m_charge
charge (unused in AnalysisBase)
std::vector< int > m_identifiers
identifiers of the intersections with detector layers
std::vector< std::vector< float > > m_parametersCovariance
covariance of parameters of the intersections with detector layers
std::vector< std::vector< float > > m_parameters
parameters of the intersections with detector layers

◆ ~ParticleCaloExtension()

xAOD::ParticleCaloExtension::~ParticleCaloExtension ( )

destructor

Definition at line 16 of file ParticleCaloExtension.cxx.

16 {
17 }

◆ ParticleCaloExtension() [2/2]

xAOD::ParticleCaloExtension::ParticleCaloExtension ( const ParticleCaloExtension & )
delete

no copy constructor

Member Function Documentation

◆ caloCells()

const std::vector< CaloCell * > & xAOD::ParticleCaloExtension::caloCells ( ) const
inline

return vector of cells

Definition at line 119 of file ParticleCaloExtension.h.

119 {
120 return m_caloCells;
121 }
std::vector< CaloCell * > m_caloCells

◆ cellsAreAssociated()

bool xAOD::ParticleCaloExtension::cellsAreAssociated ( ) const
inline

return whether cells were already associated or not

Definition at line 115 of file ParticleCaloExtension.h.

115 {
116 return m_cellsAreSet;
117 }

◆ curvilinearParameters()

const Trk::CurvilinearParameters xAOD::ParticleCaloExtension::curvilinearParameters ( unsigned int index) const
inline

Returns a curvilinear representation of the parameters at 'index'.

Note
This is only available in Athena.

Definition at line 129 of file ParticleCaloExtension.h.

129 {
130
131 // copy the correct values into the temp matrix
132 ParametersCovMatrix_t cov;
133 if( !m_parametersCovariance[index].empty() ) {
135 }
136 // retrieve the parameters to build the curvilinear frame
137 Amg::Vector3D pos( m_parameters[index][0],m_parameters[index][1],m_parameters[index][2]);
138 Amg::Vector3D mom(m_parameters[index][3],m_parameters[index][4],m_parameters[index][5]);
139 Trk::CurvilinearParameters param(pos,mom,m_charge,std::move(cov));
140
141 return param;
142 }
static const Attributes_t empty
bool trackParameterCovarianceMatrix(ParametersCovMatrix_t &matrix, unsigned int index) const
fill the matrix with the covariance at position 'index', returns false if the parameters at 'index' d...
Eigen::Matrix< double, 3, 1 > Vector3D
CurvilinearParametersT< TrackParametersDim, Charged, PlaneSurface > CurvilinearParameters

◆ numberOfParameters()

size_t xAOD::ParticleCaloExtension::numberOfParameters ( ) const
inline

Returns the number of additional parameters stored in the Particle.

Definition at line 88 of file ParticleCaloExtension.h.

88 {
89 return m_parameters.size();
90 }

◆ operator=()

ParticleCaloExtension & xAOD::ParticleCaloExtension::operator= ( const ParticleCaloExtension & )
delete

no assignment operator

◆ parameterIdentifier()

int xAOD::ParticleCaloExtension::parameterIdentifier ( unsigned int index) const
inline

Return the ParameterPosition of the parameters at 'index'.

Definition at line 111 of file ParticleCaloExtension.h.

111 {
112 return m_identifiers[index];
113 }
str index
Definition DeMoScan.py:362

◆ setCaloCells()

void xAOD::ParticleCaloExtension::setCaloCells ( const std::vector< CaloCell * > & cells)
inline

set vector of cells

Definition at line 123 of file ParticleCaloExtension.h.

123 {
125 m_cellsAreSet=true;
126 }

◆ trackParameterCovarianceMatrix()

bool xAOD::ParticleCaloExtension::trackParameterCovarianceMatrix ( ParametersCovMatrix_t & matrix,
unsigned int index ) const
inline

fill the matrix with the covariance at position 'index', returns false if the parameters at 'index' does not have a covariance

Definition at line 100 of file ParticleCaloExtension.h.

100 {
101 const std::vector<float>& covVec = m_parametersCovariance[index];
102 if( !covVec.empty() ) Amg::expand( covVec.begin(), covVec.end(),cov );
103 else{
104 cov.setIdentity();
105 return false;
106 }
107 return true;
108 }
void expand(std::vector< float >::const_iterator it, std::vector< float >::const_iterator, AmgSymMatrix(N) &covMatrix)
std::vector< float > covVec(const U &p)

◆ trackParameters()

const CurvilinearParameters_t xAOD::ParticleCaloExtension::trackParameters ( unsigned int index) const
inline

Returns the track parameter vector at 'index'.

Definition at line 93 of file ParticleCaloExtension.h.

93 {
94 CurvilinearParameters_t tmp;
97 return tmp;
98 }

Member Data Documentation

◆ m_caloCells

std::vector<CaloCell*> xAOD::ParticleCaloExtension::m_caloCells
private

Definition at line 84 of file ParticleCaloExtension.h.

◆ m_cellsAreSet

bool xAOD::ParticleCaloExtension::m_cellsAreSet
private

cell information

Definition at line 83 of file ParticleCaloExtension.h.

◆ m_charge

float xAOD::ParticleCaloExtension::m_charge
private

charge (unused in AnalysisBase)

Definition at line 71 of file ParticleCaloExtension.h.

◆ m_identifiers

std::vector<int> xAOD::ParticleCaloExtension::m_identifiers
private

identifiers of the intersections with detector layers

Definition at line 80 of file ParticleCaloExtension.h.

◆ m_parameters

std::vector<std::vector<float> > xAOD::ParticleCaloExtension::m_parameters
private

parameters of the intersections with detector layers

Definition at line 74 of file ParticleCaloExtension.h.

◆ m_parametersCovariance

std::vector<std::vector<float> > xAOD::ParticleCaloExtension::m_parametersCovariance
private

covariance of parameters of the intersections with detector layers

Definition at line 77 of file ParticleCaloExtension.h.


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