ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
TrkTools
TrkTruthToTrack
TrkTruthToTrack
TruthToTrack.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 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"
19
#include "
TrkToolInterfaces/ITruthToTrack.h
"
20
#include "
AthenaBaseComps/AthAlgTool.h
"
21
#include "
TrkExInterfaces/IExtrapolator.h
"
22
#include "
TrkParameters/TrackParameters.h
"
23
24
namespace
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
40
using
ITruthToTrack::makeProdVertexParameters
;
41
virtual
const
Trk::TrackParameters
*
makeProdVertexParameters
(
HepMC::ConstGenParticlePtr
part)
const
;
42
virtual
const
Trk::TrackParameters
*
makeProdVertexParameters
(
const
xAOD::TruthParticle
* part)
const
;
43
47
using
ITruthToTrack::makePerigeeParameters
;
48
virtual
const
Trk::TrackParameters
*
makePerigeeParameters
(
HepMC::ConstGenParticlePtr
part)
const
;
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*/
AthAlgTool.h
IExtrapolator.h
ITruthToTrack.h
Extrapolation for HepMC particles.
TrackParameters.h
AthAlgTool::AthAlgTool
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
AthAlgTool.cxx:16
Trk::ITruthToTrack
ITruthToTrack is an interface to create Trk::TrackParameters from a HepMC::GenParticle.
Definition
ITruthToTrack.h:37
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...
Trk::ITruthToTrack::makePerigeeParameters
virtual const Trk::TrackParameters * makePerigeeParameters(HepMC::ConstGenParticlePtr part) const =0
This function extrapolates track to the perigee, and returns perigee parameters.
Trk::TruthToTrack::initialize
virtual StatusCode initialize()
Definition
TruthToTrack.cxx:33
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:100
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:41
Trk::TruthToTrack::TruthToTrack
TruthToTrack(const std::string &type, const std::string &name, const IInterface *parent)
Definition
TruthToTrack.cxx:24
Trk::TruthToTrack::m_extrapolator
ToolHandle< Trk::IExtrapolator > m_extrapolator
Definition
TruthToTrack.h:52
HepMC::ConstGenParticlePtr
HepMC3::ConstGenParticlePtr ConstGenParticlePtr
Definition
GenParticle.h:20
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition
FakeTrackBuilder.h:9
Trk::TrackParameters
ParametersBase< TrackParametersDim, Charged > TrackParameters
Definition
Tracking/TrkEvent/TrkParameters/TrkParameters/TrackParameters.h:27
xAOD::TruthParticle
TruthParticle_v1 TruthParticle
Typedef to implementation.
Definition
Event/xAOD/xAODTruth/xAODTruth/TruthParticle.h:15
type
Generated on
for ATLAS Offline Software by
1.17.0