ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
egammaRec Class Reference

#include <egammaRec.h>

Collaboration diagram for egammaRec:

Public Member Functions

 egammaRec ()=default
 Default constructor implemented. More...
 
 egammaRec (const std::vector< ElementLink< xAOD::CaloClusterContainer >> &caloClusterLinks)
 Constructor which adds cluster links. More...
 
 egammaRec (const egammaRec &)=default
 Default copy/move ctor/assignment dtor. More...
 
 egammaRec (egammaRec &&)=default
 
egammaRecoperator= (const egammaRec &)=default
 
egammaRecoperator= (egammaRec &&)=default
 
 ~egammaRec ()=default
 
size_t getNumberOfClusters () const
 Return the number of xAOD::CaloClusters that define the electron candidate. More...
 
const xAOD::CaloClustercaloCluster (size_t index=0) const
 Pointer to the xAOD::CaloCluster/s that define the electron candidate. More...
 
ElementLink< xAOD::CaloClusterContainercaloClusterElementLink (size_t index=0) const
 ElementLink to the xAOD::CaloCluster/s that match the electron candidate. More...
 
void setCaloClusters (const std::vector< ElementLink< xAOD::CaloClusterContainer >> &links)
 set Pointer to the xAOD::CaloCluster More...
 
const std::vector< ElementLink< xAOD::CaloClusterContainer > > & caloClusterElementLinks () const
 Get a reference to the calo cluster links. More...
 
size_t getNumberOfTrackParticles () const
 Return the number xAOD::TrackParticles that match the electron candidate. More...
 
const xAOD::TrackParticletrackParticle (size_t index=0) const
 Pointer to the xAOD::TrackParticle/s that match the electron candidate. More...
 
ElementLink< xAOD::TrackParticleContainertrackParticleElementLink (size_t index=0) const
 ElementLink to the xAOD::TrackParticle/s that match the electron candidate. More...
 
void setTrackParticles (const std::vector< ElementLink< xAOD::TrackParticleContainer >> &links)
 Set the ElementLinks to the xAOD::TrackParticle/s that match the electron candidate. More...
 
const std::vector< ElementLink< xAOD::TrackParticleContainer > > & trackParticleElementLinks () const
 Get a reference to the track particle links. More...
 
size_t getNumberOfVertices () const
 Return the number xAOD::Vertex/vertices that match the photon candidate. More...
 
const xAOD::Vertexvertex (size_t index=0) const
 Pointer to the xAOD::Vertex/es that match the photon candidate. More...
 
ElementLink< xAOD::VertexContainervertexElementLink (size_t index=0) const
 ElementLink to the xAOD::vertex/es that match the electron candidate. More...
 
void setVertices (const std::vector< ElementLink< xAOD::VertexContainer >> &links)
 set Pointer to the xAOD::vertex/vertices that match the photon candidate More...
 
const std::vector< ElementLink< xAOD::VertexContainer > > & vertexElementLinks () const
 Get a reference to the vertix links. More...
 
void pushBackVertex (const ElementLink< xAOD::VertexContainer > &vertexElementLink)
 Push back another vertex. More...
 
void pushFrontVertex (const ElementLink< xAOD::VertexContainer > &vertexElementLink)
 Push front another vertex. More...
 
matching variables for the best match track
std::array< double, 4 > deltaEta () const
 deltaEta at pre sampler(0) -> 3rd sampling(3) More...
 
std::array< double, 4 > deltaPhi () const
 deltaPhi at pre sampler(0) -> 3rd sampling(3) More...
 
std::array< double, 4 > deltaPhiRescaled () const
 deltaPhi for rescaled momentum extrapolation from the perigee. More...
 
double deltaPhiLast () const
 deltaPhi from Last measurement More...
 
void setDeltaEta (const std::array< double, 4 > &deltaEtas)
 set deltaEta at pre sampler(0) -> 3rd sampling(3) More...
 
