Skip to content

Commit 935d55b

Browse files
committed
moved ideas to codi, omc3 all around
1 parent 77400be commit 935d55b

File tree

13 files changed

+177
-187
lines changed

13 files changed

+177
-187
lines changed

docs/guis/about.md

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ Of these, only the Beta-Beat GUI is currently developed by the team.
1111
## Running the GUIs
1212

1313
The GUIs can be started from your development environment or via deployed `.jnlp` from the archives:
14-
15-
=== "Beta-Beat"
16-
17-
- Latest [Beta-Beating production version][prod_bbgui]{target=_blank}.
18-
- Latest [Beta-Beating development version][dev_bbgui]{target=_blank}.
19-
- Complete [list of releases][releases_bbgui]{target=_blank}.
2014

2115
=== "Beta-Beat-OMC3"
2216

2317
- Latest [Beta-Beating production version][prod_bbgui_omc3]{target=_blank}.
2418
- Latest [Beta-Beating development version][dev_bbgui_omc3]{target=_blank}.
2519
- Complete [list of releases][releases_bbgui_omc3]{target=_blank}.
20+
21+
=== "Beta-Beat (Legacy)"
22+
23+
- Latest [Beta-Beating production version][prod_bbgui]{target=_blank}.
24+
- Latest [Beta-Beating development version][dev_bbgui]{target=_blank}.
25+
- Complete [list of releases][releases_bbgui]{target=_blank}.
2626

2727
=== "Kmod"
2828

@@ -66,6 +66,26 @@ The following are required to run the GUIs:
6666

6767
You may encounter the following errors:
6868

69+
#### Running in the CCC in 2025
70+
71+
On the CCC terminals, there are some issues related to finding the correct java path,
72+
which affects `NXCals` extraction.
73+
74+
To avoid this, close all windows and CCMs and then run:
75+
76+
```bash
77+
/user/slops/data/LHC_DATA/OP_DATA/Betabeat/launch_ccm.sh
78+
```
79+
80+
This script performs the follwowing commands, which could also be done manually in a terminal:
81+
82+
- Create a kerberos ticket: `kinit lhcop`
83+
- Adapt the path/set `JAVA_HOME` to use the correct java: `export PATH=/bin:$PATH` and/or `export JAVA_HOME=/usr/java/jdk` (either should be fine)
84+
- run `ccm` or `/mcr/bin/ccm`
85+
86+
Then select `LHCOP` and launch the Beta-Beat GUI from the new CCM window.
87+
88+
6989
#### Problems with execution due to disabled Java
7090

7191
If you encounter a complaint about `Java` being too old, try using `/mcr/bin/jws`.

docs/guis/betabeat/ampdet.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Amplitude Detuning Analysis

docs/guis/betabeat/analysis_panel.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ After cleaning is finished, the optics function can be computed from the harmoni
3838
</center>
3939
</figure>
4040

41-
### Additional cleaning based on the tune ##
41+
### Additional cleaning based on the tune
4242
Additionally, BPMs can be cleaned based on the tune values computed by harmonic analysis. The chart displaying the selected columns of harmonic analysis data has interactive cursors. These cursors can be moved manually to set the thresholds for tune-based cleaning - all BPMs having tune values outside of the set range will be removed. The cursors can be also automatically set to e.g. 4 sigmas deviation from the average tune values over all BPMs.
4343

4444
### Summary of cleaning steps before optics analysis
@@ -54,6 +54,12 @@ The `Frequency` tab displays the computed frequencies for every BPM.
5454
A `Get Optics` button can be used to start the optics calculation.
5555
This will call an external python script again, with the results available in the [Optics Panel](optics_panel.md).
5656

57+
### Nattune Updater
58+
59+
* You can set a frequency range and it does not redo the analysis but just picks the highest peak in that range and assigns it to `NATTUNE` in the lin-file.
60+
* This should be very helpful for amplitude detuning analysis.
61+
* Do NOT use the Nattune-Updater if you have free kicks (it adds a `NATTUNE`-Column to the lin-file).
62+
5763
!!! todo
5864
Include a screenshot of the frequency panel.
5965

Lines changed: 16 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,23 @@
11
# The beam selection Window
22

3+
!!! tip "Setting Your Defaults"
4+
You can set all entries in this window to your preferred defaults for a quick start!
5+
Check the [Defaults Page](defaults.md) for more details.
6+
37
!!! todo
48
Include screenshot of Beam-Selection Window and describe the settings.
59

10+
### Python
611

