ATLAS Offline Software
Tracking
TrkTools
TrkTruthToTrack
TrkTruthToTrack
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
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*/
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:23
TrackParameters.h
IExtrapolator.h
Trk::TruthToTrack
Definition:
TruthToTrack.h:29
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:40
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:99
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:37
AthAlgTool.h
test_pyathena.parent
parent
Definition:
test_pyathena.py:15
Trk::ParametersBase
Definition:
ParametersBase.h:55
Trk::TruthToTrack::m_extrapolator
ToolHandle< Trk::IExtrapolator > m_extrapolator
Definition:
TruthToTrack.h:52
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:221
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:32
AthAlgTool
Definition:
AthAlgTool.h:26
Generated on Thu Nov 7 2024 21:31:10 for ATLAS Offline Software by
1.8.18