ParticleData::Provider class

Interface for supplying particle data to FastCaloSim.

Experiments implement this to plug in their own particle database. The interface is intentionally minimal; further per-particle quantities (mass, name, stability, ...) can be added here as the need arises, and every implementation gets them through the single injection point.

Constructors, destructors, conversion operators

~Provider() defaulted virtual

Public functions

auto charge(int pdgID) const -> double pure virtual

Function documentation

auto ParticleData::Provider::charge(int pdgID) const -> double pure virtual

Electric charge of the particle with the given PDG id, in units of e. Implementations should throw if the pdgID is not supported.