ATLAS Offline Software
Public Member Functions | List of all members
Trk::ITrackParticleCreatorTool Class Referenceabstract

Interface for constructing TrackParticles from complete tracks. More...

#include <ITrackParticleCreatorTool.h>

Inheritance diagram for Trk::ITrackParticleCreatorTool:
Collaboration diagram for Trk::ITrackParticleCreatorTool:

Public Member Functions

 DeclareInterfaceID (ITrackParticleCreatorTool, 1, 0)
 InterfaceID. More...
 
virtual xAOD::TrackParticlecreateParticle (const EventContext &ctx, const Rec::TrackParticle &trackParticle, xAOD::TrackParticleContainer *container=nullptr) const =0
 Method to construct a xAOD::TrackParticle from a Rec::TrackParticle. More...
 
xAOD::TrackParticlecreateParticle (const Rec::TrackParticle &trackParticle, xAOD::TrackParticleContainer *container=nullptr) const
 
virtual xAOD::TrackParticlecreateParticle (const EventContext &ctx, const Trk::Track &track, xAOD::TrackParticleContainer *container=nullptr, const xAOD::Vertex *vxCandidate=nullptr, xAOD::ParticleHypothesis prtOrigin=xAOD::noHypothesis) const =0
 Method to construct a TrackParticle from a passed Track. More...
 
xAOD::TrackParticlecreateParticle (const Trk::Track &track, xAOD::TrackParticleContainer *container=nullptr, const xAOD::Vertex *vxCandidate=nullptr, xAOD::ParticleHypothesis prtOrigin=xAOD::noHypothesis) const
 
virtual xAOD::TrackParticlecreateParticle (const EventContext &ctx, const ElementLink< TrackCollection > &trackLink, xAOD::TrackParticleContainer *container=nullptr, const xAOD::Vertex *vxCandidate=nullptr, xAOD::ParticleHypothesis prtOrigin=xAOD::noHypothesis) const =0
 Method to construct a TrackParticle from a passed Track. More...
 
xAOD::TrackParticlecreateParticle (const ElementLink< TrackCollection > &trackLink, xAOD::TrackParticleContainer *container=nullptr, const xAOD::Vertex *vxCandidate=nullptr, xAOD::ParticleHypothesis prtOrigin=xAOD::noHypothesis) const
 
