Celeritas  0.5.0-86+4a8eea4
Public Types | Public Member Functions | Public Attributes | List of all members
celeritas::ParticleStateData< W, M > Struct Template Reference

Data storage/access for particle properties. More...

#include <ParticleData.hh>

Public Types

template<class T >
using Items = celeritas::StateCollection< T, W, M >
 

Public Member Functions

CELER_FUNCTION operator bool () const
 Whether the interface is assigned.
 
CELER_FUNCTION TrackSlotId::size_type size () const
 State size.
 
template<Ownership W2, MemSpace M2>
ParticleStateDataoperator= (ParticleStateData< W2, M2 > &other)
 Assign from another set of data.
 

Public Attributes

Items< ParticleIdparticle_id
 Type of particle (electron, gamma, ...)
 
Items< real_typeparticle_energy
 Kinetic energy [MeV].
 

Detailed Description

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

Data storage/access for particle properties.

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

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