Welcome to madgui’s documentation!

madgui is a Qt5 graphical user interface (GUI) written in Python, designed as an interactive frontend for MAD-X. Given a MAD-X input file, madgui is capable of showing the simulated lattice in an interactive window. Up until now it offers a very comfortable graphical representation of relevant quantities (e.g. beam envelope, alpha and beta optical functions, emittance, etc.), which aid to the control of the optimal parameters for the studied machine or lattice.

The following shows a plot for the Touschek example in the madx-examples repository, where the Touschek lifetimes and scattering rates are computed for LHC at injection. The beam envelope [mm] is shown for the first 300m of the lattice.

Beam envelope [mm] for the first 300m of the injection at LHC

Indices and tables