|
Celeritas 0.7.0-dev.242+develop.62c3034b
|
Access invariant particle data. More...
#include <ParticleView.hh>
Public Types | |
Type aliases | |
| using | ParticleParamsRef = NativeCRef< ParticleParamsData > |
Public Member Functions | |
| ParticleView (ParticleParamsRef const &, ParticleId) | |
| Construct from "static" particle definitions. | |
| ParticleId | particle_id () const |
| Unique particle type identifier. | |
| units::MevMass | mass () const |
| Rest mass [MeV / c^2]. | |
| units::ElementaryCharge | charge () const |
| Elementary charge. | |
| real_type | decay_constant () const |
| Decay constant. | |
| 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.