next up previous
Next: Setup calibration files Up: Angular calibration wizard manual Previous: Data acquisition

Subsections

Data analysis

The data analysis consists in fitting with a gaussian the selected peak of the powder pattern for each position in order to determine its position is channel number as a function of the encoder position.
In a second step, for each module, the channel vs. encoder curve is fitted in order to extrapolate the three parameters necessary for the angular conversion and the result is written to file

Software

The software used for the angular calibration data analysis is based on root (see http://root.cern.ch).
This can be downloaded as binary or installed from sources. The version of the software should not play an important role, but up to now everything has been implemented and tested using version 5.20.

To start the data analysis simply launch:

> ./angularCalibrationWizard

Figure 3: Overview of the nagular calibration dataset.
\includegraphics[width=\textwidth]{setupAngcal.eps}

To setup the angular calibration dataset, the .angcal file should be selected (or digited) and the load button should be pressed to confirm. The parameters of the angular calibration are then read to the file and the data loaded for a quick overview (see figure 3).
The software assumes that the data files (.raw) and the .encal file are in the same directory.
A 2D color plot will show a rebinned overview of the dataset. The peak to be fitted should be visible as a high intensity diagonal line passing through all the channels.

Figure 4: Preview of the fitting of the Si(111) peak for one of the detector positions.
\includegraphics[width=\textwidth]{peakFit.eps}

For a more detailed view of the data, one can select an angular calibration step from the combo box, select the plot mode (raw data or processed data as a function of channel number, processed angular converted data, flat field data, or again an overview of the whole dataset).
By (right) clicking close to the axis you are able to zoom in/out, set the scale to logarithmic etc.

If the bad channel list, angular conversion file or flat field file are changed compared to the acquisition, they can be reloaded by editing the correspondent text entries and pressing enter.

In particular, the angular converted data should be checked in order to view the position of the selected peak. In this case, the plot will be zoomed to the angular region slected in the minimum and maximum angle entries. By pressing fit, the fit of the peak in the selected angular range will be shown (see figure 4). It is useful to check that it works properly in several positions such that then the sequential fitting on all steps can give good results.

To automatically fit all positions simply press Proceed to Modules Calibration and wait until all steps are fitted. This can take sometime, depending on the number of steps.

Figure 5: Window for fitting the angular calibration parameters of a module.
\includegraphics[width=\textwidth]{angleFit.eps}

In the module calibration window (see figure 5), you will be able to fit the channel number to encoder position curve to estimate the three angular calibration parameters for each module.
The entries show the angular calibration parameters used for approximate angular conversion in the previous step of the calibration. These can be edited and will be used as start parameters for the fit. By clicking on the check box next to the parameters, the selected parameter will be set and fixed during the fit. Often the center is used as a fix parameter.
It is possible to navigate between modules by using the Previous and Next module buttons. To refit the current module (e.g. after changing one of the parameters) simply re-click on the module number.

After fitting all modules you can click on the Write Angular Calibration button, select the file name to write to and save the calibration angulat calibration data. Please note that the offset of module 0 will always be 0 and the other values will be rescaled to its value. Therefore the global offset of the steup will always need to be specified for a proper angular conversion unless the home of the encoder will not be redifined.


next up previous
Next: Setup calibration files Up: Angular calibration wizard manual Previous: Data acquisition
Thattil Dhanya 2019-04-08