Scripts for analyzing the ORM measurements performed with madgui.
|
Fit a MAD-X model to madgui ORM measurements. |
|
Spit out a list of error parameters that can be fitted for the given model. |
|
Compute model orbits and export to .txt files for all given optics using the specified errors. |
|
Convert madgui ORM measurement files to .txt files |
|
Read CSV exports of beam profiles, compute weighted mean and export as .txt files. |
|
Visualize and investigate the discrepancies between model and measurements of G3MU3 (the final 90° gantry dipole). |
|
Investigate kL dependency in the quadscan measurements. |
|
Generate a fake ORM measurement using a disturbed MAD-X model. This is used for testing. |
|
Quickly plot ORM measurements along with model expectations assuming a given error and print the chisq. |
|
Plot the .txt files previously generated with |
|
Invert folder structure for output generated by |
fit_model.py
:
./fit_model.py -m hht3 --backtrack -e fit0/errors.yml -o fit0/ \
data/2018-10-20-orm_measurements/M8-E108-F1-I9-G1/*.yml
./fit_model.py --help
The errors.yml
file might look as follows:
Δay_h1ms1: 0.1 # absolute error
δax_h1ms2: 0.1 # relative error
model_params.py
:
./model_params.py -m hht3 --ealign --twiss --knobs --attrs sbend->e1/e2
./model_params.py --help
model_orbits.py
:
./model_orbits.py -m hht3 -o orbits0/ -i errors.yml \
data/2018-10-20-orm_measurements/M8-E108-F1-I9-G1/*.yml
./model_orbits.py --help
measured_orbits.py
:
./measured_orbits.py -m hht3 -o measured/ \
data/2018-10-20-orm_measurements/M8-E108-F1-I9-G1
./measured_orbits.py --help
bpm_export.py
:
./bpm_export.py Gitter-Exporte/*.CSV
backtrack_and_fit_tm.py
:
./backtrack_and_fit_tm.py 2018-10-20-orm_measurements/M8-E108-F1-I9-G1/*.yml
|
|
|
Functions for plotting orbits and ORM. |
util |
Text utilities to output tables as .txt files. |