 |
ATLAS Offline Software
|
Go to the documentation of this file.
17 if (!ph)
return false;
40 if (!ph || !ph->
vertex()) {
return 0;}
59 if (!vx)
return 9999.;
60 return sqrt( vx->
x()*vx->
x() + vx->
y()*vx->
y() );
64 if (!ph || !ph->
vertex())
return 9999.;
91 std::cout <<
"Vertex not decorated with momentum" << std::endl;
100 std::set<const xAOD::TrackParticle*> tps;
102 for (
unsigned int ivx = 0; ivx < ph->
nVertices(); ++ivx)
115 std::vector<const xAOD::TrackParticle*> tps;
117 for (
unsigned int ivx = 0; ivx < ph->
nVertices(); ++ivx)
@ unconverted
unconverted photon
size_t nVertices() const
Return the number xAOD::Vertex/vertices that match the photon candidate.
float x() const
Returns the x position.
size_t nTrackParticles() const
Get the number of tracks associated with this vertex.
Helper class to provide type-safe access to aux data.
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 bool excludeTRT, const float eta, const std::size_t nVertices, const ConversionType conversionType)
is the object a converted photon
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.
ConversionType conversionType(const bool hasTrk1, const bool hasTrk2, const std::uint8_t nSiHits1, const std::uint8_t nSiHits2)
return the photon conversion type (see EgammaEnums)
std::size_t numberOfSiTracks(const xAOD::Photon *eg)
return the number of Si tracks in the conversion
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)
@ doubleSi
two tracks, both with Si hits
const TrackParticle * trackParticle(size_t i) const
Get the pointer to a given track that was used in vertex reco.
@ doubleSiTRT
two tracks, only one with Si hits
@ singleSi
one track only, with Si hits
float conversionRadius(const xAOD::Vertex *vx)
return the conversion radius or 9999.
const xAOD::TrackParticle * getOriginalTrackParticleFromGSF(const xAOD::TrackParticle *trkPar)
Helper function for getting the "Original" Track Particle (i.e before GSF) via the GSF Track Particle...
Eigen::Matrix< double, 3, 1 > Vector3D
std::size_t numberOfSiHits(const xAOD::TrackParticle *tp)
return the number of Si hits in the track particle
Class describing a Vertex.
float y() const
Returns the y position.
xAOD::EgammaParameters::ConversionType conversionType(const xAOD::Photon *ph)
return the photon conversion type (see EgammaEnums)
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
@ NumberOfVertexConversionTypes
maximum number of types
Class describing a TrackParticle.
const xAOD::Vertex * vertex(size_t index=0) const
Pointer to the xAOD::Vertex/es that match the photon candidate.