Skip to content

Commit 6b4310c

Browse files
committed
commented out paths from MESS
1 parent ff807ed commit 6b4310c

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

docs/packages/omc3/analysis.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This page contains a walk-through of a typical but simple analysis workflow with the `omc3` codes.
44
To follow along, the reader needs to [have installed](getting_started.md) the `omc3` package and to have measurement or simulation data to use the codes on.
5-
In case the reader does not have appropriate data to follow along with, a script is provided below to create some.
5+
In case the reader does not have appropriate data to follow along with, a `MAD-X` script is provided below to create some.
66

77
## The Analysis Workflow
88

@@ -36,8 +36,10 @@ In this walk-through, we will cover the use of the different entrypoints availab
3636
option, echo=false, warn=false;
3737

3838
! ----- Set up Lattice and Define the Optics ----- !
39-
call, file="/afs/cern.ch/eng/lhc/optics/runII/2018/lhc_as-built.seq"; ! needs AFS access
40-
call, file="/afs/cern.ch/eng/lhc/optics/runII/2018/PROTON/opticsfile.22"; ! needs AFS access
39+
call, file="/afs/cern.ch/eng/lhc/optics/runII/2018/lhc_as-built.seq"; ! from AFS
40+
call, file="/afs/cern.ch/eng/lhc/optics/runII/2018/PROTON/opticsfile.22"; ! from AFS
41+
!call, file="MESS/LHC/AC_Dipole_Tracking/lhc_as-built.seq"; ! from MESS
42+
!call, file="MESS/LHC/AC_Dipole_Tracking/opticsfile.22"; ! from MESS
4143

4244
! ----- Re-Cycle Sequence as in the Model ----- !
4345
seqedit, sequence=lhcb1;
@@ -65,7 +67,8 @@ In this walk-through, we will cover the use of the different entrypoints availab
6567

6668
! ----- Slice Lattice for Tracking ----- !
6769
slicefactor = 4;
68-
call, file="/afs/cern.ch/eng/lhc/optics/runII/2018/toolkit/myslice.madx"; ! needs AFS access
70+
call, file="/afs/cern.ch/eng/lhc/optics/runII/2018/toolkit/myslice.madx"; ! from AFS
71+
!call, file="MESS/LHC/AC_Dipole_Tracking/myslice.madx"; ! from MESS
6972
use, sequence=lhcb1;
7073
makethin, sequence=lhcb1, style=teapot, makedipedge=false;
7174

@@ -638,10 +641,10 @@ While `omc3` codes can read data from many machine formats, we will for demonstr
638641

639642
For this `omc3` provides the `tbt_converter` entrypoint.
640643
A typical use consists in specifying the location of your turn-by-turn measurement files, the data type of said files and the location in which to write the converted `SDDS` data.
641-
The formats supported by the converter are:
644+
The formats supported by the converter are listed in its help output, the main ones being:
642645

643-
- Machine formats: `lhc`, `iota` and `esrf`, or any machine using one of these.
644-
- Simulation formats: the `trackone` and `ptc` formats from tracking data from `MAD-X` or `PTC`.
646+
- Machine formats: `lhc`, `sps`, `iota` and `esrf`, or any machine using one of these.
647+
- Simulation formats: the `trackone` and `ptc` formats from tracking data from `MAD-X` or `PTC`, or `madng` from `MAD-NG`.
645648

646649
??? info "The `trackone` and `ptc` formats"
647650
What is referred to here as the `trackone` or `ptc` format is obtained by giving the `DUMP` and `ONETABLE` options to the `TRACK` or `PTC_TRACK` commands, respectively, in `MAD-X`.
@@ -677,7 +680,7 @@ In order to perform the optics analysis, one needs a model of the given machine
677680
For this, `omc3` provides the `model_creator` entrypoint, which allows you to run a model simulation of the desired machine and output the needed files.
678681

679682
??? example "Supported Machines"
680-
The out-of-the-box supported machines for model creation are `lhc`, `ps` and `psbooster`, machines we work on.
683+
The out-of-the-box supported machines for model creation are `lhc`, `sps`, `ps` and `psbooster`, machines we work on.
681684
While the `skekb`, `JPARC`, `petra` and `iota` have accelerator classes, no model creator has been implemented for them yet.
682685
It is possible to extend this list for your machine by defining an appropriate `Accelerator` class as well as a model creator.
683686

@@ -709,7 +712,7 @@ b2_settings.madx job.create_model.madx twiss.dat
709712

710713
!!! question "What is a Model?"
711714
As one can see, a "model" is essentially one or more TFS files with optics functions at BPMs (`twiss.dat`) and elements (`twiss_elements.dat`), other files being here for the user to understand or reproduce the result.
712-
Had we created a driven model, then an additional `twiss_ac.dat` or `twiss_adt.dat` file would have been created, with optics functions at BPMs while driving the beam.
715+
Had we created a driven model, then an additional `twiss_ac.dat` or `twiss_adt.dat` file would have been created, with optics functions at BPMs while exciting the beam.
713716
One can create their own models without the `model_creator` should they want to, as it only acts as a convenience wrapper.
714717

715718
A `driven model` is the same as above, with also a `TWISS` taking into account the exciting effect of an AC dipole or ADT onto the optics.
@@ -721,7 +724,7 @@ Once measurement or simulation is in the appropriate format, the first step as s
721724
To do so, `omc3` provides the `hole_in_one` entrypoint, which will perform frequency analysis of the data when provided with the `--harpy` flag.
722725

723726
The script provides options involved in both data cleaning and parameter tweaking for the harmonic analysis, which is useful when you have relevant information about your measurements.
724-
To use these, refer to the `Harpy Kwargs` section of the [hole_in_one API documentation][hole_in_one].
727+
To use these, refer to the `Harpy kwargs` section of the [hole_in_one API documentation][hole_in_one].
725728

726729
In our example we will leave most of these to their default values to keep the analysis simple, but ask from `harpy` to output all computed results.
727730
We will input `lhc` for the `--tbt_datatype` flag, but if you skipped the use of the `tbt_converter` you should input the type of your machine there.
@@ -773,6 +776,7 @@ trackone.sdds.bad_bpms_y trackone.sdds.liny
773776

774777
The `*.freqs[xy]` files contain for each BPM in column format the frequencies of the resonance lines detected in the spectrum, for respectively the horizontal (`.freqsx`) and vertical (`.freqsy`) planes while the `*.amps[xy]` files contain the amplitudes of said resonance lines.
775778
This means in the column of a given BPM, the `nth` row in the `.amps[xy]` file corresponds to the amplitude of the resonance line located at the frequency given by the `nth` row in the column of the same name in the `.freqs[xy]` file.
779+
776780
For illustration purposes, simplistic plotting of the horizontal spectrum (without the spectrum plotter mentioned above) from these files would go as:
777781
```python
778782
import tfs

0 commit comments

Comments
 (0)