ATLAS Offline Software
Loading...
Searching...
No Matches
PhotonxAODHelpers.h
Go to the documentation of this file.
1// Dear emacs, this is -*- c++ -*-
2
3/*
4 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
5*/
6
7#ifndef XAOD_PHOTONXAODHELPERS_H
8#define XAOD_PHOTONXAODHELPERS_H
14
15#include <cstddef>
16#include <set>
17#include <vector>
18
19namespace xAOD {
20
21 namespace EgammaHelpers{
22
24 bool isConvertedPhoton(const xAOD::Photon *ph, bool excludeTRT = false);
25
28
31
33 std::size_t numberOfSiTracks(const xAOD::Photon *eg);
34
36 std::size_t numberOfSiTracks(const xAOD::Vertex *vx);
37
40
42 float conversionRadius(const xAOD::Vertex* vx);
43
45 float conversionRadius(const xAOD::Photon* ph);
46
49
52
53
57 //isolation interface,
59 std::set<const xAOD::TrackParticle*> getTrackParticles(const xAOD::Photon* ph,
60 bool useBremAssoc = true);
61
66 std::vector<const xAOD::TrackParticle*> getTrackParticlesVec(const xAOD::Photon* ph,
67 bool useBremAssoc = true);
68
69
70 } //namaspace EgammaHelpers
71
72} // namespace xAOD
73
74#endif // XAOD_PHOTONXAODHELPERS_H
const bool debug
Eigen::Matrix< double, 3, 1 > Vector3D
std::size_t numberOfSiTracks(const xAOD::Photon *eg)
return the number of Si tracks in the conversion
std::vector< const xAOD::TrackParticle * > getTrackParticlesVec(const xAOD::Egamma *eg, bool useBremAssoc=true, bool allParticles=true)
Return a list of all or only the best TrackParticle associated to the object.
std::set< const xAOD::TrackParticle * > getTrackParticles(const xAOD::Egamma *eg, bool useBremAssoc=true, bool allParticles=true)
Return a list of all or only the best TrackParticle associated to the object.
bool isConvertedPhoton(const xAOD::Egamma *eg, bool excludeTRT=false)
is the object a converted photon
Amg::Vector3D momentumAtVertex(const xAOD::Photon *, bool debug=false)
return the momentum at the vertex (which can be 0)
xAOD::EgammaParameters::ConversionType conversionType(const xAOD::Photon *ph)
return the photon conversion type (see EgammaEnums)
float conversionRadius(const xAOD::Vertex *vx)
return the conversion radius or 9999.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Vertex_v1 Vertex
Define the latest version of the vertex class.
Photon_v1 Photon
Definition of the current "egamma version".