slactrac.Quad¶
-
class
slactrac.Quad(length=0, K1=0, order=1, name=None, **kwargs)[source]¶ Represents a quadrupole element.
Parameters: length : float
The length of the magnet.
K1 : float
Geometric focusing strength of the quad.
order : float
Order to calculate matrix elements.
name : str
Unique name to identify the element.
Attributes
K1The geometric focusing strength. RThe transfer matrix R for the quad. angleele_nameReturns the elegant-styled name. ele_stringReturns the full elegant entry. lengthThe length of the quad. 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.