slactrac.Beamline¶
-
class
slactrac.Beamline(element_list, gamma, beam_x=None, beam_y=None, verbose=False)[source]¶ Represents a beamline composed of various elements.
Parameters: element_list : float
A list of all the elements in order in the beamline.
gamma : float
The beamline energy.
beam_x : float
slactrac.Beamparamsclass representing the x coordinates.beam_y : float
slactrac.Beamparamsclass representing the y coordinates.verbose : float
If true, prints details of beam setup on the terminal.
Attributes
K1RThe transfer matrix R for the beamline. anglebeam_x_endThe beam parameters in x at the end of the beamline. beam_y_endThe beam parameters in y at the end of the beamline. gammaThe energy setpoint of the beamline. lengthThe length of the beamline. nameorderradlengthrotatespotsize_x_endThe beam spotsize in x at the end of the beamline. spotsize_y_endThe beam spotsize in x at the end of the beamline. thicknessverboseMethods
change_verbose([verbose])Change whether the beamline is verbose. elegant_lte([filename, scatter_enable])Writes the beamline to an Elegant lte lattice file with filename.