ALS-U beamline performance simulations with metrology data managed through the Bluesky-Tiled framework
Abstract
The Advanced Light Source Upgrade (ALS-U) will deliver a diffraction-limited storage ring, which places stringent demands on beamline optics. We present a scripted simulation pipeline that predicts beamline performance from measured mirror figure errors and apply it to the COSMIC-U (7.0.1) and MAESTRO-U (7.0.2) insertion-device beamlines. Ray-tracing models built with shadow4 in OASYS 2.0 are exported as Python scripts and turned into parameterized builders, which bring the mirror metrology of the ALS X-Ray Optics Laboratory, retrieved by unique identifier from a Bluesky-Tiled server, and the measured influence functions of the adaptive x-ray optics (AXOs) into one pipeline. With ideal optics, energy scans across every grating agree with analytical estimates of the beam size and photon energy resolving power. Before the AXO correction, including the measured figure errors mainly shifts the horizontal focus away from the exit slit, while the resolving power stays above its design target at every energy; grating figure errors are not yet included. Fitting the AXO voltages directly to the beam at each photon energy keeps the horizontal width within 0.6% of ideal on COSMIC-U and slightly below it on MAESTRO-U, with no actuator above 300V. Including the measured figure errors and the AXO correction, both beamlines are therefore expected to perform close to their design. In general, this approach offers a reproducible way to use as-built optic data in performance predictions during construction, and a starting point for a beamline digital twin.