Skip to content

The Segment-by-Segment GUI

The Segment-by-Segment GUI provides a graphical interface to run the segment-by-segment method on various parts of the machine. It allows users to input data, configure settings, run segments, determine corrections and visualise results for various observables. This section will guide you through the GUI's layout and functionality.

The GUI is a Python application built on accwidgets. It can be run either from the Beta-Beat GUI's Optics Panel after running a full optics analysis, or the command line:

After performing an optics analysis, navigate to the optics panel. With one or more analysis selected, click the Open Segment-by-Segment GUI button in the bottom left to start the GUI.

The SbS GUI is a Python program and part of the omc3_gui package. It can be started from the command line by providing desired arguments to the following call:

python -m omc3_gui.sbs_gui # args here

Note that this GUI requires the omc3 package, recent Qt bindings (PyQt / PySide) and the accwidgets package which is quite CERN specific. It is recommended to run it from the Beta-Beat GUI.

After opening, the GUI displays the main window:

Blank Window
Blank window of SbS-GUI as seen when starting the GUI.

The GUI window is made up of the following main components.

The top left panel displays the loaded measurement data as well as various actions related to data. If started from the Beta-Beat GUI, all optics analyses selected will be loaded.

Optics Panel
The optics panel and associated buttons.

The lower left panel displays the defined segments and buttons to perform actions with those segments.

Segments Panel
The segments panel and associated buttons.

The main part of the window, to the right of the previous two panels, displays the quantities propagated through the selected segment.

Plot Panel
The main plot panel.

The various tabs in the top part allow the user to select which quantity to plot.

At the very bottom of the window is the log console, which displays logging output from both GUI actions and the underlying Python modules called during the analysis.

Log Console
The log console, expanded.

It can be expanded or collapsed using the arrow control and closed entirely with the X button on its right side. If closed, it can be re-enabled through the View menu.

Debug Logging

By default, the log console is initialized with log level INFO. To enable more detailed output for debugging purposes, launch the GUI with the -d flag (e.g. python -m omc3_gui.sbs_gui -d), which sets the log level to DEBUG.

The console panel is also movable and resizable within the GUI window. Right-clicking inside the console opens a context menu that provides access to additional preferences.


The following pages are available: