ATLAS Offline Software
Loading...
Searching...
No Matches
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
14
15// ROOT includes
16#include "TLorentzVector.h"
17
18
19namespace 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
35
37 TLorentzVector getTrackAtFirstMeasurement(const xAOD::TrackParticle *tp);
38
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
TLorentzVector getTrackAtFirstMeasurement(const xAOD::TrackParticle *tp)
Return track at first measurment, useful as proxy to conversion vertex pT.
const xAOD::Vertex * getHardestVertex(const xAOD::VertexContainer *vertices)
Return vertex with highest sum pT^2.
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...
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)
bool passConvSelection(const xAOD::Photon *photon, float convPtCut=2e3)
Check if photon is converted, and tracks have Si hits and pass selection.
std::pair< float, float > getZCommonAndError(const xAOD::EventInfo *eventInfo, const xAOD::EgammaContainer *egammas, float convPtCut=2e3)
Return zCommon and zCommonError.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
EventInfo_v1 EventInfo
Definition of the latest event info version.
TrackParticle_v1 TrackParticle
Reference the current persistent version:
VertexContainer_v1 VertexContainer
Definition of the current "Vertex container version".
Vertex_v1 Vertex
Define the latest version of the vertex class.
Photon_v1 Photon
Definition of the current "egamma version".
EgammaContainer_v1 EgammaContainer
Definition of the current "egamma container version".