void setDeltaPhi (const std::array< double, 4 > &deltaPhis)
 set Phi of track extrapolated at pre sampler(0) -> 3rd sampling(3) More...
 
void setDeltaPhiRescaled (std::array< double, 4 > &deltaPhis)
 set deltaPhi at sampling for rescaled momentum extrapolation from the perigee. More...
 
void setDeltaPhiLast (double value)
 set deltaPhi at sampling 2 from Last track Measurement More...
 
matching variables for the best match vertex
float deltaEtaVtx () const
 deltaEtaVtx
More...
 
float deltaPhiVtx () const
 deltaPhiVtx More...
 
void setDeltaEtaVtx (float value)
 set deltaEtaVtx More...
 
void setDeltaPhiVtx (float value)
 set deltaPhiVtx More...
 

Private Attributes

std::vector< ElementLink< xAOD::CaloClusterContainer > > m_caloClusters
 
std::vector< ElementLink< xAOD::TrackParticleContainer > > m_trackParticles
 
std::vector< ElementLink< xAOD::VertexContainer > > m_vertices
 
std::array< double, 4 > m_deltaEta {-999, -999, -999, -999}
 
std::array< double, 4 > m_deltaPhi {-999, -999, -999, -999}
 
std::array< double, 4 > m_deltaPhiRescaled {-999, -999, -999, -999}
 
double m_deltaPhiLast = -999
 
float m_deltaEtaVtx = -999
 
float m_deltaPhiVtx = -999
 

Detailed Description

Represent an egamma object for internal egamma usage during reconstruction

Definition at line 30 of file egammaRec.h.

Constructor & Destructor Documentation

◆ egammaRec() [1/4]

egammaRec::egammaRec ( )
default

Default constructor implemented.

◆ egammaRec() [2/4]

egammaRec::egammaRec ( const std::vector< ElementLink< xAOD::CaloClusterContainer >> &  caloClusterLinks)

Constructor which adds cluster links.

◆ egammaRec() [3/4]

egammaRec::egammaRec ( const egammaRec )
default

Default copy/move ctor/assignment dtor.

◆ egammaRec() [4/4]

egammaRec::egammaRec ( egammaRec &&  )
default

◆ ~egammaRec()

egammaRec::~egammaRec ( )
default

Member Function Documentation

◆ caloCluster()

const xAOD::CaloCluster * egammaRec::caloCluster ( size_t  index = 0) const

Pointer to the xAOD::CaloCluster/s that define the electron candidate.

Definition at line 8 of file egammaRec.cxx.

9 {
10  if (index >= m_caloClusters.size() || !m_caloClusters[index].isValid()){
11  return nullptr;
12  }
13  return (*(m_caloClusters[index]));
14 }

◆ caloClusterElementLink()

ElementLink< xAOD::CaloClusterContainer > egammaRec::caloClusterElementLink ( size_t  index = 0) const

ElementLink to the xAOD::CaloCluster/s that match the electron candidate.

Definition at line 17 of file egammaRec.cxx.

18 {
19  if (index >= m_caloClusters.size() || !m_caloClusters[index].isValid()){
20  return {};
21  }
22  return m_caloClusters[index];
23 }

◆ caloClusterElementLinks()

const std::vector< ElementLink< xAOD::CaloClusterContainer > > & egammaRec::caloClusterElementLinks ( ) const

Get a reference to the calo cluster links.

Definition at line 26 of file egammaRec.cxx.

26  {
27  return m_caloClusters;
28 }

◆ deltaEta()

std::array<double,4> egammaRec::deltaEta ( ) const

deltaEta at pre sampler(0) -> 3rd sampling(3)

◆ deltaEtaVtx()

float egammaRec::deltaEtaVtx ( ) const

deltaEtaVtx

◆ deltaPhi()

std::array<double,4> egammaRec::deltaPhi ( ) const

deltaPhi at pre sampler(0) -> 3rd sampling(3)

◆ deltaPhiLast()

double egammaRec::deltaPhiLast ( ) const

deltaPhi from Last measurement

