ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
TrkTools
TrkTruthCreatorTools
TrkTruthCreatorTools
DecayInFlyTruthTrajectoryBuilder.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// Dear emacs, this is -*-c++-*-
6
7
#ifndef DECAYINFLYTRUTHTRAJECTORYBUILDER_H
8
#define DECAYINFLYTRUTHTRAJECTORYBUILDER_H
9
10
#include "
TrkToolInterfaces/ITruthTrajectoryBuilder.h
"
11
#include "
AthenaBaseComps/AthAlgTool.h
"
12
13
#include "
AtlasHepMC/GenVertex_fwd.h
"
14
15
namespace
Trk
{
16
17
class
DecayInFlyTruthTrajectoryBuilder
final:
virtual
public
ITruthTrajectoryBuilder
,
18
public
AthAlgTool
19
{
20
public
:
21
DecayInFlyTruthTrajectoryBuilder
(
const
std::string&
type
,
const
std::string& name,
const
IInterface* parent);
22
23
virtual
StatusCode
initialize
();
24
25
void
buildTruthTrajectory
(
TruthTrajectory
*result,
const
HepMC::ConstGenParticlePtr
& input)
const
;
26
30
HepMC::ConstGenParticlePtr
getMother
(
const
HepMC::ConstGenParticlePtr
& particle)
const
;
31
36
HepMC::ConstGenParticlePtr
getDaughter
(
const
HepMC::ConstGenParticlePtr
& particle)
const
;
37
39
typedef
std::pair<HepMC::ConstGenParticlePtr,HepMC::ConstGenParticlePtr>
MotherDaughter
;
40
50
static
MotherDaughter
truthTrajectoryCuts
(
const
HepMC::ConstGenVertexPtr
& vtx) ;
51
};
52
53
}
// end namespace Trk
54
55
#endif
/*DECAYINFLYTRUTHTRAJECTORYBUILDER_H*/
AthAlgTool.h
GenVertex_fwd.h
ITruthTrajectoryBuilder.h
AthAlgTool::AthAlgTool
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
AthAlgTool.cxx:16
Trk::DecayInFlyTruthTrajectoryBuilder::buildTruthTrajectory
void buildTruthTrajectory(TruthTrajectory *result, const HepMC::ConstGenParticlePtr &input) const
Build a TruthTrajectory this particle belongs to.
Definition
DecayInFlyTruthTrajectoryBuilder.cxx:40
Trk::DecayInFlyTruthTrajectoryBuilder::getDaughter
HepMC::ConstGenParticlePtr getDaughter(const HepMC::ConstGenParticlePtr &particle) const
Returns an umambiguous daughter of the truth particle on a TruthTrajectory, or 0.
Definition
DecayInFlyTruthTrajectoryBuilder.cxx:127
Trk::DecayInFlyTruthTrajectoryBuilder::initialize
virtual StatusCode initialize()
Definition
DecayInFlyTruthTrajectoryBuilder.cxx:34
Trk::DecayInFlyTruthTrajectoryBuilder::getMother
HepMC::ConstGenParticlePtr getMother(const HepMC::ConstGenParticlePtr &particle) const
Returns an umambiguous mother of the truth particle on a TruthTrajectory, or 0.
Definition
DecayInFlyTruthTrajectoryBuilder.cxx:136
Trk::DecayInFlyTruthTrajectoryBuilder::truthTrajectoryCuts
static MotherDaughter truthTrajectoryCuts(const HepMC::ConstGenVertexPtr &vtx)
Decides if the vertex connects two particles on the same TruthTrajectory.
Definition
DecayInFlyTruthTrajectoryBuilder.cxx:76
Trk::DecayInFlyTruthTrajectoryBuilder::MotherDaughter
std::pair< HepMC::ConstGenParticlePtr, HepMC::ConstGenParticlePtr > MotherDaughter
Return type for the next method.
Definition
DecayInFlyTruthTrajectoryBuilder.h:39
Trk::DecayInFlyTruthTrajectoryBuilder::DecayInFlyTruthTrajectoryBuilder
DecayInFlyTruthTrajectoryBuilder(const std::string &type, const std::string &name, const IInterface *parent)
Definition
DecayInFlyTruthTrajectoryBuilder.cxx:24
Trk::ITruthTrajectoryBuilder
Definition
ITruthTrajectoryBuilder.h:25
TruthTrajectory
A TruthTrajectory is a chain of charged MC particles connected through the mother-daughter relationsh...
Definition
TruthTrajectory.h:26
HepMC::ConstGenParticlePtr
HepMC3::ConstGenParticlePtr ConstGenParticlePtr
Definition
GenParticle.h:20
HepMC::ConstGenVertexPtr
HepMC3::ConstGenVertexPtr ConstGenVertexPtr
Definition
GenVertex.h:24
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition
FakeTrackBuilder.h:9
type
Generated on
for ATLAS Offline Software by
1.17.0