slactrac.BeamParams¶
-
class
slactrac.BeamParams(beta=None, alpha=None, emit=None, emit_n=None, gamma_en=None, spotsize=None, divergence=None, r=None, avg_xxp=None)[source]¶ Calculates Courant-Snyder parameters and beam properties in a self-consistent manner.
Parameters: beta : float
Beta function value in meters.
alpha : float
Alpha function value.
emit : float
Emittance in SI units.
emit_n : float
Normalized emittance in SI units.
gamma_en : float
Relativistic gamma

spotsize : float
RMS of
coordinate.divergence : float
RMS of
coordinate.r : float
The average correlation of
and
.avg_xxp : float
The average correlation of
and
.Attributes
TThe beam T matrix. alphaThe alpha function of the beam. avg_xxpThe average of coordinates
and
.betaThe beta function of the beam. betastarThe minimum beta function of the beam in vacuum. divergenceThe divergence of the beam. gammaThe gamma function of the beam minspotsizeThe RMS size of the beam at its smallest in vacuum. spotsizeThe RMS size of the beam. sstarThe distance from the minimum beta function of the beam in vacuum. Methods
set_emit_n(emit_n, gamma)Set the normalized emittance of the beam. transport(R)Given a transport matrix R, return the new beam parameters.