7-
!!! tip "Setting Your Defaults"
8-
The GUI defaults to specific locations for which `Beta-Beat.src` directory to use, the input path of you data, etc.
9-
Different key-value pairs can be set inside for the desired defaults, for example:
10-
11-
```bash
12-
beam = LHCB1_RUNII_2018
13-
inputPath = /some/afs/location/with/your/data/
14-
outputPath = /some/afs/location/with/your/results/
15-
betaBeatPath = /some/afs/location/with/your/Beta-Beat.src/
16-
loadData=True
17-
```
18-
These values can be set by a file named `bbgui_user.properties` (with the above syntax) in either the current working directory, from where you run the GUI, or in your home folder.
19-
The latter is only used if there is no such file in the current working directory.
20-
21-
If you want to use a specific file located anywhere, you can also give the path to this file as the first and only argument when starting the GUI.
22-
It is also possible to set each of these default values by passing them as flag arguments to the GUI call, e.g:
23-
24-
```
25-
--beam LHCB1_RUNII_2018 --inputPath /some/afs/location/with/your/data/
26-
```
27-
28-
??? tip "Additional Default Settings"
29-
Additionally, there are some settings that can only be set via arguments.
30-
Their keys and default values are:
31-
32-
```bash
33-
oldFolderStructure=True
34-
consoleLogging=False
35-
checkFreeSpace=False
36-
```
12+
In the Beam-Selection Window you need to give it a python-binary (e.g. `venv/bin/python`).
13+
Best would be if you have a local virtual environment.
14+
This **needs to have omc3 installed as a package**.
15+
See [omc3 on github][omc3_github_getting_started]{target=_blank}.
16+
```bash
17+
pip install git+https://github.com/pylhc/omc3.git
18+
```
19+
This is because python calls are now made by module, i.e.:
20+
```bash
21+
python -m omc3.module arg1 arg2 ...
22+
```
3723

38-
- `oldFolderStructure` refers to the folder structure, where the `models` folder is at top level and contains the machines as subdirectories.
39-
Setting this value to `False` assumes (and creates) the models in a `Models` folder on the same level as `Measurements` and `Results`, i.e. within the machine-folders.
40-
- `consoleLogging` activates additional logging into the terminal.
41-
The effect is only visible if the GUI was started from the console.
42-
- `checkFreeSpace` activates a quick check of the available space upon start of the GUI.
43-
The result of this check is logged in the console, and hence also only visible if the GUI is started via terminal command.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# BetaBeat.src
2+
3+
Since 2025, the former `omc3` branch has been moved to the `master` branch of the GUI and is now the default for all new users.
4+
The "BetaBeat.src" branch of the GUI has been retired from `master` to the `BetaBeatSrc` branch
5+
and is no longer under active development.
6+
7+
Legacy version are still available on CAS.

docs/guis/betabeat/defaults.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Defaults
2+
3+
## Beam Selection Defaults
4+
5+
(For details see the [Beam Selection](beam_selection.md) page)
6+
7+
The GUI defaults to specific locations for which `python` binary to use, the input path of you data, etc.
8+
Different key-value pairs can be set inside for the desired defaults, for example:
9+
10+
```bash
11+
beam = LHCB1
12+
inputPath = /some/afs/location/with/your/data/
13+
outputPath = /some/afs/location/with/your/results/
14+
pythonPath = /some/afs/location/with/your/python-env/bin/python
15+
loadData=False # True: Load already existing data in the outputPath into the GUI
16+
oldFolderStructure=False # True: Put `models` folder at top level instead of the current machine folder (BBS legacy)
17+
```
18+
These values can be set by a file named `bbgui_user.properties` (with the above syntax) in either the **current working directory** (from where you run the GUI), or in **your home folder**.
19+
The latter is only used if there is no such file in the current working directory.
20+
21+
If you want to use a specific file located anywhere, you can also give the path to this file as the first and only argument when starting the GUI.
22+
It is also possible to set each of these default values by passing them as flag arguments to the GUI call, e.g:
23+
24+
```
25+
--beam LHCB1 --inputPath /some/afs/location/with/your/data/
26+
```
27+
28+
## Additional GUI Defaults
29+
30+
Additionally, there are some GUI settings that can either only be set via arguments or
31+
modify the default value in the GUI:
32+
33+
```bash
34+
consoleLogging=True # activate additional logging into the terminal (only visible if started from terminal)
35+
checkFreeSpace=True # check fee space at GUI start (only visible if started from terminal)
36+
37+
# BPM-Panel
38+
runOptics=True # set the tickbox next to the `Analyse` button to also run the optics analysis by default
39+
40+
# Analysis-Panel
41+
autoclean.limit=0.1 # set the autoclean limit
42+
clean.sigmas=2 # set the number of sigmas for the autoclean
43+
clean.bounds=0.7 # when cleaning, this ratio needs to remain otherwise the cleaning is aborted
44+
45+
# Amplitude-Detuning-Window
46+
ampdet.tunecut=0.05 # limit around the given tune to exclude from the natural tune when fitting
47+
ampdet.window=100 # length of the moving average window for the natural tune
48+
ampdet.outlierLimit=0.0002 # Cut on outliears around the mean
49+
ampdet.usePreviousBBQ=True # Do not extract BBQ data if there is already data present
50+
```
51+
52+
For more details about these functions see the [BPM-Panel](bpm_panel.md), [Analysis-Panel](analysis_panel.md) and [Amplitude-Detuning](ampdet.md) pages.
53+
54+
## Default Settings
55+
56+
(For details see the [Settings](settings.md) page)
57+
58+
When saving the GUI settings, a similar file `settings_xxx.properties` is created.
59+
Instead of loading these settings manually, you can also copy all or a selection of these settings
60+
from the output file into the `bbgui_user.properties` and they will be set automatically when the GUI is started.

