ATLAS Offline Software
TruthToTrack.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // Dear emacs, this is -*-c++-*-
6 
15 #ifndef TRUTHTOTRACK_H
16 #define TRUTHTOTRACK_H
17 
18 #include "GaudiKernel/ToolHandle.h"
23 
24 namespace HepPDT { class ParticleDataTable; }
25 
26 namespace Trk {
27 
28 
29  class TruthToTrack : virtual public ITruthToTrack,
30  public ::AthAlgTool
31  {
32  public:
33  // FIXME: interfaceID() should not be here, but clients that use TruthToTrack directly
34  // (not via ITruthToTrack) will break without this:
35  // static const InterfaceID& interfaceID() { return ITruthToTrack::interfaceID(); }
36 
37  TruthToTrack(const std::string& type, const std::string& name, const IInterface* parent);
38 
39  virtual StatusCode initialize();
40 
45 
52 
53  private:
54  const HepPDT::ParticleDataTable *m_particleDataTable;
55  ToolHandle<Trk::IExtrapolator> m_extrapolator;
56  };
57 }
58 
59 #endif/*TRUTHTOTRACK_H*/
LArG4FSStartPointFilter.part
part
Definition: LArG4FSStartPointFilter.py:21
Trk::TruthToTrack::TruthToTrack
TruthToTrack(const std::string &type, const std::string &name, const IInterface *parent)
Definition: TruthToTrack.cxx:27
TrackParameters.h
IExtrapolator.h
Trk::TruthToTrack
Definition: TruthToTrack.h:31
Trk::TruthToTrack::makeProdVertexParameters
virtual const Trk::TrackParameters * makeProdVertexParameters(HepMC::ConstGenParticlePtr part) const
This function produces a Trk::TrackParameters object corresponding to the HepMC::GenParticle at the p...
Definition: TruthToTrack.cxx:58
Trk::TruthToTrack::makePerigeeParameters
virtual const Trk::TrackParameters * makePerigeeParameters(HepMC::ConstGenParticlePtr part) const
This function extrapolates track to the perigee, and returns perigee parameters.
Definition: TruthToTrack.cxx:125
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
xAOD::TruthParticle_v1
Class describing a truth particle in the MC record.
Definition: TruthParticle_v1.h:41
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
Trk::ParametersBase
Definition: ParametersBase.h:55
HepPDT
Definition: BeamHaloGenerator.h:13
Trk::TruthToTrack::m_extrapolator
ToolHandle< Trk::IExtrapolator > m_extrapolator
Definition: TruthToTrack.h:55
HepMC::ConstGenParticlePtr
const GenParticle * ConstGenParticlePtr
Definition: GenParticle.h:38
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Trk::ITruthToTrack
ITruthToTrack is an interface to create Trk::TrackParameters from a HepMC::GenParticle.
Definition: ITruthToTrack.h:37
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
Trk::ITruthToTrack::makeProdVertexParameters
virtual const Trk::TrackParameters * makeProdVertexParameters(HepMC::ConstGenParticlePtr part) const =0
This function produces a Trk::TrackParameters object corresponding to the HepMC::GenParticle at the p...
ITruthToTrack.h
Trk::ITruthToTrack::makePerigeeParameters
virtual const Trk::TrackParameters * makePerigeeParameters(HepMC::ConstGenParticlePtr part) const =0
This function extrapolates track to the perigee, and returns perigee parameters.
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
Trk::TruthToTrack::initialize
virtual StatusCode initialize()
Definition: TruthToTrack.cxx:37
AthAlgTool
Definition: AthAlgTool.h:26
Trk::TruthToTrack::m_particleDataTable
const HepPDT::ParticleDataTable * m_particleDataTable
Definition: TruthToTrack.h:54