Celeritas
0.5.0-86+4a8eea4
|
Access particle definitions on the device. More...
#include <ParticleData.hh>
Public Types | |
template<class T > | |
using | Items = Collection< T, W, M, ParticleId > |
Public Member Functions | |
CELER_FUNCTION | operator bool () const |
Whether the data is assigned. | |
CELER_FUNCTION ParticleId::size_type | size () const |
Number of particles. | |
template<Ownership W2, MemSpace M2> | |
ParticleParamsData & | operator= (ParticleParamsData< W2, M2 > const &other) |
Assign from another set of data. | |
Public Attributes | |
Items< units::MevMass > | mass |
Rest mass [MeV / c^2]. | |
Items< units::ElementaryCharge > | charge |
Charge in units of [e]. | |
Items< real_type > | decay_constant |
Decay constant [1/s]. | |
Items< MatterType > | matter |
Antiparticle flag (negative PDG number) | |
Access particle definitions on the device.
Fundamental (static) properties of a particle type. Physical state of a particle (kinetic energy, ...) is part of a ParticleState. This view is created from ParticleParams
. The size of the defs
data member is the number of particle types (accessed by ParticleId
).