ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
TrkTools
TrkTruthToTrack
TrkTruthToTrack
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
8
#include "
AthenaBaseComps/AthAlgTool.h
"
9
#include "
TrkToolInterfaces/ITruthToTrack.h
"
10
#include "GaudiKernel/ToolHandle.h"
11
12
#include "
TrkParameters/TrackParameters.h
"
13
#include <string>
14
#include "
StoreGate/ReadHandleKey.h
"
15
#include "
TrackRecord/TrackRecordCollection.h
"
16
17
#include "
AtlasHepMC/GenParticle_fwd.h
"
18
19
namespace
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
50
using
ITruthToTrack::makeProdVertexParameters
;
51
virtual
const
Trk::TrackParameters
*
makeProdVertexParameters
(
HepMC::ConstGenParticlePtr
part)
const
;
52
virtual
const
Trk::TrackParameters
*
makeProdVertexParameters
(
const
xAOD::TruthParticle
* part)
const
;
53
60
using
ITruthToTrack::makePerigeeParameters
;
61
virtual
const
Trk::TrackParameters
*
makePerigeeParameters
(
HepMC::ConstGenParticlePtr
part)
const
;
62
virtual
const
Trk::TrackParameters
*
makePerigeeParameters
(
const
xAOD::TruthParticle
* part)
const
;
63
64
private
:
65
ToolHandle<Trk::IExtrapolator>
m_extrapolator
;
66
SG::ReadHandleKey<TrackRecordCollection>
m_reccollkey
;
67
70
TruthTrackRecordToTrack
(
const
TruthTrackRecordToTrack
&) =
delete
;
71
TruthTrackRecordToTrack
&
operator=
(
const
TruthTrackRecordToTrack
&) =
delete
;
72
};
73
}
74
75
#endif
/*TRUTHRECORDTOTRACK_H*/
AthAlgTool.h
GenParticle_fwd.h
ITruthToTrack.h
Extrapolation for HepMC particles.
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
TrackRecordCollection.h
TrackParameters.h
AthAlgTool::AthAlgTool
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
AthAlgTool.cxx:16
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
Trk::IExtrapolator
Interface class for the extrapolation AlgTool, it inherits from IAlgTool Detailed information about p...
Definition
IExtrapolator.h:61
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::TruthTrackRecordToTrack::m_extrapolator
ToolHandle< Trk::IExtrapolator > m_extrapolator
Definition
TruthTrackRecordToTrack.h:65
Trk::TruthTrackRecordToTrack::m_reccollkey
SG::ReadHandleKey< TrackRecordCollection > m_reccollkey
Definition
TruthTrackRecordToTrack.h:66
Trk::TruthTrackRecordToTrack::TruthTrackRecordToTrack
TruthTrackRecordToTrack(const std::string &type, const std::string &name, const IInterface *parent)
Definition
TruthTrackRecordToTrack.cxx:23
Trk::TruthTrackRecordToTrack::initialize
virtual StatusCode initialize()
Definition
TruthTrackRecordToTrack.cxx:35
Trk::TruthTrackRecordToTrack::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
TruthTrackRecordToTrack.cxx:45
Trk::TruthTrackRecordToTrack::TruthTrackRecordToTrack
TruthTrackRecordToTrack(const TruthTrackRecordToTrack &)=delete
Forbid copying of Truth...ToTrack to not mess with the internal pointers.
Trk::TruthTrackRecordToTrack::makePerigeeParameters
virtual const Trk::TrackParameters * makePerigeeParameters(HepMC::ConstGenParticlePtr part) const
This function extrapolates track to the perigee, and returns perigee parameters.
Definition
TruthTrackRecordToTrack.cxx:161
Trk::TruthTrackRecordToTrack::operator=
TruthTrackRecordToTrack & operator=(const TruthTrackRecordToTrack &)=delete
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