|
Celeritas 0.7.0-dev.290+develop.6f2e532a
|
Counters for within-step track initialization and activity. More...
#include <CoreStateCounters.hh>
Public Attributes | |
Set when primaries are generated | |
| size_type | num_pending {0} |
| Number waiting to be generated. | |
| size_type | num_generated {0} |
| Number of track initializers created. | |
Updated during generation and initialization | |
| size_type | num_initializers {0} |
| Number of track initializers. | |
| size_type | num_vacancies {0} |
| Number of empty track slots. | |
Set after tracks are initialized | |
| size_type | num_active {0} |
| Number of active tracks at start. | |
Set after secondaries are generated | |
| size_type | num_secondaries {0} |
| Number of secondaries produced. | |
| size_type | num_alive {0} |
| Number of alive tracks at end. | |
Set by CUDA CUB when partitioning the tracks, unused by celeritas | |
| size_type | num_neutral {0} |
| Number of neutral tracks. | |
Counters for within-step track initialization and activity.
When running device code, these counters are now updated on the device throughout the step, so they are stored in TrackInitStateData. They need to be synchronized between the host and device before and after the step to maintain consistency.
For all user StepActionOrder (TODO: this may change if we add a "user_end"), all but the secondaries/alive counts are for the current step iteration, and secondaries/alive values are from the previous step iteration.