Celeritas  0.5.0-56+6b053cd
Public Types | Public Member Functions | Public Attributes | List of all members
celeritas::ParticleParamsData< W, M > Struct Template Reference

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>
ParticleParamsDataoperator= (ParticleParamsData< W2, M2 > const &other)
 Assign from another set of data.
 

Public Attributes

Items< units::MevMassmass
 Rest mass [MeV / c^2].
 
Items< units::ElementaryChargecharge
 Charge in units of [e].
 
Items< real_typedecay_constant
 Decay constant [1/s].
 
Items< MatterType > matter
 Antiparticle flag (negative PDG number)
 

Detailed Description

template<Ownership W, MemSpace M>
struct celeritas::ParticleParamsData< W, M >

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).

See also
ParticleParams (owns the pointed-to data)
ParticleTrackView (uses the pointed-to data in a kernel)

The documentation for this struct was generated from the following file: