ATLAS Offline Software
PdgToParticleHypothesis.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // PdgToParticleHypothesis.h, (c) ATLAS Detector software
8 
9 #ifndef TRKEVENTPRIMITIVES_PDGTOPARTICLEHYPOTHESIS_H
10 #define TRKEVENTPRIMITIVES_PDGTOPARTICLEHYPOTHESIS_H
11 
12 // Fatras
14 // STD
15 #include <cmath>
16 
17 namespace Trk {
18 
29 {
30 
31 public:
34 
37  bool& stable,
38  bool& exiting,
39  double charge = 1.) const;
40 
42  Trk::ParticleHypothesis convert(int pdg, double charge = 1.) const;
43 
45  int convert(Trk::ParticleHypothesis particleHypo,
46  double charge,
47  bool dist = true) const;
48 };
49 }
50 
52 #endif
PdgToParticleHypothesis.icc
Trk::PdgToParticleHypothesis::convert
Trk::ParticleHypothesis convert(int pdg, bool &stable, bool &exiting, double charge=1.) const
Converter method : PDG -> Particle Hyptothesis.
Trk::PdgToParticleHypothesis::convert
Trk::ParticleHypothesis convert(int pdg, double charge=1.) const
Converter method : PDG -> Particle Hyptothesis , w/o stable exiting.
Trk::ParticleHypothesis
ParticleHypothesis
Definition: ParticleHypothesis.h:25
Trk::PdgToParticleHypothesis::PdgToParticleHypothesis
PdgToParticleHypothesis()=default
Constructor.
MCTruthPartClassifier::stable
@ stable
Definition: TruthClassifiers.h:148
ParticleHypothesis.h
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Trk::PdgToParticleHypothesis
Definition: PdgToParticleHypothesis.h:29
charge
double charge(const T &p)
Definition: AtlasPID.h:538
Trk::PdgToParticleHypothesis::convert
int convert(Trk::ParticleHypothesis particleHypo, double charge, bool dist=true) const
Converter method : Particle Hyptothesis -> PDG.