shadow4.tools.beamline_tools

Tools (functions) to operate with the beamline (instance of S4Beamline).

Functions

beamline_get_beam_at_element(beamline, index)

retrieve (and calculate if necessary) the beam after a given beamline element.

beamline_get_last_beam(beamline)

retrieve (and calculate if necessary) the beam at the final image position (after the last element).

beamline_get_source_beam(beamline)

retrieve (and calculate if necessary) the beam at the source position.

flux_summary(beamline[, spectrum_energy, ...])

Retrieve a summary of the absolute flux and power.

focnew([beamline, beam, nolost, mode, center])

FocNew tool that finds the best focus looking at the evolution of the beam calculated after the standard deviation of some beam variables.

focnew_scan(A, x)

Scans the RMS of the beam size along the optical axis using the focnew coefficients.

focnew_scan_full_beamline(beamline[, npoints])

Scans the RMS of the beam size along the optical axis of the complete beamline.