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

ITruthToTrack is an interface to create Trk::TrackParameters from a HepMC::GenParticle. More...

#include <ITruthToTrack.h>

Inheritance diagram for Trk::ITruthToTrack:
Collaboration diagram for Trk::ITruthToTrack:

Public Member Functions

virtual ~ITruthToTrack ()
 
virtual const Trk::TrackParametersmakeProdVertexParameters (HepMC::ConstGenParticlePtr part) const =0
 This function produces a Trk::TrackParameters object corresponding to the HepMC::GenParticle at the production vertex. More...
 
virtual const Trk::TrackParametersmakeProdVertexParameters (const xAOD::TruthParticle *part) const =0
 
virtual const Trk::TrackParametersmakePerigeeParameters (HepMC::ConstGenParticlePtr part) const =0
 This function extrapolates track to the perigee, and returns perigee parameters. More...
 
virtual const Trk::TrackParametersmakePerigeeParameters (const xAOD::TruthParticle *part) const =0
 

Static Public Member Functions

static const InterfaceID & interfaceID ()
 

Detailed Description

ITruthToTrack is an interface to create Trk::TrackParameters from a HepMC::GenParticle.

The motivation is to use a Trk::IExtrapolator for extrapolation of "true" track parameters.

Definition at line 37 of file ITruthToTrack.h.

Constructor & Destructor Documentation

◆ ~ITruthToTrack()

virtual Trk::ITruthToTrack::~ITruthToTrack ( )
inlinevirtual

Definition at line 45 of file ITruthToTrack.h.

45 {}

Member Function Documentation

◆ interfaceID()

static const InterfaceID& Trk::ITruthToTrack::interfaceID ( )
inlinestatic

Definition at line 40 of file ITruthToTrack.h.

40  {
41  static const InterfaceID IID_ITruthToTrack("Trk::ITruthToTrack",1,0);
42  return IID_ITruthToTrack;
43  }

◆ makePerigeeParameters() [1/2]

virtual const Trk::TrackParameters* Trk::ITruthToTrack::makePerigeeParameters ( const xAOD::TruthParticle part) const
pure virtual

◆ makePerigeeParameters() [2/2]

virtual const Trk::TrackParameters* Trk::ITruthToTrack::makePerigeeParameters ( HepMC::ConstGenParticlePtr  part) const
pure virtual

This function extrapolates track to the perigee, and returns perigee parameters.

The return value points to an object allocated with the operator new. The caller is responsible for deletion of the object.

Implemented in Trk::TruthTrackRecordToTrack, and Trk::TruthToTrack.

◆ makeProdVertexParameters() [1/2]

virtual const Trk::TrackParameters* Trk::ITruthToTrack::makeProdVertexParameters ( const xAOD::TruthParticle part) const
pure virtual

◆ makeProdVertexParameters() [2/2]

virtual const Trk::TrackParameters* Trk::ITruthToTrack::makeProdVertexParameters ( HepMC::ConstGenParticlePtr  part) const
pure virtual

This function produces a Trk::TrackParameters object corresponding to the HepMC::GenParticle at the production vertex.

The object is allocated using operator new and returned by pointer. The caller is responsible for deletion of the object. (Wrapping it into a smart pointer may be the most convenient way to make sure the memory is freed.)

Implemented in Trk::TruthTrackRecordToTrack, and Trk::TruthToTrack.


The documentation for this class was generated from the following file: