pysrw.magnets.predefinedLHCsource

pysrw.magnets.predefinedLHCsource#

pysrw.magnets.predefinedLHCsource(energy, sourceFlag='D3undD3')[source]#

Create the magnet container including a user-defined set of LHC source devices. The Beam 1 is taken as reference since the magnetic structure is perfectly symmetric for Beam 2. The LHC source consists of three devices, two D3-type dipoles and one undulator. The undulator and the D3 dipole at the right side of Pt4 (D3R) are the main sources at injection and flat-top energy respectively. The D3 dipole at the left side of Pt4 (D3L) is negligible in most practical cases but still influences the light emitted at flat-top energy.

Parameters:
  • energy – the beam energy in GeV.

  • sourceFlag (optional) – the set of source devices to include in the container. Allowed values are ‘D3undD3’ for the complete source, ‘und’ for the undulator only, ‘D3L’ or ‘D3R’ for either two dipoles, ‘undD3’ for the undulator and the D3R and ‘D3D3’ for the two dipoles without undulator. Defaults to ‘D3undD3’.

Returns:

the container with the selected set of source

devices.

Return type:

MagnetsContainer