To do raster correction, the beam positions on target need to be determined by raster magnets X and Y current event by event. For rastered beam, The reconstructed target quantities can be expressed as functions of focal plane quantities and beam positions at target. It can be written as, for example:
The raster correction function depends only on beam position. It can be fitted from nominal Raytrace data card. Even if the actual optics of the spectrometer system may deviate from the nominal data card, its effect on raster correction function is small so we can still use the nominal function (fig.1 and fig.2).
|
|
.matrixfit/matfit6_backward.f
: Fortran program to fit
target quantities as a function of focal plane quantities and beam
position in the form of the above equation. It fits function as a
3-order polynomial of beam position. Need Raytrace
simulation output as input data.
.matrixfit/expon_rastercor.dat
: input data file specifying
the power of polynomial terms in functions and .