slactrac.gaussbunch_twiss

slactrac.gaussbunch_twiss(Beam_x, Beam_y, sz, sd, n_parts, szd=0)[source]

Generates a gaussian bunch with:

Parameters:

Beam_x : float

slactrac.BeamParams representation of beam properties in x.

Beam_y : float

slactrac.BeamParams representation of beam properties in y.

sz : float

RMS moment in z'.

sd : float

RMS moment in \delta = \frac{p - p_0}{p_0}.

Returns:

bunch : slactrac.Bunch.