Celeritas
0.5.0-56+6b053cd
|
Simulation properties for a single track. More...
#include <SimTrackView.hh>
Classes | |
struct | Initializer |
Data for initializing the simulation state. More... | |
Public Member Functions | |
CELER_FUNCTION | SimTrackView (NativeRef< SimStateData > const &, TrackSlotId) |
Construct from local data. | |
CELER_FUNCTION SimTrackView & | operator= (Initializer const &) |
Initialize the simulation state. | |
CELER_FUNCTION void | status (TrackStatus) |
Set whether the track is active, dying, or inactive. | |
CELER_FUNCTION void | add_time (real_type delta) |
Add the time change over the step. | |
CELER_FUNCTION void | reset_step_limit () |
Reset step limiter at the beginning of a step. | |
CELER_FUNCTION void | reset_step_limit (StepLimit const &sl) |
Reset step limiter at the beginning of a step. More... | |
CELER_FUNCTION bool | step_limit (StepLimit const &sl) |
Limit the step by this distance and action. More... | |
CELER_FUNCTION void | step_length (real_type length) |
Update the current limiting step. | |
CELER_FUNCTION void | post_step_action (ActionId action) |
Force the limiting action to take. More... | |
CELER_FUNCTION real_type | time () const |
Time elapsed in the lab frame since the start of the event [s]. | |
CELER_FUNCTION TrackStatus | status () const |
Whether the track is inactive, alive, or being killed. | |
CELER_FUNCTION real_type | step_length () const |
Get the current limiting step. | |
CELER_FUNCTION ActionId | post_step_action () const |
Access post-step action to take. | |
Simulation properties for a single track.
|
inline |
Force the limiting action to take.
This is used by intermediate kernels (such as discrete_select_track
) that dispatch to another kernel action before the end of the step without changing the step itself.
|
inline |
Reset step limiter at the beginning of a step.
The action can be unset if and only if the step is infinite.
|
inline |
Limit the step by this distance and action.
If the step limits are the same, the original action is retained.