|
ATLAS Offline Software
|
Go to the documentation of this file.
20 bool isNewConv = isConv && (std::abs(ph->
eta()) > 0.8 || !isTRTConv);
44 if (nSiHits1 && nSiHits2){
47 if (nSiHits1 || nSiHits2){
58 if (!ph || !ph->
vertex()) {
return 0;}
77 if (!vx)
return 9999.;
78 return sqrt( vx->
x()*vx->
x() + vx->
y()*vx->
y() );
82 if (!ph || !ph->
vertex())
return 9999.;
109 std::cout <<
"Vertex not decorated with momentum" << std::endl;
118 std::set<const xAOD::TrackParticle*> tps;
120 for (
unsigned int ivx = 0; ivx < ph->
nVertices(); ++ivx)
133 std::vector<const xAOD::TrackParticle*> tps;
135 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.
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::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
@ singleTRT
one track only, no Si hits (TRT only)
@ 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.
@ doubleTRT
two tracks, none with Si hits (TRT only)
@ 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.