ATLAS Offline Software
Loading...
Searching...
No Matches
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
17namespace Trk {
18
27
29{
30
31public:
34
37 bool& stable,
38 bool& exiting,
39 double charge = 1.) const;
40
42 Trk::ParticleHypothesis convert(int pdg, double charge = 1.) const;
43
46 double charge,
47 bool dist = true) const;
48};
49}
50
52#endif
double charge(const T &p)
Definition AtlasPID.h:997
Trk::ParticleHypothesis convert(int pdg, double charge=1.) const
Converter method : PDG -> Particle Hyptothesis , w/o stable exiting.
PdgToParticleHypothesis()=default
Constructor.
Trk::ParticleHypothesis convert(int pdg, bool &stable, bool &exiting, double charge=1.) const
Converter method : PDG -> Particle Hyptothesis.
int convert(Trk::ParticleHypothesis particleHypo, double charge, bool dist=true) const
Converter method : Particle Hyptothesis -> PDG.
Ensure that the ATLAS eigen extensions are properly loaded.
ParticleHypothesis
Enumeration for Particle hypothesis respecting the interaction with material.