ParticleData namespace
Classes
- class Provider
Functions
- auto setProvider(std::shared_ptr<const Provider> provider) -> void -> FASTCALOSIM_EXPORT auto
- auto getProvider() -> std::shared_ptr< const Provider > -> FASTCALOSIM_EXPORT auto
- auto charge(int pdgID) -> double
- Convenience accessor: electric charge of the given PDG id, in units of e.
Function documentation
FASTCALOSIM_EXPORT auto ParticleData:: setProvider(std::shared_ptr<const Provider> provider) -> void
Install the provider used by all subsequent particle data queries.
Intended to be called once during experiment initialization, before any simulation runs. Passing nullptr restores the built-in default provider. Not safe to call concurrently with simulation.
FASTCALOSIM_EXPORT auto ParticleData:: getProvider() -> std::shared_ptr< const Provider >
The currently installed provider, or the built-in default if none was set. Returned by shared_ptr so the provider stays alive for the caller even if setProvider replaces it concurrently.
auto ParticleData:: charge(int pdgID) -> double
Convenience accessor: electric charge of the given PDG id, in units of e.