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

Subsections

Data analysis

The data analysis consists in fitting the S-curves obtained from the datasets acquired as above and then performing a linear fit between the energy values and the inflection points.

Software

The software used for the energy 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:

> ./energyCalibrationWizard

To add anew energy write the energy value and select (or digit) the name of the .encal file corresponding to that energy (see figure 7).
The software assumes that the data files (.raw) and the .encal file are in the same directory. Press Preview and a 2D color plot will be displayed, showing the channel numbers on the X-axis, the threshold on the Y-axis, and the number of counts as a color scale. By (right) clicking close to the axis you are able to zoom in/out, set the scale to logarithmic etc.
If the plot corresponds to your expectations press Add to list. The energy value will be shown in the combo box on top and labels will display the settings of the detector, the number of modules, the number of channels per module and the modules serial numbers.

Add then all the other energies to the calibration always by editing the energy value and .encal file name, pressing preview and add to list.
If the settings, number of modules or serial numbers do not match, you will not be llowed to add the energy.
By using the selected energy actions you can navigate in the combo box with list of energies, view the plots and eventually remove the ones you don't want to use in your calibration.
Once you have uploaded at least 2 energies, you will be allowed to proceed to module calibration.

Figure 7: Window to add energies to the calibration.
\includegraphics[width=\textwidth]{addEnergy.eps}

In the module calibration window (see figure 8), you are still able to look at the calibration summary, and eventually return to the previous windown by pressing Back to energy setup.
The canvas will show the plot of the S-curves relative to the median of the selected module, fitted with equation 1 and the linear fit between the energy values and the fitted inflection points. Normally the points lie on a straight line (although often not perfect), therefore it should be simple to spot if there are problems in the fitting of some of the data.
If Manual save is unclicked, the calibration files will be saved locally, with the extension automatically generated by using the modules serial numbers, every time a linear fit is performed (i.e. if you mess up wiht the linear fit you overwrite a previous good file!). If you click the checkbox, you need to save the calibration by pressing Write to file for each module once you are happy with the fit.

To change the Y scale of the plot, edit the Counts entry. After clicking of the energy button (eventually twice) the maximum of the histogram will be set to three times the value.

To re-fit one energy with modified range or start parameters, you should press the central button with the energy value once the energy is selected. The text color tells you which curve you are referring to.

You should set the range of the fit. In particular the maximum should be limited in order to avoid to enter the noise range (and can be pretty different for the various modules).
Normally the data are acquired by collecting holes from the detector and therefore the Invert axis check button should be ckecked. Uncheck it in case your detector collects electrons (e.g. CdTe, Si n in p)

You can change the start values of the parameters of the fits by editing the number eneries. The label nearby will show you the actual value of the fitted parameters.
By checking the checkboxes you can fix the values to the ones you specify.
Normally it can be useful to fix the pedestal and pedestal slope to 0, unless you have a lot of 3rd armnonics contribution, primary beam background or similar.
Changing the starting value of the inflection point or of the number of counts can often help the fit to converge.
Normally it is not very useful to change the starting value for the noise or charge sharing slope.

The button Finished will be enebled only once the calibration files have been generated for all modules.

Figure 8: Window to calibrate the modules.
\includegraphics[width=\textwidth]{calibrateModule.eps}


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