Theory ====== Beam dynamics: .. math:: x' = \frac{dx}{ds}