ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
egamma
egammaRecEvent
Root
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
5
#include "
egammaRecEvent/egammaRec.h
"
6
7
const
xAOD::CaloCluster
*
8
egammaRec::caloCluster
(
size_t
index
)
const
9
{
10
if
(
index
>=
m_caloClusters
.size() || !
m_caloClusters
[
index
].isValid()){
11
return
nullptr
;
12
}
13
return
(*(
m_caloClusters
[
index
]));
14
}
15
16
ElementLink<xAOD::CaloClusterContainer>
17
egammaRec::caloClusterElementLink
(
size_t
index
)
const
18
{
19
if
(
index
>=
m_caloClusters
.size() || !
m_caloClusters
[
index
].isValid()){
20
return
{};
21
}
22
return
m_caloClusters
[
index
];
23
}
24
25
const
std::vector<ElementLink<xAOD::CaloClusterContainer>> &
26
egammaRec::caloClusterElementLinks
()
const
{
27
return
m_caloClusters
;
28
}
29
30
const
xAOD::TrackParticle
*
31
egammaRec::trackParticle
(
size_t
index
)
const
32
{
33
if
(
index
>=
m_trackParticles
.size() || !
m_trackParticles
[
index
].isValid()){
34
return
nullptr
;
35
}
36
return
(*(
m_trackParticles
[
index
]));
37
}
38
39
ElementLink<xAOD::TrackParticleContainer>
40
egammaRec::trackParticleElementLink
(
size_t
index
)
const
41
{
42
if
(
index
>=
m_trackParticles
.size() || !
m_trackParticles
[
index
].isValid()){
43
return
{};
44
}
45
return
m_trackParticles
[
index
];
46
}
47
48
const
std::vector<ElementLink<xAOD::TrackParticleContainer>> &
49
egammaRec::trackParticleElementLinks
()
const
{
50
return
m_trackParticles
;
51
}
52
53
const
xAOD::Vertex
*
54
egammaRec::vertex
(
size_t
index
)
const
55
{
56
if
(
index
>=
m_vertices
.size() || !
m_vertices
[
index
].isValid()){
57
return
nullptr
;
58
}
59
return
(*(
m_vertices
[
index
]));
60
}
61
62
ElementLink<xAOD::VertexContainer>
63
egammaRec::vertexElementLink
(
size_t
index
)
const
{
64
if
(
index
>=
m_vertices
.size() || !
m_vertices
[
index
].isValid()){
65
return
{};
66
}
67
return
m_vertices
.at(
index
);
68
}
69
70
const
std::vector<ElementLink<xAOD::VertexContainer>> &
71
egammaRec::vertexElementLinks
()
const
{
72
return
m_vertices
;
73
}
74
75
void
76
egammaRec::pushBackVertex
(
const
ElementLink<xAOD::VertexContainer>
&
vertexElementLink
)
77
{
78
m_vertices
.push_back(
vertexElementLink
);
79
}
80
81
void
82
egammaRec::pushFrontVertex
(
const
ElementLink<xAOD::VertexContainer>
&
vertexElementLink
)
83
{
84
m_vertices
.insert(
m_vertices
.begin(),
vertexElementLink
);
85
}
86
ElementLink
ElementLink implementation for ROOT usage.
Definition
A/AthLinks/ElementLink.h:40
egammaRec::caloClusterElementLinks
const std::vector< ElementLink< xAOD::CaloClusterContainer > > & caloClusterElementLinks() const
Get a reference to the calo cluster links.
Definition
egammaRec.cxx:26
egammaRec::pushBackVertex
void pushBackVertex(const ElementLink< xAOD::VertexContainer > &vertexElementLink)
Push back another vertex.
Definition
egammaRec.cxx:76
egammaRec::trackParticleElementLinks
const std::vector< ElementLink< xAOD::TrackParticleContainer > > & trackParticleElementLinks() const
Get a reference to the track particle links.
Definition
egammaRec.cxx:49
egammaRec::m_trackParticles
std::vector< ElementLink< xAOD::TrackParticleContainer > > m_trackParticles
Definition
egammaRec.h:147
egammaRec::pushFrontVertex
void pushFrontVertex(const ElementLink< xAOD::VertexContainer > &vertexElementLink)
Push front another vertex.
Definition
egammaRec.cxx:82
egammaRec::vertex
const xAOD::Vertex * vertex(size_t index=0) const
Pointer to the xAOD::Vertex/es that match the photon candidate.
Definition
egammaRec.cxx:54
egammaRec::vertexElementLinks
const std::vector< ElementLink< xAOD::VertexContainer > > & vertexElementLinks() const
Get a reference to the vertix links.
Definition
egammaRec.cxx:71
egammaRec::m_caloClusters
std::vector< ElementLink< xAOD::CaloClusterContainer > > m_caloClusters
Definition
egammaRec.h:146
egammaRec::m_vertices
std::vector< ElementLink< xAOD::VertexContainer > > m_vertices
Definition
egammaRec.h:148
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
egammaRec::caloCluster
const xAOD::CaloCluster * caloCluster(size_t index=0) const
Pointer to the xAOD::CaloCluster/s that define the electron candidate.
Definition
egammaRec.cxx:8
egammaRec::trackParticle
const xAOD::TrackParticle * trackParticle(size_t index=0) const
Pointer to the xAOD::TrackParticle/s that match the electron candidate.
Definition
egammaRec.cxx:31
egammaRec::trackParticleElementLink
ElementLink< xAOD::TrackParticleContainer > trackParticleElementLink(size_t index=0) const
ElementLink to the xAOD::TrackParticle/s that match the electron candidate.
Definition
egammaRec.cxx:40
egammaRec::caloClusterElementLink
ElementLink< xAOD::CaloClusterContainer > caloClusterElementLink(size_t index=0) const
ElementLink to the xAOD::CaloCluster/s that match the electron candidate.
Definition
egammaRec.cxx:17
egammaRec.h
index
Definition
index.py:1
xAOD::CaloCluster
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
Definition
Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloCluster.h:19
xAOD::TrackParticle
TrackParticle_v1 TrackParticle
Reference the current persistent version:
Definition
Event/xAOD/xAODTracking/xAODTracking/TrackParticle.h:13
xAOD::Vertex
Vertex_v1 Vertex
Define the latest version of the vertex class.
Definition
Event/xAOD/xAODTracking/xAODTracking/Vertex.h:16
Generated on
for ATLAS Offline Software by
1.17.0