virtual xAOD::TrackParticlecreateParticle (const EventContext &ctx, const Perigee *perigee, const FitQuality *fq, const TrackInfo *trackInfo, const TrackSummary *summary, const std::vector< const Trk::TrackParameters * > &parameters, const std::vector< xAOD::ParameterPosition > &positions, xAOD::ParticleHypothesis prtOrigin=xAOD::noHypothesis, xAOD::TrackParticleContainer *container=nullptr) const =0
 create a xAOD::TrackParticle out of constituents (please don't use this More...
 
xAOD::TrackParticlecreateParticle (const Perigee *perigee, const FitQuality *fq, const TrackInfo *trackInfo, const TrackSummary *summary, const std::vector< const Trk::TrackParameters * > &parameters, const std::vector< xAOD::ParameterPosition > &positions, xAOD::ParticleHypothesis prtOrigin=xAOD::noHypothesis, xAOD::TrackParticleContainer *container=nullptr) const
 
virtual const InDet::BeamSpotDataCacheBeamSpotData (const EventContext &ctx) const =0
 Convenience method to retrieve Beamspot Data object. More...
 

Detailed Description

Interface for constructing TrackParticles from complete tracks.

Author
Edward Moyse, Andreas Wildauer http://consult.cern.ch/xwho

Definition at line 38 of file ITrackParticleCreatorTool.h.

Member Function Documentation

◆ CacheBeamSpotData()

virtual const InDet::BeamSpotData* Trk::ITrackParticleCreatorTool::CacheBeamSpotData ( const EventContext &  ctx) const
pure virtual

Convenience method to retrieve Beamspot Data object.

◆ createParticle() [1/8]

xAOD::TrackParticle* Trk::ITrackParticleCreatorTool::createParticle ( const ElementLink< TrackCollection > &  trackLink,
xAOD::TrackParticleContainer container = nullptr,
const xAOD::Vertex vxCandidate = nullptr,
xAOD::ParticleHypothesis  prtOrigin = xAOD::noHypothesis 
) const
inline

Definition at line 108 of file ITrackParticleCreatorTool.h.

113  {
114  return createParticle(Gaudi::Hive::currentContext(),
115  trackLink,
116  container,
117  vxCandidate,
118  prtOrigin);
119  }

◆ createParticle() [2/8]

virtual xAOD::TrackParticle* Trk::ITrackParticleCreatorTool::createParticle ( const EventContext &  ctx,
const ElementLink< TrackCollection > &  trackLink,
xAOD::TrackParticleContainer container = nullptr,
const xAOD::Vertex vxCandidate = nullptr,
xAOD::ParticleHypothesis  prtOrigin = xAOD::noHypothesis 
) const
pure virtual

Method to construct a TrackParticle from a passed Track.

Parameters
trackelement link to a valid track (i.e. do not pass a zero!).
TrackParticleContainerneeded to have an AuxStore, if provided particle will be added to store which takes ownership
xAOD::VertexPointer to a vxCandidate.
prtOrigin

◆ createParticle() [3/8]

virtual xAOD::TrackParticle* Trk::ITrackParticleCreatorTool::createParticle ( const EventContext &  ctx,
const Perigee perigee,
const FitQuality fq,
const TrackInfo trackInfo,
const TrackSummary summary,
const std::vector< const Trk::TrackParameters * > &  parameters,
const std::vector< xAOD::ParameterPosition > &  positions,
xAOD::ParticleHypothesis  prtOrigin = xAOD::noHypothesis,
xAOD::TrackParticleContainer container = nullptr 
) const
pure virtual

create a xAOD::TrackParticle out of constituents (please don't use this

  • it will eventually be removed)

◆ createParticle() [4/8]

virtual xAOD::TrackParticle* Trk::ITrackParticleCreatorTool::createParticle ( const EventContext &  ctx,
const Rec::TrackParticle trackParticle,
xAOD::TrackParticleContainer container = nullptr 
) const
pure virtual

Method to construct a xAOD::TrackParticle from a Rec::TrackParticle.

Parameters
trackparticle
TrackParticleContainerneeded to have an AuxStore, if provided particle will be added to store which takes ownership

◆ createParticle() [5/8]

virtual xAOD::TrackParticle* Trk::ITrackParticleCreatorTool::createParticle ( const EventContext &  ctx,
const Trk::Track track,
xAOD::TrackParticleContainer container = nullptr,
const xAOD::Vertex vxCandidate = nullptr,
xAOD::ParticleHypothesis  prtOrigin = xAOD::noHypothesis 
) const
pure virtual

Method to construct a TrackParticle from a passed Track.

Parameters
trackelement link to the track is not set, use the method with the element link if you want the link as well
TrackParticleContainerneeded to have an AuxStore, if provided particle will be added to store which takes ownership
xAOD::VertexPointer to a vxCandidate . Ownership is not taken
prtOriginhits.

◆ createParticle() [6/8]

xAOD::TrackParticle* Trk::ITrackParticleCreatorTool::createParticle ( const Perigee perigee,
const FitQuality fq,
const TrackInfo trackInfo,
const TrackSummary summary,
const std::vector< const Trk::TrackParameters * > &  parameters,
const std::vector< xAOD::ParameterPosition > &  positions,
xAOD::ParticleHypothesis  prtOrigin = xAOD::noHypothesis,
xAOD::TrackParticleContainer container = nullptr 
) const
inline

Definition at line 134 of file ITrackParticleCreatorTool.h.

143  {
144  return createParticle(Gaudi::Hive::currentContext(),
145  perigee,
146  fq,
147  trackInfo,
148  summary,
149  parameters,
150  positions,
151  prtOrigin,
152  container);
153  }

◆ createParticle() [7/8]

xAOD::TrackParticle* Trk::ITrackParticleCreatorTool::createParticle ( const Rec::TrackParticle trackParticle,
xAOD::TrackParticleContainer container = nullptr 
) const
inline

Definition at line 57 of file ITrackParticleCreatorTool.h.

60  {
61  return createParticle(
62  Gaudi::Hive::currentContext(), trackParticle, container);
63  }

◆ createParticle() [8/8]

xAOD::TrackParticle* Trk::ITrackParticleCreatorTool::createParticle ( const Trk::Track track,
xAOD::TrackParticleContainer container = nullptr,
const xAOD::Vertex vxCandidate = nullptr,
xAOD::ParticleHypothesis  prtOrigin = xAOD::noHypothesis 
) const
inline

Definition at line 81 of file ITrackParticleCreatorTool.h.

86  {
87  return createParticle(Gaudi::Hive::currentContext(),
88  track,
89  container,
90  vxCandidate,
91  prtOrigin);
92  }

◆ DeclareInterfaceID()

Trk::ITrackParticleCreatorTool::DeclareInterfaceID ( ITrackParticleCreatorTool  ,
,
 
)

InterfaceID.


The documentation for this class was generated from the following file:
Trk::ITrackParticleCreatorTool::createParticle
virtual xAOD::TrackParticle * createParticle(const EventContext &ctx, const Rec::TrackParticle &trackParticle, xAOD::TrackParticleContainer *container=nullptr) const =0
Method to construct a xAOD::TrackParticle from a Rec::TrackParticle.
trackInfo
Definition: TrigInDetUtils.h:13
physics_parameters.parameters
parameters
Definition: physics_parameters.py:144
xAOD::track
@ track
Definition: TrackingPrimitives.h:512
SCT_Monitoring::summary
@ summary
Definition: SCT_MonitoringNumbers.h:65