at.tracking.utils#
Utility functions for tracking simulations
Functions
|
Function to get the bunches particles 6D coordinates |
|
Function to get the bunches standard deviation and center of mass |
|
Function to unfold the beam based on the ring fill pattern. |
- get_bunches(r_in, nbunch, selected_bunches=None)[source]#
Function to get the bunches particles 6D coordinates
- Parameters:
- Returns:
List of ndarray containing the 6 x n particles coordinates
of the selected bunches
- get_bunches_std_mean(r_in, nbunch, selected_bunches=None)[source]#
Function to get the bunches standard deviation and center of mass
- Parameters:
- Returns:
Lists of ndarray containing the 6D standard deviation
and center of mass (std, mean)
- unfold_beam(ring, beam, **kwargs)[source]#
Function to unfold the beam based on the ring fill pattern. The input particle distribution has to be in on bucket 0. Particle are distributed in bunches using
i%ring.nbunchwhere i is the particle index. For each bunches the absolutectis computed using the 6D closed orbit search, this closed orbit is added to the input particles.- Parameters:
- Keyword Arguments:
convergence (float) – Convergence criterion for 6D orbit Default:
DConstant.OrbConvergencemax_iterations (int) – Maximum number of iterations for 6D orbit. Default:
DConstant.OrbMaxIter
- Returns:
beam (numpy.ndarray) – unfolded beam
- Return type: