ATLAS Offline Software
Loading...
Searching...
No Matches
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
15namespace 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*/
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
void buildTruthTrajectory(TruthTrajectory *result, const HepMC::ConstGenParticlePtr &input) const
Build a TruthTrajectory this particle belongs to.
HepMC::ConstGenParticlePtr getDaughter(const HepMC::ConstGenParticlePtr &particle) const
Returns an umambiguous daughter of the truth particle on a TruthTrajectory, or 0.
HepMC::ConstGenParticlePtr getMother(const HepMC::ConstGenParticlePtr &particle) const
Returns an umambiguous mother of the truth particle on a TruthTrajectory, or 0.
static MotherDaughter truthTrajectoryCuts(const HepMC::ConstGenVertexPtr &vtx)
Decides if the vertex connects two particles on the same TruthTrajectory.
std::pair< HepMC::ConstGenParticlePtr, HepMC::ConstGenParticlePtr > MotherDaughter
Return type for the next method.
DecayInFlyTruthTrajectoryBuilder(const std::string &type, const std::string &name, const IInterface *parent)
A TruthTrajectory is a chain of charged MC particles connected through the mother-daughter relationsh...
const GenParticle * ConstGenParticlePtr
Definition GenParticle.h:38
const HepMC::GenVertex * ConstGenVertexPtr
Definition GenVertex.h:60
Ensure that the ATLAS eigen extensions are properly loaded.