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.Beamparams class representing the x coordinates.

beam_y : float

slactrac.Beamparams class representing the y coordinates.

verbose : float

If true, prints details of beam setup on the terminal.

Attributes

K1
R The transfer matrix R for the beamline.
angle
beam_x_end The beam parameters in x at the end of the beamline.
beam_y_end The beam parameters in y at the end of the beamline.
gamma The energy setpoint of the beamline.
length The length of the beamline.
name
order
radlength
rotate
spotsize_x_end The beam spotsize in x at the end of the beamline.
spotsize_y_end The beam spotsize in x at the end of the beamline.
thickness
verbose

Methods

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.

Previous topic

Tracking Particles

Next topic

slactrac.Beamline.K1