slactrac.Scatter

class slactrac.Scatter(thickness=0, radlength=1, name=None, verbose=False)[source]

Represents a foil element that scatters the beam.

Parameters:

thickness : float

The thickness of the foil in SI units.

radlength : float

The radiation lenght of the foil.

name : str

The name used to identify the element.

verbose : boolean

Whether or not to print information to the terminal

Attributes

K1
R This is necessary for the simulation, but a scattering element does not have an R matrix, and this is the identity.
angle
ele_name Returns the elegant-styled name.
ele_string Returns the full elegant entry.
name
order
radlength
rotate
thickness

Methods

change_E(old_gamma, new_gamma) Changes the energy of the element.
theta_rms(energy_GeV) The RMS scattering angle in radians.

Previous topic

slactrac.Focus.change_E

Next topic

slactrac.Scatter.K1