slactrac.Focus¶
-
class
slactrac.Focus(length=0, K1=0, order=1, name=None)[source]¶ Represents a transversely-focusing element (e.g. ion column).
Parameters: length : float
Length of the element.
K1 : float
Geometric focusing strength of the element.
order : int
Order to calculate the transfer matrix.
name : str
The name used to identify the element.
Attributes
K1The geometric focusing strength. RThe transfer matrix R for the focus. anglelengthThe length of the focus element. nameorderradlengthrotatethicknessMethods
change_E(old_gamma, new_gamma)Scale the setpoint energy of the magnet from the old energy old_gamma to new energy new_gamma.