at.tracking.atpass#

Clone of atpass in Accelerator Toolbox

Functions

atpass(line, r_in, n_turns[, refpts, reuse, ...])

Track input particles r_in along line for nturns turns.

elempass(element, r_in)

Track input particles r_in through a single element.

reset_rng(*[, rank, seed])

Reset the common and thread random generators.

common_rng()

Return a double from the common generator .

thread_rng()

Return a double from the thread generator .

common_rng()#

Return a double from the common generator .

reset_rng(*, rank=0, seed=None)#

Reset the common and thread random generators.

The seed is applied unchanged to the “common” generator, and modified in a thread-specific way to the “thread” generator

Parameters:
  • rank (int) – thread identifier (for MPI and python multiprocessing)

  • seed (int) – single seed for both generators. Default: initial seed

thread_rng()#

Return a double from the thread generator .