ATLAS Offline Software
MuonDecayTruthTrajectoryBuilder.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // Dear emacs, this is -*-c++-*-
6 
7 #ifndef MUONDECAYTRUTHTRAJECTORYBUILDER_H
8 #define MUONDECAYTRUTHTRAJECTORYBUILDER_H
9 
14 #include <utility> //for std::pair
15 
16 namespace Muon {
17 
19  public:
20  MuonDecayTruthTrajectoryBuilder(const std::string& type, const std::string& name, const IInterface* parent);
21 
22 
23 
24  void buildTruthTrajectory(TruthTrajectory* result, const HepMC::ConstGenParticlePtr& input) const override;
25 
30 
36 
37  private:
39  typedef std::pair<HepMC::ConstGenParticlePtr, HepMC::ConstGenParticlePtr> MotherDaughter;
40 
51 
52  };
53 
54 } // namespace Muon
55 
56 #endif
Trk::ParticleSwitcher::particle
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
Definition: ParticleHypothesis.h:79
get_generator_info.result
result
Definition: get_generator_info.py:21
ITruthTrajectoryBuilder.h
GenParticle_fwd.h
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition: TrackSystemController.h:45
python.CaloAddPedShiftConfig.type
type
Definition: CaloAddPedShiftConfig.py:42
Muon::MuonDecayTruthTrajectoryBuilder::MotherDaughter
std::pair< HepMC::ConstGenParticlePtr, HepMC::ConstGenParticlePtr > MotherDaughter
Return type for the next method.
Definition: MuonDecayTruthTrajectoryBuilder.h:39
Trk::ITruthTrajectoryBuilder
Definition: ITruthTrajectoryBuilder.h:25
Muon::MuonDecayTruthTrajectoryBuilder::MuonDecayTruthTrajectoryBuilder
MuonDecayTruthTrajectoryBuilder(const std::string &type, const std::string &name, const IInterface *parent)
Definition: MuonDecayTruthTrajectoryBuilder.cxx:21
GenVertex_fwd.h
Muon::MuonDecayTruthTrajectoryBuilder::getDaughter
HepMC::ConstGenParticlePtr getDaughter(const HepMC::ConstGenParticlePtr &particle) const override
Returns an umambiguous daughter of the truth particle on a TruthTrajectory, or 0.
Definition: MuonDecayTruthTrajectoryBuilder.cxx:143
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
HepMC::ConstGenParticlePtr
const GenParticle * ConstGenParticlePtr
Definition: GenParticle.h:38
TruthTrajectory
Definition: TruthTrajectory.h:26
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
Muon::MuonDecayTruthTrajectoryBuilder::truthTrajectoryCuts
MotherDaughter truthTrajectoryCuts(const HepMC::ConstGenVertexPtr &vtx) const
Decides if the vertex connects two particles on the same TruthTrajectory.
Definition: MuonDecayTruthTrajectoryBuilder.cxx:79
HepMC::ConstGenVertexPtr
const HepMC::GenVertex * ConstGenVertexPtr
Definition: GenVertex.h:60
AthAlgTool
Definition: AthAlgTool.h:26
Muon::MuonDecayTruthTrajectoryBuilder
Definition: MuonDecayTruthTrajectoryBuilder.h:18
Muon::MuonDecayTruthTrajectoryBuilder::getMother
HepMC::ConstGenParticlePtr getMother(const HepMC::ConstGenParticlePtr &particle) const override
Returns an umambiguous mother of the truth particle on a TruthTrajectory, or 0.
Definition: MuonDecayTruthTrajectoryBuilder.cxx:152
Muon::MuonDecayTruthTrajectoryBuilder::buildTruthTrajectory
void buildTruthTrajectory(TruthTrajectory *result, const HepMC::ConstGenParticlePtr &input) const override
Build a TruthTrajectory this particle belongs to.
Definition: MuonDecayTruthTrajectoryBuilder.cxx:29