You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guis/betabeat/analysis_panel.md
+88-9Lines changed: 88 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -199,7 +199,7 @@ Clicking the ++"Custom"++ button will open a dialog to manually enter frequency
199
199
</figure>
200
200
201
201
Use ++"Add Line"++{.green-gui-button} to add a new line based on your input to the table and ++"Remove"++{.red-gui-button} to remove the currently selected line.
202
-
The lines in the charts will only update after clicking t++"Approve"++.
202
+
The lines in the charts will only update after clicking ++"Approve"++.
203
203
204
204
205
205
=== "Natural Tune Line"
@@ -232,16 +232,37 @@ The lines in the charts will only update after clicking t++"Approve"++.
232
232
233
233
### Natural Tune Window
234
234
235
+
The natural tune window controls help you, to correctly identify the natural tune in the spectrum and assign it to the `NATTUNE`-column in the lin-file
236
+
using the [`update_nattune_in_linfile` script][omc3_update_nattune]{target="_blank"} and
237
+
helps to avoid re-running the `harpy` analysis with different tolerance windows and natural tunes settings.
238
+
Accurate identification of the natural tune is important e.g. for [amplitude detuning analysis][amplitude_detuning_analysis].
239
+
240
+
There are two main reasons, why the natural tune line might be misidentified in the spectrum by the `harpy` analysis,
241
+
even when the natural tune and tolerance window are set "correctly" in the [`Tune Settings`](settings.md#tunes-tab):
242
+
243
+
- Due to detuning, the natural tune line can be shifted and might not be any longer within the tolerance window.
244
+
This can in particular happen during a wide range of amplitude detuning scans, for which you do not want to change the tolerance window at every kick,
245
+
or cannot easily make it larger as it would include the driven tune line.
246
+
- Large resonances can appear within the tolerance window, e.g. excited by the approach of the natural tune due to detuning effects,
247
+
and might be misidentified as the natural tune line when their amplitude is higher than the amplitude of the natural tune line.
<figcaption>Natural tune window controls at the bottom of the Frequency tab.</figcaption>
239
253
</center>
240
254
</figure>
241
255
242
-
- 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.
243
-
- This should be very helpful for amplitude detuning analysis.
244
-
- Do NOT use the Nattune-Updater if you have free kicks (it adds a `NATTUNE`-Column to the lin-file).
256
+
To update the natural tune in the lin-file, first activate the vertical cursors at the top of the chart by setting a tick in the **Show** checkbox,
257
+
they will appear at their last set position or at 0 if they have not been set yet.
258
+
259
+
!!! tip "Cursors for each plane"
260
+
If you have BPMs from both planes selected, two sets of cursors will appear: Blue for the horizonal spectrum and red for the vertical spectrum.
261
+
In case only one plane is selected, only one set of cursors will appear.
262
+
To update the amount of cursors shown, you need to select BPMs in the planes you want and then de- and re-activate the **Show** checkbox.
263
+
264
+
Click ++"Set Window"++ to set the markers around the model natural tune with a spacing given by the _Tolerance_,
265
+
both of which are taken from the [`Tune Settings`](settings.md#tunes-tab).
245
266
246
267
<figure>
247
268
<center>
@@ -250,6 +271,35 @@ The lines in the charts will only update after clicking t++"Approve"++.
250
271
</center>
251
272
</figure>
252
273
274
+
You can now adapt the cursors to your liking, such that the natural tune line is the highest line between them,
275
+
avoiding resonances and the driven tune line.
276
+
For measurements with many BPMs not showing a clear natural tune line, tightening the window can also help reducing the errorbar on the tune.
277
+
278
+
!!! tip "Identifying the Natural Tune"
279
+
If you are unsure which of the shown lines is the natural tune, it often helps to look at the spectrum of other kicks,
280
+
e.g. the ones with similar kick-amplitude in an amplitude detuning scan.
281
+
The natural tune line in this measurement is usually the line closest to the natural tune in the other measurements,
282
+
as the detuning effect is usually very small between similar kick amplitudes.
283
+
284
+
A ticked _"All BPMs"_ checkbox will update the `NATTUNE`-column for all BPMs, while an unticked on will only update the currently selected BPMs.
285
+
If you have it unticked and no BPMs in one plane selected, this plane will be skipped,
286
+
but if _"All BPMs"_ is active, both planes will be updated, even if no BPM is selected in that plane as long as a window is set for that plane (see tip above).
287
+
If there is no window set for a plane, this plane will be skipped.
288
+
289
+
Click ++"Update Lin-Files"++{.green-gui-button} to update the `NATTUNE`-column in the lin-files of the currently selected measurements, with the window defined by the currently set cursors.
290
+
291
+
!!! tip "The `Empty` dropdown"
292
+
In rare cases, e.g. if you are using a large frequency spacing (low number of [output bits](settings.md#harpy-tab)) or a very small tolerance window,
293
+
it can happen that for some BPMs no frequency line lies between the cursors.
294
+
In this case, the action taken in the `Empty` dropdown menu is applied:
295
+
296
+
- **error** _(default)_: The `NATTUNE`-column is not updated and an error is raised.
297
+
- **ignore**: The BPM is ignored and the value in the `NATTUNE`-column is not updated.
298
+
- **remove**: The BPM is removed from the lin-file.
299
+
300
+
!!! bug "Free Kicks"
301
+
Do **NOT** use the Natural Tune Updater if you have free kicks, as the script will add a `NATTUNE`-Column to the lin-file!
302
+
253
303
### Chart Options
254
304
255
305
<figure>
@@ -273,9 +323,35 @@ These are the markers of the _Stems_ plot, but without the actual stems.
273
323
This shows the spectrum in a scatter plot, i.e. as markers for each frequency set at the corresponding amplitude connected by lines.
274
324
So this is the same as _Points_ but with additional lines between the markers.
275
325
276
-
++"GUI"++
277
-
+"PDF"++
278
-
326
+
Two methods are available to save the chart to file:
327
+
328
+
- ++"GUI"++:
329
+
This button will open a dialog asking you where to save the **chart component directly from java** as a **PNG file**.
330
+
The output will look exactly like the chart in the GUI, as it is rendered directly from `java`.
331
+
- ++"PDF"++:
332
+
This button allows you pass the currently selected data to the [`plot_spectrum` script][omc3_plot_spectrum] to save the spectrum as a **PDF file**.
333
+
As the spectrum is completely rendered in `python` the output will look different from the chart in the GUI, but will show in general the same information, with some important caveats listed below.
334
+
335
+
- Clicking the button you will be requested to select an output **directory**.
336
+
As multiple files might be created, the filenames are determined automatically.
337
+
Then a dialog will pop up, in which you can change the path again, but also define which data should be plotted in the same file:
- In any case, the spectrum of horizontal and vertical BPMs will be split into separate plots on the top and bottom of the same file.
347
+
Which also means, that no matter in which plane you have selected a BPM - if it has a horizontal and a vertical spectrum they will both be plotted.
348
+
- _"Combine Plots by BPMs"_: Will plot all selected BPMs into the same plots in the same file, with the BPM name in the legend.
349
+
If this is deactivated, there will be separate files per BPM with the BPM name in the filename.
350
+
- _"Combine Plots by Measurements"_: Will plot all selected Mesurements into the same plots in the same file, with the Measurement name in the legend.
351
+
If this is deactivated, there will be separate files per Measurement with the Measurement name in the filename.
352
+
- Having both _"BPMs"_ and _"Measurements"_ activated will therefore lead to a single output file, with two charts (for the horizontal and vertical planes) and a combination of BPM-names and Measurement-names as legend.
353
+
- Having both _"BPMs"_ and _"Measurements"_ deactivated will lead to `N = No. of selected BPMs x No. of selected Measurements` files, containing two charts for the planes with each showing only a single spectrum.
354
+
Both, BPM name and Measurement name will be in the filename.
279
355
280
356
## Do Optics Dialog
281
357
@@ -300,8 +376,11 @@ So this is the same as _Points_ but with additional lines between the markers.
0 commit comments