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
K1RThis is necessary for the simulation, but a scattering element does not have an R matrix, and this is the identity. angleele_nameReturns the elegant-styled name. ele_stringReturns the full elegant entry. nameorderradlengthrotatethicknessMethods
change_E(old_gamma, new_gamma)Changes the energy of the element. theta_rms(energy_GeV)The RMS scattering angle in radians.