ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
ElectronPhotonID
PhotonVertexSelection
PhotonVertexSelection
PhotonVertexHelpers.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef PhotonVertexSelection_PhotonVertexHelpers_H
6
#define PhotonVertexSelection_PhotonVertexHelpers_H
7
8
// EDM includes
9
#include "
xAODTracking/VertexContainerFwd.h
"
10
#include "
xAODTracking/TrackParticleFwd.h
"
11
#include "
xAODEgamma/PhotonContainer.h
"
12
#include "
xAODEgamma/EgammaContainer.h
"
13
#include "
xAODEventInfo/EventInfo.h
"
14
15
// ROOT includes
16
#include "TLorentzVector.h"
17
18
19
namespace
xAOD
{
20
namespace
PVHelpers
{
21
23
std::pair<float, float>
getZCommonAndError
(
const
xAOD::EventInfo
*eventInfo,
24
const
xAOD::EgammaContainer
*egammas,
25
float
convPtCut = 2e3);
26
28
float
getVertexSumPt
(
const
xAOD::Vertex
*vertex,
int
power = 1,
bool
useAux =
true
);
29
31
TLorentzVector
getVertexMomentum
(
const
xAOD::Vertex
*vertex,
bool
useAux =
true
,
const
std::string& derivationPrefix =
""
);
32
34
const
xAOD::Vertex
*
getHardestVertex
(
const
xAOD::VertexContainer
*vertices);
35
37
TLorentzVector
getTrackAtFirstMeasurement
(
const
xAOD::TrackParticle
*tp);
38
40
bool
passConvSelection
(
const
xAOD::Photon
*
photon
,
41
float
convPtCut = 2e3);
42
44
bool
passConvSelection
(
const
xAOD::Vertex
& conversionVertex,
45
size_t
i,
46
float
convPtCut);
47
48
}
49
}
50
51
52
#endif
// PhotonVertexSelection_PhotonVertexHelpers_H
EgammaContainer.h
PhotonContainer.h
TrackParticleFwd.h
VertexContainerFwd.h
xAOD::PVHelpers
Definition
PhotonVertexHelpers.h:20
xAOD::PVHelpers::getTrackAtFirstMeasurement
TLorentzVector getTrackAtFirstMeasurement(const xAOD::TrackParticle *tp)
Return track at first measurment, useful as proxy to conversion vertex pT.
Definition
PhotonVertexHelpers.cxx:149
xAOD::PVHelpers::getHardestVertex
const xAOD::Vertex * getHardestVertex(const xAOD::VertexContainer *vertices)
Return vertex with highest sum pT^2.
Definition
PhotonVertexHelpers.cxx:28
xAOD::PVHelpers::getVertexSumPt
float getVertexSumPt(const xAOD::Vertex *vertex, int power=1, bool useAux=true)
Loop over track particles associated with vertex and return scalar sum of pT^power in GeV (from auxda...
Definition
PhotonVertexHelpers.cxx:214
xAOD::PVHelpers::getVertexMomentum
TLorentzVector getVertexMomentum(const xAOD::Vertex *vertex, bool useAux=true, const std::string &derivationPrefix="")
Return vector sum of tracks associated with vertex (from auxdata if available and useAux = true).
Definition
PhotonVertexHelpers.cxx:174
xAOD::PVHelpers::passConvSelection
bool passConvSelection(const xAOD::Photon *photon, float convPtCut=2e3)
Check if photon is converted, and tracks have Si hits and pass selection.
Definition
PhotonVertexHelpers.cxx:132
xAOD::PVHelpers::getZCommonAndError
std::pair< float, float > getZCommonAndError(const xAOD::EventInfo *eventInfo, const xAOD::EgammaContainer *egammas, float convPtCut=2e3)
Return zCommon and zCommonError.
Definition
PhotonVertexHelpers.cxx:43
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition
ICaloAffectedTool.h:24
xAOD::EventInfo
EventInfo_v1 EventInfo
Definition of the latest event info version.
Definition
IEventInfoCnvTool.h:16
xAOD::TrackParticle
TrackParticle_v1 TrackParticle
Reference the current persistent version:
Definition
Event/xAOD/xAODTracking/xAODTracking/TrackParticle.h:13
xAOD::VertexContainer
VertexContainer_v1 VertexContainer
Definition of the current "Vertex container version".
Definition
VertexContainer.h:14
xAOD::Vertex
Vertex_v1 Vertex
Define the latest version of the vertex class.
Definition
Event/xAOD/xAODTracking/xAODTracking/Vertex.h:16
xAOD::Photon
Photon_v1 Photon
Definition of the current "egamma version".
Definition
Event/xAOD/xAODEgamma/xAODEgamma/Photon.h:17
xAOD::EgammaContainer
EgammaContainer_v1 EgammaContainer
Definition of the current "egamma container version".
Definition
EgammaContainer.h:17
xAOD::photon
@ photon
Definition
TrackingPrimitives.h:200
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0