◆ deltaPhiRescaled()

std::array<double,4> egammaRec::deltaPhiRescaled ( ) const

deltaPhi for rescaled momentum extrapolation from the perigee.

◆ deltaPhiVtx()

float egammaRec::deltaPhiVtx ( ) const

deltaPhiVtx

◆ getNumberOfClusters()

size_t egammaRec::getNumberOfClusters ( ) const

Return the number of xAOD::CaloClusters that define the electron candidate.

◆ getNumberOfTrackParticles()

size_t egammaRec::getNumberOfTrackParticles ( ) const

Return the number xAOD::TrackParticles that match the electron candidate.

◆ getNumberOfVertices()

size_t egammaRec::getNumberOfVertices ( ) const

Return the number xAOD::Vertex/vertices that match the photon candidate.

◆ operator=() [1/2]

egammaRec& egammaRec::operator= ( const egammaRec )
default

◆ operator=() [2/2]

egammaRec& egammaRec::operator= ( egammaRec &&  )
default

◆ pushBackVertex()

void egammaRec::pushBackVertex ( const ElementLink< xAOD::VertexContainer > &  vertexElementLink)

Push back another vertex.

Definition at line 76 of file egammaRec.cxx.

77 {
78  m_vertices.push_back(vertexElementLink);
79 }

◆ pushFrontVertex()

void egammaRec::pushFrontVertex ( const ElementLink< xAOD::VertexContainer > &  vertexElementLink)

Push front another vertex.

Definition at line 82 of file egammaRec.cxx.

83 {
84  m_vertices.insert(m_vertices.begin(), vertexElementLink);
85 }

◆ setCaloClusters()

void egammaRec::setCaloClusters ( const std::vector< ElementLink< xAOD::CaloClusterContainer >> &  links)

set Pointer to the xAOD::CaloCluster

◆ setDeltaEta()

void egammaRec::setDeltaEta ( const std::array< double, 4 > &  deltaEtas)

set deltaEta at pre sampler(0) -> 3rd sampling(3)

◆ setDeltaEtaVtx()

void egammaRec::setDeltaEtaVtx ( float  value)

set deltaEtaVtx

◆ setDeltaPhi()

void egammaRec::setDeltaPhi ( const std::array< double, 4 > &  deltaPhis)

set Phi of track extrapolated at pre sampler(0) -> 3rd sampling(3)

◆ setDeltaPhiLast()

void egammaRec::setDeltaPhiLast ( double  value)

set deltaPhi at sampling 2 from Last track Measurement

◆ setDeltaPhiRescaled()

void egammaRec::setDeltaPhiRescaled ( std::array< double, 4 > &  deltaPhis)

set deltaPhi at sampling for rescaled momentum extrapolation from the perigee.

◆ setDeltaPhiVtx()

void egammaRec::setDeltaPhiVtx ( float  value)

set deltaPhiVtx

◆ setTrackParticles()

void egammaRec::setTrackParticles ( const std::vector< ElementLink< xAOD::TrackParticleContainer >> &  links)

Set the ElementLinks to the xAOD::TrackParticle/s that match the electron candidate.

◆ setVertices()

void egammaRec::setVertices ( const std::vector< ElementLink< xAOD::VertexContainer >> &  links)

set Pointer to the xAOD::vertex/vertices that match the photon candidate

◆ trackParticle()

const xAOD::TrackParticle * egammaRec::trackParticle ( size_t  index = 0) const

Pointer to the xAOD::TrackParticle/s that match the electron candidate.

Definition at line 31 of file egammaRec.cxx.

32 {
33  if (index >= m_trackParticles.size() || !m_trackParticles[index].isValid()){
34  return nullptr;
35  }
36  return (*(m_trackParticles[index]));
37 }

◆ trackParticleElementLink()

ElementLink< xAOD::TrackParticleContainer > egammaRec::trackParticleElementLink ( size_t  index = 0) const

ElementLink to the xAOD::TrackParticle/s that match the electron candidate.

