File ParticleData.hpp

namespace Acts

Set the Geometry Context PLUGIN.

Set the Calibration Context PLUGIN.

Convenience functions to ease creation of and Acts::InterpolatedMaterialMap and to avoid code duplication.

Set the Mangetic Field Context PLUGIN.

Convenience functions to ease creation of and Acts::InterpolatedBFieldMap and to avoid code duplication.

Currently implemented for the two most common formats: rz and xyz.

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.

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.