docs/guis/betabeat/gui.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@ This section provides a short overview for the main features.
66

77
!!! info
88
The code documentation of the Beta-Beat GUI can be found on CERN's gitlab pages.
9-
The master and OMC3 branches are generated:
10-
9+
1110
* [Master branch][bbgui_doc_bbsrc]{target=_blank}
12-
* [OMC3 branch][bbgui_doc_omc3]{target=_blank}
1311

1412

1513
The GUI provides several panels, each for a defined use and with a set of options and results:
@@ -22,7 +20,15 @@ The GUI provides several panels, each for a defined use and with a set of option
2220
This site will guide you through the GUI's layout and functionality.
2321
For starters, check out [the basics of running the GUI](../about.md).
2422

23+
!!! warning "Bug Reporting"
24+
If you find bugs, please create [issues][betabeat_gui_gitlab_issues]{target=_blank} with the `OMC3-GUI` label.
2525

26-
[bbgui_doc_bbsrc]: https://lhc-app-beta-beating.docs.cern.ch/master/
27-
[bbgui_doc_omc3]: https://lhc-app-beta-beating.docs.cern.ch/omc3/
26+
## General Notes
27+
28+
### Opening Files
2829

30+
* Each tab has now an <span style="color:green;">Open Files</span> button, which opens only the files specific to this tab.
31+
* The magic <span style="color:green">**+**</span> button is gone, as its functionality was confusing (and there were different stories about its workings).
32+
33+
[bbgui_doc_bbsrc]: https://lhc-app-beta-beating.docs.cern.ch/master/
34+
[betabeat_gui_gitlab_issues]: https://gitlab.cern.ch/acc-co/lhc/lhc-app-beta-beating/-/issues

docs/guis/betabeat/omc3.md

Lines changed: 0 additions & 79 deletions
This file was deleted.

docs/guis/betabeat/optics_panel.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,11 @@ The following methods implement different correction algorithms:
6363
The results are outputted in the `changeparameters` files.
6464
These files store the magnet names and corresponding correction strengths.
6565

66-
They are also displayed in the [Correction Panel](correction_panel.md).
66+
They are also displayed in the [Correction Panel](correction_panel.md).
67+
68+
69+
### Optics Plotting
70+
71+
* RDT and CRDT plots are added dynamically depending on the files present in the respective folders.
72+
* Nicer names and more structure in the tree.
73+
* Backend was rewritten, so it is now more modular and easier to add new plot-types.

docs/guis/betabeat/plots.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Plotting
2+
3+
All plots are running with the same backend classes, which allows additional control via mouse and keyboard.
4+
5+
6+
## Keyboard/Mouse Shortcuts
7+
8+
* ++lbutton++ : Draw and zoom into rectangle.
9+
* ++mbutton++ : Auto-zoom (in 3 Steps: 4&sigma;, 3&sigma;, 2&sigma;).
10+
* ++rbutton++ : Undo last step.
11+
* ++shift+rbutton++ : Undo all steps (reset plot).
12+
* ++mousewheel++ : Zoom relative to mouse position.
13+
* ++shift+mousewheel++ : Zoom y-axis relative to mouse position.
14+
* ++alt+mousewheel++ : Zoom relative to plot center.
15+
* ++shift+alt+mousewheel++ : Zoom y-axis relative to plot center.
16+

0 commit comments

Comments
 (0)