ATLAS Offline Software
Tracking
TrkTools
TrkTruthCreatorTools
TrkTruthCreatorTools
ElasticTruthTrajectoryBuilder.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 ELASTICTRUTHTRAJECTORYBUILDER_H
8
#define ELASTICTRUTHTRAJECTORYBUILDER_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
ElasticTruthTrajectoryBuilder
final:
virtual
public
ITruthTrajectoryBuilder
,
18
public
AthAlgTool
19
{
20
public
:
21
ElasticTruthTrajectoryBuilder
(
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
/*ELASTICTRUTHTRAJECTORYBUILDER_H*/
Trk::ParticleSwitcher::particle
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
Definition:
ParticleHypothesis.h:76
get_generator_info.result
result
Definition:
get_generator_info.py:21
Trk::ElasticTruthTrajectoryBuilder::buildTruthTrajectory
void buildTruthTrajectory(TruthTrajectory *result, const HepMC::ConstGenParticlePtr &input) const
Build a TruthTrajectory this particle belongs to.
Definition:
ElasticTruthTrajectoryBuilder.cxx:40
ITruthTrajectoryBuilder.h
Trk::ElasticTruthTrajectoryBuilder::MotherDaughter
std::pair< HepMC::ConstGenParticlePtr, HepMC::ConstGenParticlePtr > MotherDaughter
Return type for the next method.
Definition:
ElasticTruthTrajectoryBuilder.h:39
Trk::ElasticTruthTrajectoryBuilder::getDaughter
HepMC::ConstGenParticlePtr getDaughter(const HepMC::ConstGenParticlePtr &particle) const
Returns an umambiguous daughter of the truth particle on a TruthTrajectory, or 0.
Definition:
ElasticTruthTrajectoryBuilder.cxx:127
Trk::ElasticTruthTrajectoryBuilder::initialize
virtual StatusCode initialize()
Definition:
ElasticTruthTrajectoryBuilder.cxx:34
Trk::ITruthTrajectoryBuilder
Definition:
ITruthTrajectoryBuilder.h:25
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
GenVertex_fwd.h
PlotPulseshapeFromCool.input
input
Definition:
PlotPulseshapeFromCool.py:106
AthAlgTool.h
test_pyathena.parent
parent
Definition:
test_pyathena.py:15
Trk::ElasticTruthTrajectoryBuilder::truthTrajectoryCuts
static MotherDaughter truthTrajectoryCuts(const HepMC::ConstGenVertexPtr &vtx)
Decides if the vertex connects two particles on the same TruthTrajectory.
Definition:
ElasticTruthTrajectoryBuilder.cxx:76
Trk::ElasticTruthTrajectoryBuilder::getMother
HepMC::ConstGenParticlePtr getMother(const HepMC::ConstGenParticlePtr &particle) const
Returns an umambiguous mother of the truth particle on a TruthTrajectory, or 0.
Definition:
ElasticTruthTrajectoryBuilder.cxx:136
HepMC::ConstGenParticlePtr
const GenParticle * ConstGenParticlePtr
Definition:
GenParticle.h:38
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition:
FakeTrackBuilder.h:9
TruthTrajectory
Definition:
TruthTrajectory.h:26
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:221
Trk::ElasticTruthTrajectoryBuilder::ElasticTruthTrajectoryBuilder
ElasticTruthTrajectoryBuilder(const std::string &type, const std::string &name, const IInterface *parent)
Definition:
ElasticTruthTrajectoryBuilder.cxx:24
python.CaloScaleNoiseConfig.type
type
Definition:
CaloScaleNoiseConfig.py:78
HepMC::ConstGenVertexPtr
const HepMC::GenVertex * ConstGenVertexPtr
Definition:
GenVertex.h:60
AthAlgTool
Definition:
AthAlgTool.h:26
Trk::ElasticTruthTrajectoryBuilder
Definition:
ElasticTruthTrajectoryBuilder.h:19
Generated on Thu Nov 7 2024 21:14:21 for ATLAS Offline Software by
1.8.18