ATLAS Offline Software
Loading...
Searching...
No Matches
TruthToTrack.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5// Dear emacs, this is -*-c++-*-
6
14
15#ifndef TRUTHTOTRACK_H
16#define TRUTHTOTRACK_H
17
18#include "GaudiKernel/ToolHandle.h"
23
24namespace Trk {
25
26
27 class TruthToTrack : virtual public ITruthToTrack,
28 public ::AthAlgTool
29 {
30 public:
31 // FIXME: interfaceID() should not be here, but clients that use TruthToTrack directly
32 // (not via ITruthToTrack) will break without this:
33 // static const InterfaceID& interfaceID() { return ITruthToTrack::interfaceID(); }
34
35 TruthToTrack(const std::string& type, const std::string& name, const IInterface* parent);
36
37 virtual StatusCode initialize();
38
43
49 virtual const Trk::TrackParameters* makePerigeeParameters(const xAOD::TruthParticle* part) const;
50
51 private:
52 ToolHandle<Trk::IExtrapolator> m_extrapolator;
53 };
54}
55
56#endif/*TRUTHTOTRACK_H*/
Extrapolation for HepMC particles.
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
ITruthToTrack is an interface to create Trk::TrackParameters from a HepMC::GenParticle.
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...
virtual const Trk::TrackParameters * makePerigeeParameters(HepMC::ConstGenParticlePtr part) const =0
This function extrapolates track to the perigee, and returns perigee parameters.
virtual StatusCode initialize()
virtual const Trk::TrackParameters * makePerigeeParameters(HepMC::ConstGenParticlePtr part) const
This function extrapolates track to the perigee, and returns perigee parameters.
virtual const Trk::TrackParameters * makeProdVertexParameters(HepMC::ConstGenParticlePtr part) const
This function produces a Trk::TrackParameters object corresponding to the HepMC::GenParticle at the p...
TruthToTrack(const std::string &type, const std::string &name, const IInterface *parent)
ToolHandle< Trk::IExtrapolator > m_extrapolator
const GenParticle * ConstGenParticlePtr
Definition GenParticle.h:38
Ensure that the ATLAS eigen extensions are properly loaded.
ParametersBase< TrackParametersDim, Charged > TrackParameters
TruthParticle_v1 TruthParticle
Typedef to implementation.