Index of /~dlr/g-2/gm2/mytest/kicker_upgrade_evaluation/robyn/development9_linux/nonlin_bpm/scripts

[ICO]NameLast modifiedSizeDescription

[PARENTDIR]Parent Directory  -  
[   ]cesrv_nonlin_performance.py2024-01-09 07:08 3.8K 
[   ]generate_button_amplitude.py2024-01-09 07:08 2.5K 
[   ]plot_map.py2024-01-09 07:08 3.9K 
[   ]plot_results.py2024-01-09 07:08 3.9K 
[   ]python_nonlin_performance.py2024-01-09 07:08 3.2K 
[DIR]utils/2024-01-09 07:08 -  

This folder contains Python script allowing to asses the performance of the
non-linear reconstruction algorithm: both the Fortran CESRV approach and an
independent stand-alone Python approach

____________________________________________________________________________
** generate_button_amplitude.py **

This script allows to generate button amplitudes for given (x,y) position.
It uses the coarse Poisson look-up tables, extrapolating them in order to
generate button amplitudes for any (x,y) values. It calls utility scripts 
contained under the 'utils' sub-folder. The ouput is a text file called
'butn.txt' containing the following columns:

      xpos [m] ypos [m] b1 b2 tb3 b4

with the standard Littauer button naming convention: 

https://cesrwww.lepp.cornell.edu/logs/Instrumentation/1077

where xpos = (b2+b4-b1-b3)/sum
      ypos = (b3+b4-b1-b2)/sum

Only the standard North and South arc look-up are available to use


____________________________________________________________________________
** cesrv_nonlin_performance.py **

This script takes the input text files with x/y positions and button
amplitudes and reconstruct the positions from the button amplitudes using
CESRV non-linear method. It is important to properly specify the kx/ky as
well as CBPM index so the correct map/reconstruction is chosen. The script
outputs a text file 'results.out' with the following columns:

     x_true [m], y_true [m], b1, b2, b3, b4, nonlin_x_rec [m], nonlin_y_rec[m], lin_x_rec [m], lin_y_rec [m]


____________________________________________________________________________
** python_nonlin_performance.py **

Same as above but for the stand-alone Python non-linear reconstruction.
The CBPM index does not have to be provided, only the chamber geometry.


____________________________________________________________________________
** plot_results.py **

Using the 'results.out' text file, plots various things with linear
and log scales:

true position - reco position (both x and y)
linear position - nonlinear position (both x and y)


____________________________________________________________________________
** plot_map.py **

To plot the look-up table map: both raw and interpolated