ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
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. More...
 
 ~ParticleCaloExtension ()
 destructor More...
 
 ParticleCaloExtension (const ParticleCaloExtension &)=delete
 no copy constructor More...
 
ParticleCaloExtensionoperator= (const ParticleCaloExtension &)=delete
 no assignment operator More...
 
size_t numberOfParameters () const
 Returns the number of additional parameters stored in the Particle. More...
 
const CurvilinearParameters_t trackParameters (unsigned int index) const
 Returns the track parameter vector at 'index'. More...
 
int parameterIdentifier (unsigned int index) const
 Return the ParameterPosition of the parameters at 'index'. More...
 
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 More...
 
const Trk::CurvilinearParameters curvilinearParameters (unsigned int index) const
 Returns a curvilinear representation of the parameters at 'index'. More...
 
bool cellsAreAssociated () const
 return whether cells were already associated or not More...
 
const std::vector< CaloCell * > & caloCells () const
 return vector of cells More...
 
void setCaloCells (const std::vector< CaloCell * > &cells)
 set vector of cells More...
 

Private Attributes

float m_charge
 charge (unused in AnalysisBase) More...
 
std::vector< std::vector< float > > m_parameters
 parameters of the intersections with detector layers More...
 
std::vector< std::vector< float > > m_parametersCovariance
 covariance of parameters of the intersections with detector layers More...
 
std::vector< intm_identifiers
 identifiers of the intersections with detector layers More...
 
bool m_cellsAreSet
 cell information More...
 
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  :
13  {
14  }

◆ ~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  }

◆ 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;
135  }
136  // retrieve the parameters to build the curvilinear frame
139  Trk::CurvilinearParameters param(pos,mom,m_charge,std::move(cov));
140 
141  return param;
142  }

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

◆ setCaloCells()

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

set vector of cells

Definition at line 123 of file ParticleCaloExtension.h.

123  {
124  m_caloCells = cells;
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  }

◆ 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:
RunTileCalibRec.cells
cells
Definition: RunTileCalibRec.py:271
IDTPM::covVec
std::vector< float > covVec(const U &p)
Definition: TrackParametersHelper.h:181
index
Definition: index.py:1
xAOD::ParticleCaloExtension::m_parameters
std::vector< std::vector< float > > m_parameters
parameters of the intersections with detector layers
Definition: ParticleCaloExtension.h:74
plotBeamSpotVxVal.cov
cov
Definition: plotBeamSpotVxVal.py:201
empty
bool empty(TH1 *h)
Definition: computils.cxx:295
xAOD::ParticleCaloExtension::trackParameterCovarianceMatrix
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...
Definition: ParticleCaloExtension.h:100
Amg::expand
void expand(std::vector< float >::const_iterator it, std::vector< float >::const_iterator, AmgSymMatrix(N) &covMatrix)
Definition: EventPrimitivesHelpers.h:75
ParticleGun_EoverP_Config.mom
mom
Definition: ParticleGun_EoverP_Config.py:63
xAOD::ParticleCaloExtension::m_parametersCovariance
std::vector< std::vector< float > > m_parametersCovariance
covariance of parameters of the intersections with detector layers
Definition: ParticleCaloExtension.h:77
xAOD::charge
charge
Definition: TrigElectron_v1.cxx:85
Trk::CurvilinearParametersT
Definition: CurvilinearParametersT.h:48
xAOD::ParticleCaloExtension::m_charge
float m_charge
charge (unused in AnalysisBase)
Definition: ParticleCaloExtension.h:71
DeMoUpdate.tmp
string tmp
Definition: DeMoUpdate.py:1167
xAOD::ParticleCaloExtension::m_caloCells
std::vector< CaloCell * > m_caloCells
Definition: ParticleCaloExtension.h:84
xAOD::ParticleCaloExtension::m_cellsAreSet
bool m_cellsAreSet
cell information
Definition: ParticleCaloExtension.h:83
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
DeMoScan.index
string index
Definition: DeMoScan.py:364
InDetSimDataHelpers::identifiers
std::vector< Identifier > identifiers(const InDetSimDataCollection &coll)
Definition: InDetSimDataDict.h:15
physics_parameters.parameters
parameters
Definition: physics_parameters.py:144
xAOD::ParticleCaloExtension::m_identifiers
std::vector< int > m_identifiers
identifiers of the intersections with detector layers
Definition: ParticleCaloExtension.h:80