A General Bayesian Algorithm for the Autonomous Alignment of Beamlines | Synapse