Celeritas  0.5.0-56+6b053cd
Public Member Functions | List of all members
celeritas::ParticleView Class Reference

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.
 

Detailed Description

Access invariant particle data.

A ParticleView can be used to access properties of a single particle type, e.g. electron or photon.


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