ATLAS Offline Software
Loading...
Searching...
No Matches
TruthTrackRecordToTrack.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#ifndef TRUTHRECORDTOTRACK_H
6#define TRUTHRECORDTOTRACK_H
7
10#include "GaudiKernel/ToolHandle.h"
11
13#include <string>
16
18
19namespace Trk {
20
21 class IExtrapolator;
22
36
37 class TruthTrackRecordToTrack final: virtual public ITruthToTrack, public AthAlgTool {
38 public:
39
40 TruthTrackRecordToTrack(const std::string& type, const std::string& name, const IInterface* parent);
41 virtual StatusCode initialize();
42
43 // virtual ~TruthTrackRecordToTrack ()
44
53
62 virtual const Trk::TrackParameters* makePerigeeParameters(const xAOD::TruthParticle* part) const;
63
64 private:
65 ToolHandle<Trk::IExtrapolator> m_extrapolator;
67
72 };
73}
74
75#endif/*TRUTHRECORDTOTRACK_H*/
Extrapolation for HepMC particles.
Property holding a SG store/key/clid from which a ReadHandle is made.
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Property holding a SG store/key/clid from which a ReadHandle is made.
Interface class for the extrapolation AlgTool, it inherits from IAlgTool Detailed information about p...
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.
ToolHandle< Trk::IExtrapolator > m_extrapolator
SG::ReadHandleKey< TrackRecordCollection > m_reccollkey
TruthTrackRecordToTrack(const std::string &type, const std::string &name, const IInterface *parent)
virtual const Trk::TrackParameters * makeProdVertexParameters(HepMC::ConstGenParticlePtr part) const
This function produces a Trk::TrackParameters object corresponding to the HepMC::GenParticle at the p...
TruthTrackRecordToTrack(const TruthTrackRecordToTrack &)=delete
Forbid copying of Truth...ToTrack to not mess with the internal pointers.
virtual const Trk::TrackParameters * makePerigeeParameters(HepMC::ConstGenParticlePtr part) const
This function extrapolates track to the perigee, and returns perigee parameters.
TruthTrackRecordToTrack & operator=(const TruthTrackRecordToTrack &)=delete
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.