Celeritas
0.5.0-86+4a8eea4
|
Access invariant material- and particle-dependent cutoff values. More...
#include <CutoffView.hh>
Public Types | |
Type aliases | |
using | CutoffId = OpaqueId< ParticleCutoff > |
using | CutoffData = NativeCRef< CutoffParamsData > |
using | Energy = units::MevEnergy |
Public Member Functions | |
CELER_FUNCTION | CutoffView (CutoffData const ¶ms, MaterialId material) |
Construct view from host/device for the given material id. | |
CELER_FUNCTION Energy | energy (ParticleId particle) const |
Return energy cutoff value. | |
CELER_FUNCTION real_type | range (ParticleId particle) const |
Return range cutoff value. | |
CELER_FUNCTION bool | apply_post_interaction () const |
Whether to kill secondaries below the production cut post-interaction. | |
CELER_FUNCTION bool | apply (Secondary const &) const |
Whether the post-interaction cutoff should be applied to the secondary. More... | |
Access invariant material- and particle-dependent cutoff values.
CutoffParamsData
is defined in CutoffData.hh
and constructed by CutoffParams
.
|
inline |
Whether the post-interaction cutoff should be applied to the secondary.
This will be true if the apply_post_interaction
option is enabled and the seccondary is an electron, positron, or gamma with energy below the production cut.