Celeritas
0.5.0-86+4a8eea4
|
Access invariant particle data. More...
#include <ParticleView.hh>
Public Types | |
Type aliases | |
using | ParticleParamsRef = NativeCRef< ParticleParamsData > |
Public Member Functions | |
CELER_FUNCTION | ParticleView (ParticleParamsRef const &, ParticleId) |
Construct from "static" particle definitions. | |
CELER_FORCEINLINE_FUNCTION ParticleId | particle_id () const |
Unique particle type identifier. | |
CELER_FORCEINLINE_FUNCTION units::MevMass | mass () const |
Rest mass [MeV / c^2]. | |
CELER_FORCEINLINE_FUNCTION units::ElementaryCharge | charge () const |
Elementary charge. | |
CELER_FORCEINLINE_FUNCTION real_type | decay_constant () const |
Decay constant. | |
CELER_FORCEINLINE_FUNCTION bool | is_antiparticle () const |
Whether it is an antiparticle. | |
Access invariant particle data.
A ParticleView
can be used to access properties of a single particle type, e.g. electron or photon.