ATLAS Offline Software
PhotonVertexHelpers.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 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 class ShowerDepthTool;
19 
20 namespace xAOD {
21  namespace PVHelpers {
22 
24  std::pair<float, float> getZCommonAndError(const xAOD::EventInfo *eventInfo,
25  const xAOD::EgammaContainer *egammas,
26  float convPtCut = 2e3);
27 
29  float getVertexSumPt(const xAOD::Vertex *vertex, int power = 1, bool useAux = true);
30 
32  TLorentzVector getVertexMomentum(const xAOD::Vertex *vertex, bool useAux = true, const std::string& derivationPrefix = "");
33 
35  const xAOD::Vertex* getHardestVertex(const xAOD::VertexContainer *vertices);
36 
38  TLorentzVector getTrackAtFirstMeasurement(const xAOD::TrackParticle *tp);
39 
42  float convPtCut = 2e3);
43 
45  bool passConvSelection(const xAOD::Vertex& conversionVertex,
46  size_t i,
47  float convPtCut);
48 
49  }
50 }
51 
52 
53 #endif // PhotonVertexSelection_PhotonVertexHelpers_H
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:215
VertexContainerFwd.h
xAOD::PVHelpers::getTrackAtFirstMeasurement
TLorentzVector getTrackAtFirstMeasurement(const xAOD::TrackParticle *tp)
Return track at first measurment, useful as proxy to conversion vertex pT.
Definition: PhotonVertexHelpers.cxx:150
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:44
ParticleTest.tp
tp
Definition: ParticleTest.py:25
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
EgammaContainer.h
xAOD::PVHelpers::getHardestVertex
const xAOD::Vertex * getHardestVertex(const xAOD::VertexContainer *vertices)
Return vertex with highest sum pT^2.
Definition: PhotonVertexHelpers.cxx:29
CheckAppliedSFs.e3
e3
Definition: CheckAppliedSFs.py:264
lumiFormat.i
int i
Definition: lumiFormat.py:85
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:175
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
EventInfo.h
xAOD::EventInfo_v1
Class describing the basic event information.
Definition: EventInfo_v1.h:43
Trk::vertex
@ vertex
Definition: MeasurementType.h:21
xAOD::photon
@ photon
Definition: TrackingPrimitives.h:199
xAOD::Vertex_v1
Class describing a Vertex.
Definition: Vertex_v1.h:42
xAOD::Photon_v1
Definition: Photon_v1.h:37
TrackParticleFwd.h
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:133
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition: TrackParticle_v1.h:43
PhotonContainer.h