File ParticleData.hpp¶
-
namespace Acts
Note
This file is foreseen for the
Geometry
module to replaceExtent
Functions
-
std::ostream &operator<<(std::ostream &os, PdgParticle pdg)¶
Print PDG particle numbers with a descriptive name.
Note
This is a bit hacky since it modifies the namespace of another library (ActsCore). Since the core library does not need to contain the full particle data table, it can only be defined here. It also only extends the output and should not have any side effects. We are probably fine.
-
std::ostream &operator<<(std::ostream &os, PdgParticle pdg)¶
-
namespace ActsFatras
Functions
-
float findCharge(Acts::PdgParticle pdg)¶
Find the charge for a given PDG particle number.
- Returns
Charge in native units or NaN if not available.
-
float findMass(Acts::PdgParticle pdg)¶
Find the mass for a given PDG particle number.
- Returns
Mass in native units or zero if not available.
-
std::string_view findName(Acts::PdgParticle pdg)¶
Find a descriptive particle name for a given PDG particle number.
- Returns
Particle name or empty if not available.
-
float findCharge(Acts::PdgParticle pdg)¶