ATLAS Offline Software
Loading...
Searching...
No Matches
egammaRec.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
6
9{
10 if (index >= m_caloClusters.size() || !m_caloClusters[index].isValid()){
11 return nullptr;
12 }
13 return (*(m_caloClusters[index]));
14}
15
18{
19 if (index >= m_caloClusters.size() || !m_caloClusters[index].isValid()){
20 return {};
21 }
22 return m_caloClusters[index];
23}
24
25const std::vector<ElementLink<xAOD::CaloClusterContainer>> &
29
32{
33 if (index >= m_trackParticles.size() || !m_trackParticles[index].isValid()){
34 return nullptr;
35 }
36 return (*(m_trackParticles[index]));
37}
38
41{
42 if (index >= m_trackParticles.size() || !m_trackParticles[index].isValid()){
43 return {};
44 }
45 return m_trackParticles[index];
46}
47
48const std::vector<ElementLink<xAOD::TrackParticleContainer>> &
52
53const xAOD::Vertex*
55{
56 if (index >= m_vertices.size() || !m_vertices[index].isValid()){
57 return nullptr;
58 }
59 return (*(m_vertices[index]));
60}
61
64 if (index >= m_vertices.size() || !m_vertices[index].isValid()){
65 return {};
66 }
67 return m_vertices.at(index);
68}
69
70const std::vector<ElementLink<xAOD::VertexContainer>> &
74
75void
80
81void
86
const std::vector< ElementLink< xAOD::CaloClusterContainer > > & caloClusterElementLinks() const
Get a reference to the calo cluster links.
Definition egammaRec.cxx:26
void pushBackVertex(const ElementLink< xAOD::VertexContainer > &vertexElementLink)
Push back another vertex.
Definition egammaRec.cxx:76
const std::vector< ElementLink< xAOD::TrackParticleContainer > > & trackParticleElementLinks() const
Get a reference to the track particle links.
Definition egammaRec.cxx:49
std::vector< ElementLink< xAOD::TrackParticleContainer > > m_trackParticles
Definition egammaRec.h:147
void pushFrontVertex(const ElementLink< xAOD::VertexContainer > &vertexElementLink)
Push front another vertex.
Definition egammaRec.cxx:82
const xAOD::Vertex * vertex(size_t index=0) const
Pointer to the xAOD::Vertex/es that match the photon candidate.
Definition egammaRec.cxx:54
const std::vector< ElementLink< xAOD::VertexContainer > > & vertexElementLinks() const
Get a reference to the vertix links.
Definition egammaRec.cxx:71
std::vector< ElementLink< xAOD::CaloClusterContainer > > m_caloClusters
Definition egammaRec.h:146
std::vector< ElementLink< xAOD::VertexContainer > > m_vertices
Definition egammaRec.h:148
ElementLink< xAOD::VertexContainer > vertexElementLink(size_t index=0) const
ElementLink to the xAOD::vertex/es that match the electron candidate.
Definition egammaRec.cxx:63
const xAOD::CaloCluster * caloCluster(size_t index=0) const
Pointer to the xAOD::CaloCluster/s that define the electron candidate.
Definition egammaRec.cxx:8
const xAOD::TrackParticle * trackParticle(size_t index=0) const
Pointer to the xAOD::TrackParticle/s that match the electron candidate.
Definition egammaRec.cxx:31
ElementLink< xAOD::TrackParticleContainer > trackParticleElementLink(size_t index=0) const
ElementLink to the xAOD::TrackParticle/s that match the electron candidate.
Definition egammaRec.cxx:40
ElementLink< xAOD::CaloClusterContainer > caloClusterElementLink(size_t index=0) const
ElementLink to the xAOD::CaloCluster/s that match the electron candidate.
Definition egammaRec.cxx:17
Definition index.py:1
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
TrackParticle_v1 TrackParticle
Reference the current persistent version:
Vertex_v1 Vertex
Define the latest version of the vertex class.