dodal.devices.beamlines.i09_1_shared#
Classes
Compound device to control insertion device energy. |
|
Compound energy device. |
Functions
|
Calculate the undulator gap required to produce a given energy at a given harmonic order. |
|
Calculate the photon energy produced by the undulator at a given gap and harmonic order. |
- dodal.devices.beamlines.i09_1_shared.calculate_gap_i09_hu(look_up_table: GenericLookupTable, value: float, order: int = 1) → float[source]#
Calculate the undulator gap required to produce a given energy at a given harmonic order. This algorithm was provided by the I09 beamline scientists, and is based on the physics of undulator radiation. https://cxro.lbl.gov//PDF/X-Ray-Data-Booklet.pdf.
- Parameters:
- Returns:
Calculated undulator gap in millimeters.
- Return type:
- dodal.devices.beamlines.i09_1_shared.calculate_energy_i09_hu(look_up_table: GenericLookupTable, value: float, order: int = 1) → float[source]#
Calculate the photon energy produced by the undulator at a given gap and harmonic order. Reverse of the calculate_gap_i09_hu function.
- Parameters:
- Returns:
Calculated photon energy in keV.
- Return type: