|
ImpactX
|
#include <TrackingState.H>
Public Member Functions | |
| void | set_no_element () |
Public Attributes | |
| int | m_step = 0 |
| int | m_period = 0 |
| std::optional< elements::KnownElements * > | m_element |
This class wraps a few states during tracking loops.
These states are useful to know in hooks (Python callback functions).
|
inline |
| std::optional<elements::KnownElements*> impactx::TrackingState::m_element |
For tracking hooks/callbacks, the current lattice element
| int impactx::TrackingState::m_period = 0 |
For tracking hooks/callbacks, the period in the lattice (e.g., turn or channel period)
| int impactx::TrackingState::m_step = 0 |
For tracking hooks/callbacks, a global step of the simulation
A state of internal simulation steps, increments also for space charge slice steps in elements. We start in "step 0" (initial state).