|
Celeritas 0.7.0-dev.161+develop.301cbc939
|
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 | increment_num_steps () |
| Increment the total number of steps. | |
| 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. | |
| CELER_FUNCTION bool | step_limit (StepLimit const &sl) |
| Limit the step by this distance and action. | |
| 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. | |
| CELER_FUNCTION size_type | num_steps () const |
| Total number of steps taken by the track. | |
| 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.