ATLAS Offline Software
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 
12 
14 
15 namespace Trk {
16 
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 
26 
31 
37 
39  typedef std::pair<HepMC::ConstGenParticlePtr,HepMC::ConstGenParticlePtr> MotherDaughter;
40 
51  };
52 
53 } // end namespace Trk
54 
55 #endif/*DECAYINFLYTRUTHTRAJECTORYBUILDER_H*/
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:131
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
ITruthTrajectoryBuilder.h
Trk::DecayInFlyTruthTrajectoryBuilder::DecayInFlyTruthTrajectoryBuilder
DecayInFlyTruthTrajectoryBuilder(const std::string &type, const std::string &name, const IInterface *parent)
Definition: DecayInFlyTruthTrajectoryBuilder.cxx:24
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::initialize
virtual StatusCode initialize()
Definition: DecayInFlyTruthTrajectoryBuilder.cxx:34
Trk::DecayInFlyTruthTrajectoryBuilder
Definition: DecayInFlyTruthTrajectoryBuilder.h:19
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
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
test_pyathena.parent
parent
Definition: test_pyathena.py:15
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
Trk::DecayInFlyTruthTrajectoryBuilder::MotherDaughter
std::pair< HepMC::ConstGenParticlePtr, HepMC::ConstGenParticlePtr > MotherDaughter
Return type for the next method.
Definition: DecayInFlyTruthTrajectoryBuilder.h:39
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
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:140
HepMC::ConstGenVertexPtr
const HepMC::GenVertex * ConstGenVertexPtr
Definition: GenVertex.h:60
AthAlgTool
Definition: AthAlgTool.h:26