Definition at line 40 of file egammaRec.cxx.

41 {
42  if (index >= m_trackParticles.size() || !m_trackParticles[index].isValid()){
43  return {};
44  }
45  return m_trackParticles[index];
46 }

◆ trackParticleElementLinks()

const std::vector< ElementLink< xAOD::TrackParticleContainer > > & egammaRec::trackParticleElementLinks ( ) const

Get a reference to the track particle links.

Definition at line 49 of file egammaRec.cxx.

49  {
50  return m_trackParticles;
51 }

◆ vertex()

const xAOD::Vertex * egammaRec::vertex ( size_t  index = 0) const

Pointer to the xAOD::Vertex/es that match the photon candidate.

Definition at line 54 of file egammaRec.cxx.

55 {
56  if (index >= m_vertices.size() || !m_vertices[index].isValid()){
57  return nullptr;
58  }
59  return (*(m_vertices[index]));
60 }

◆ vertexElementLink()

ElementLink< xAOD::VertexContainer > egammaRec::vertexElementLink ( size_t  index = 0) const

ElementLink to the xAOD::vertex/es that match the electron candidate.

Definition at line 63 of file egammaRec.cxx.

63  {
64  if (index >= m_vertices.size() || !m_vertices[index].isValid()){
65  return {};
66  }
67  return m_vertices.at(index);
68 }

◆ vertexElementLinks()

const std::vector< ElementLink< xAOD::VertexContainer > > & egammaRec::vertexElementLinks ( ) const

Get a reference to the vertix links.

Definition at line 71 of file egammaRec.cxx.

71  {
72  return m_vertices;
73 }

Member Data Documentation

◆ m_caloClusters

std::vector<ElementLink<xAOD::CaloClusterContainer> > egammaRec::m_caloClusters
private

Definition at line 146 of file egammaRec.h.

◆ m_deltaEta

std::array<double, 4> egammaRec::m_deltaEta {-999, -999, -999, -999}
private

Definition at line 150 of file egammaRec.h.

◆ m_deltaEtaVtx

float egammaRec::m_deltaEtaVtx = -999
private

Definition at line 155 of file egammaRec.h.

◆ m_deltaPhi

std::array<double, 4> egammaRec::m_deltaPhi {-999, -999, -999, -999}
private

Definition at line 151 of file egammaRec.h.

◆ m_deltaPhiLast

double egammaRec::m_deltaPhiLast = -999
private

Definition at line 154 of file egammaRec.h.

◆ m_deltaPhiRescaled

std::array<double, 4> egammaRec::m_deltaPhiRescaled {-999, -999, -999, -999}
private

Definition at line 152 of file egammaRec.h.

◆ m_deltaPhiVtx

float egammaRec::m_deltaPhiVtx = -999
private

Definition at line 156 of file egammaRec.h.

◆ m_trackParticles

std::vector<ElementLink<xAOD::TrackParticleContainer> > egammaRec::m_trackParticles
private

Definition at line 147 of file egammaRec.h.

◆ m_vertices

std::vector<ElementLink<xAOD::VertexContainer> > egammaRec::m_vertices
private

Definition at line 148 of file egammaRec.h.


The documentation for this class was generated from the following files:
egammaRec::vertexElementLink
ElementLink< xAOD::VertexContainer > vertexElementLink(size_t index=0) const
ElementLink to the xAOD::vertex/es that match the electron candidate.
Definition: egammaRec.cxx:63
index
Definition: index.py:1
egammaRec::m_vertices
std::vector< ElementLink< xAOD::VertexContainer > > m_vertices
Definition: egammaRec.h:148
egammaRec::m_caloClusters
std::vector< ElementLink< xAOD::CaloClusterContainer > > m_caloClusters
Definition: egammaRec.h:146
egammaRec::m_trackParticles
std::vector< ElementLink< xAOD::TrackParticleContainer > > m_trackParticles
Definition: egammaRec.h:147
DeMoScan.index
string index
Definition: DeMoScan.py:362