3. Modules

OneShot has several modules that make calculations easier

3.1. Beamlines

The oneshow.Beamlines module stores several typical beamline configurations.

oneshot.Beamlines.IP_to_lanex(beam_x, beam_y, gamma=39824.0, QS1_K1=0.3874333109070723, QS2_K1=-0.2543906753835417)

The beamline from the interaction point to CMOS_ELAN, with some default quadrupole settings.

oneshot.Beamlines.IP_to_lanex_nobend(beam_x, beam_y, gamma=39824.0, QS1_K1=0.3874333109070723, QS2_K1=-0.2543906753835417)

The beamline from the interaction point to CMOS_ELAN, with the bend turned off, with some default quadrupole settings.

oneshot.Beamlines.IP_to_cherfar(beam_x, beam_y, gamma=39824.0, QS1_K1=0.3874333109070723, QS2_K1=-0.2543906753835417)

The beamline from the interaction point to cherfar with some default quadrupole settings.