The energy calibration consists in acquiring threshold scans using the detector at at least 2 (better 3) energies. A monochromatic beam is ideal in this procedure, but beam obtained from some fluorescent sample is also good.
Please note that the statistic is important to succesfully analyze the data. Normally the exposure time for each step should be chosen in order to achieve at least 1000 counts per step.
If this is not possible it is better to reduce the scan range or enlarge the scan step rather than acquiring data with a too low statics.
With a quick acquisition or threshold scan it is useful to define the range of the scan and the exposure time. It is important to start from a threshold high enough that (almost) all channels of the detector have a negligible number of counts and that the plateau of the S-curve is long enough to correctly estimate the number of photons.
For the acquisition ot the data you need to install the slsDetector software package (please refere to separate documentation). The use of the GUI is optional and all operations can be performed also using the text client.
In the following the command to acquire a dataset for the energy calibration with an exposure time of 1 s, and threshold scan range between 200 and 850 with a setp of 1 DAC unit.
> sls_detector_put encallog 1 #setup energy calibration > sls_detector_put exptime 1. #set exposure time to 1s > sls_detector_put scan0script threshold #setup threshold scan > sls_detector_put scan0range 200 850 1 #set scan range between 200 and 850, step of 1 > sls_detector_acquire #acquire the data > sls_detector_put encallog 0 #unset energy calibration
With the GUI you can obtain the same results by clicking on the Energy Calibration log button in the advanced tab (see figure 5) and setting up the threshold scan in the Actions tab (see figure 6). the exposure time should also be set in the measurement tab.
This procedure should be executed at at least 2 (better 3) energies.
Additional to the data files, the acquisition will produce a .encal file containing an header and, for each step of the acquisition, the threshold value and the file name.
In case you forgot to enable the encallog flag in the software, you can produce the file with the syntax as follows:
settings standard type Mythen+ nmod 12 modulenumber:0 000 modulenumber:1 111 modulenumber:2 222 modulenumber:3 333 modulenumber:4 444 modulenumber:5 555 modulenumber:6 666 modulenumber:7 777 modulenumber:8 888 modulenumber:9 999 modulenumber:10 aaa modulenumber:11 bbb 450 standard_12_4keV_S450_0 460 standard_12_4keV_S460_0 470 standard_12_4keV_S470_0 480 standard_12_4keV_S480_0 490 standard_12_4keV_S490_0 500 standard_12_4keV_S500_0 510 standard_12_4keV_S510_0 520 standard_12_4keV_S520_0 ... ...