Next: Data acquisition Up: Energy calibration wizard manual Previous: Energy calibration wizard manual

# Introduction

The choice of the level of the comparator threshold plays a very important role in counting systems since it influences the efficiency of the detector as well as its spatial resolution (for details see the paper Bergamaschi, A. et al. (2010). J. Synchrotron Rad. 17, 653-668).

Single-photon-counting detectors are sensitive to single photons and the only limitation on the fluctuations of the number of counts is given by the Poisson-like statistics of the X-ray quanta. The digitized signal does not carry any information concerning the energy of the X-rays and all photons with an energy larger than the threshold are counted as one bit. This means that the choice of the correct comparator threshold level is critical in order to obtain good-quality data.
Figure 1 shows the expected number of counts as a function of the threshold energy for monochromatic X-rays of energy . This is often denominated S-curve and can be interpreted as the integral of the signal spectrum between the threshold level and infinity. The dashed curve represents the behavior of an ideal counting system: nothing is counted for thresholds larger than the photon energy and all the X-rays are counted for thresholds lower than . The thick solid line represents the physical curve which also takes into account the electronic noise and the charge sharing between channels.

The intrinsic noise on the electronic signal is defined by the Equivalent Noise Charge (). The describes noise in terms of the charge at the detector input needed to create the same output at the end of the analog chain and is normally expressed in electrons. For silicon sensors, it can be converted into energy units by considering 1 =3.6 eV. The value of the normally depends on the shaping settings of the analog chain and increases with shorter shaping times. The resulting electronic signal spectrum is then given by a convolution between the radiation spectrum and the noise i.e., a Gaussian of standard deviation . The S-curve for a monochromatic radiation beam is well described by a Gaussian cumulative distribution with an additional increase at low threshold due to the baseline noise, as shown by the solid thin line.

Moreover, when a photon is absorbed in the region between two strips of the sensor, the generated charge is partially collected by the two nearest electronic channels. For this reason the physical S-curve is not flat but can be modeled by a decreasing straight line. The number of shared photons is given by the difference between the number of counts and the number of X-rays whose charge is completely collected by the strip (shown by the dotted line).

The number of counts in the physical case is equal to that in the ideal case for a threshold set at half the photon energy. This defines the optimal threshold level .
The detector response as a function of the threshold energy is given by the sum of the noise counts and the counts originating from photons :

| (1)

where is the fraction of photons which produce a charge cloud which is shared between neighboring strips ().
By assuming a noise of Gaussian type, and considering its bandwidth limited by the shaping time , the number of noise counts in the acquisition time can be approximated as:

| (2)

The choice of the comparator threshold level influences not only the counting efficiency and noise performances, but also the spatial resolution and the counting statistics of the detector. If the threshold is set at values higher than the ideal value , a fraction of the photons absorbed in the sensor in the region between two strips is not counted thus reducing the detector efficiency but improving its spatial resolution (narrower strip size). On the other hand, if the threshold is set at values lower than , part of the X-rays absorbed in the region between two strips are counted by both of them, resulting in a deterioration of the spatial resolution of the detector and of the fluctuations on the number of photons because of the increased multiplicity.

Furthermore, the threshold uniformity is particularly critical with regards to fluorescent radiation emitted by the sample under investigation. Since the emission of fluorescent light is isotropic, the data quality will be improved by setting the threshold high enough in order to discard the fluorescence background (see figure 3).
Moreover, setting the threshold too close to the energy of the fluorescent light gives rise to large fluctuations between channels in the number of counts since the threshold sits on the steepest part of the threshold scan curve for the fluorescent background. These differences cannot be corrected by using a flat-field normalization since the fluorescent component is not present in the reference image. For this reason, it is extremely important that the threshold uniformity over the whole detector is optimized. The threshold level must be set at least away from both the fluorescent energy level and the X-ray energy in order to remove the fluorescence background while efficiently count the diffracted photons.

The comparator threshold is given by a global level which can be set on a module basis and adds to a component which is individually adjustable for each channel. In order to optimize the uniformity of the detector response it is important to properly adjust the threshold for all channels.
Since both the signal amplification stages and the comparator are linear, it is necessary to calibrate the detector offset and gain in order to correctly set its comparator threshold at the desired energy :

| (3)

This is initially performed by acquiring measurements while scanning the global threshold using different X-ray energies and calculating the median of the counts at each threshold value for each module . The curves obtained for one of the detector modules at three energies are shown in figure 4. The experimental data are then fitted according to equation 1 and for each module a linear relation is found between the X-ray energy and the estimated inflection point, as shown in the inset of figure 4. The resulting offset and gain are used as a conversion factor between the threshold level and the energy.

Figure 1: Expected counts as a function of a threshold energy for a monochromatic beam of energy =12 keV. =10000 is the number of photons absorbed by the detector during the acquisition time. The dashed line represents the curve in an ideal case without electronic noise and charge sharing, the solid thin line with noise =1 keV but without charge sharing and the solid thick line is the physical case with noise and 22 % charge sharing. is the number of photons whose charge is shared between neighbouring strips ( ). The dotted line represents the number of photons whose charge is completely collected by a single strip.

Figure 2: Measured threshold scan at 12.5 keV with the three different settings. In the inset the fit of the experimental data with the expected curve as in function 1 is shown in the region of the inflection point.

Figure 3: Number of counts as a function of the threshold measured from a sample containing iron (=5.9 keV) when using X-rays of energy =12 keV. In this case, setting the threshold at , which is very close to , would give 10% counts from the fluorescense background. Therefore the threshold should be set at an intermediate level between the two energy components with a distance of at least from both and .

Differences in gain and offset are present also between individual channels within a module and therefore the use of threshold equalization techniques (trimming) using the internal 6-bit DAC is needed in order to reduce the threshold dispersion. Since both gain and offset have variations between channels, the optimal trimming should be performed as a function of the threshold energy. Please not that trimming of the channels of the detector should be performed in advanced and is extremely important for a succeful energy calibration of the detector.

All energy calibration procedures should be applied to a trimmed detector and only an improvement of the existing trimbits can be performed afterwards, since it does not significatively affect the energy calibration.

Figure 4: Median of the number of counts as a function of the threshold for X-rays of 12.5, 17.5 and 25 keV for one of the detector modules using standard settings. The solid line represents the fit of the experimental points with equation 1. In the inset the linear fit between the X-ray energy and the position of the inflection point of the curves is shown.

Next: Data acquisition Up: Energy calibration wizard manual Previous: Energy calibration wizard manual