1 Introduction
X-ray absorption fine structure (XAFS) spectroscopy[1] is one of the most powerful tools for depicting the local geometric and electronic structures of matter. The XAFS spectra of low-content samples are usually measured in fluorescence mode. As the common filter device for XAFS experiments, Soller slits[2,3,4,5,6] are used together with 32-element Ge solid-state fluorescence detector[7] in the BL14W1 beamline at Shanghai Synchrotron Radiation Facility (SSRF)[8].
Soller slits are designed with duplicating blades that absorb all or most of the incident fluorescence that does not follow the blades’ light paths. According to research by Brian Bewer, in order to obtain the maximum efficiency of Soller slits[9,10,11], the fluorescence excitation point should be placed at the position of the focal point. It is difficult to obtain high accuracy by manual focusing operations, in which case, we need to develop a system that can implement automatic focusing operations for Soller slits.
This work establishes the relationship between the position of the fluorescence excitation point and the fluorescence intensity distribution, and we provide a method for the automatic focusing of Soller slits: first, calculate the position of the excitation point by fitting the fluorescence intensity distribution, and second, move the excitation point to the focal point in order to achieve the maximum efficiency of the Soller slits. This method has proven to be feasible at the BL14W1 beamline of the SSRF.
2 Theoretical model
2.1 Structure of Soller slits
A view of Soller slits used in the BL14W1 beamline is shown in Fig. 1a. The slits are composed of two groups of blades that consist of 36 optical paths. These paths are focused on the focal point of the Soller slits, and the outlets of these paths correspond to the 32 detection units on the detector section. Fig. 1b shows the two-dimensional design diagram of the Soller slits. The blades are made of aluminum, and each blade has a thickness of 1mm. The Soller slits have a fixed focal length of 100 mm, a height of 50 mm, an entrance width of 30 mm and an outlet width of 60 mm. Each detection unit has a diameter of 8 mm, and the distance between two detection units’ center is 10 mm. Therefore, the angle between two blades on one side is 5.7, 5.6 and 5.4 degrees from near to far.
-201605/1001-8042-27-05-012/alternativeImage/1001-8042-27-05-012-F001.jpg)
2.2 Use of Soller slits in BL14W1 beamline
The BL14W1 beamline is based on a 38-pole wiggler with a maximum magnetic field of 1.2 T. The maximum photon flux at the sample position is about 5 × 1012 photons/s at 10 keV. Currently, BL14W1 is operated in two modes: 1) focusing mode, in which the X-ray goes through the focusing mirror and other optical devices in order to reach the sample position with a spot size of < 0.3 mm × 0.3 mm; 2) unfocused mode, in which the X-ray reaches the sample position with a maximum spot size of 40 mm × 4 mm[8]. We recommend using the method provided in this paper under the focusing mode in which the influence of the spot size is small. Fig. 1c shows a schematic diagram of the XAFS experiment with a 32-element fluorescence detector. The Soller slits are placed between the filter and the detector. The sample is placed on a computer-controlled sample stage that performs vertical and horizontal translations with micrometer precision. The excitation point should be placed at the position of the focal point once focusing is accomplished. This movement could be implemented with horizontal translations of the sample stage and vertical, horizontal translations of the detector.
2.3 Model of fluorescence intensity distribution
Fig. 2 shows the two-dimensional structure and the three-dimensional structure of the Soller slits. The fluorescence excitation point is F’, the focal point is F, the number of blades is given by N, the entrance width is D, the detector section width is B, the slit height is H, and the focal length is L.
-201605/1001-8042-27-05-012/alternativeImage/1001-8042-27-05-012-F002.jpg)
Set the central point of the detector section as the origin of the coordinate, the detector plane as the X axis, the focal axis as the Z axis, and build a rectangular coordinate system. The endpoints of blades can be established as follows:
where n is the blade number, dn is the entrance coordinate, and bn is the coordinate of the outlet on the detector section. Assuming that the coordinates of the excitation points are (x0, z0), the linear equations of the excitation point F’ (x0, z0) to the entrance end points (dn, H) are formed as follows:
The intersection of the line and the detector section is obtained thusly:
The detector section covered by passed photons is considered as the effective region. Because the fluorescence has a probability distribution in the 4π angle range and the acceptance angle of each channel is small, the fluorescence intensity on the two-dimensional plane can be approximated by the length of the effective region in each channel.
As shown in Fig. 2, (a) if xn≥bn and xn+1≥bn+1 (Fig. 2a), then the effective region of the No. n channel on the detector section is [xn, bn+1]. (b) If xn≤bn and xn+1≤bn+1 (Fig. 2b), then the effective region of the No. n channel is [bn, xn+1]. (c) If xn≤bn and xn+1≥bn+1 (Fig. 2c), then the effective region of the No. n channel is [bn, bn+1]. If z0>L, then there are only two cases, (a) and (b).
According to Formula (2) and (4), the effective region width (fn) in different cases is obtained using the following methods:
Case (a):
Case (b):
Case (c):
In cases (a) and (b), fn is inversely proportional to z0. It is easier to receive the fluorescence signal when z0 is larger than L. Therefore, by setting z0>L as the initial condition, we only need to consider cases (a) and (b).
According to Eqs. (5) and (6), the intensity of each channel on the two-dimensional plane has a n=c1 symmetrical distribution. The analytic formulas can be expressed as follows:
Figure 2d shows the three-dimensional structure of the Soller slits. The detector plane is set as plane XY, the X axis is parallel to the incident beam direction, the Y axis is perpendicular to the beam direction, and the Z axis is parallel to the focal axis. Three-dimensional fluorescence intensity distribution is the product of the two-dimensional distribution in the x direction and that in the y direction:
Above, nx and ny are the numbers of the light paths in two directions, which range from 1 to N-1. Considering the fluorescence excitation probability, the distribution in each dimension should be multiplied by a constant coefficient, Q. Therefore, the intensity distribution in the three-dimensional space should be the following:
2.4 Calculation of excitation point coordinates
The fluorescence intensity distribution coefficient k, c1, c2 and c3 in Eq. (13) are functions of excitation point coordinates (x0, y0, z0). Q, k, c1, c2 and c3 can be calculated by fitting the actual distribution of fluorescence intensity. Q and k cannot be solved separately, we can only get their products. Bring Qk, c1, c2 and Qc3 into Eq.(9) and (11):
Then z0 can be calculated:
According to Eq. (10), x0 and y0 can be calculated:
3 Design of automatic focusing system
In this design use MATLAB to complete the fluorescence intensity distribution fitting and excitation point coordinate calculations. LabVIEW and EPICS were applied to build a user interface and control scripts on Windows and Linux separately.
3.1 Fluorescence signal acquisition
An X-ray Instrumentation Associates (XIA) DXP-XMAP acquisition board is used in the BL14W1 beamline to obtain the detector signal. The board combines computer-controlled analog, digital noise reduction and precision multi-channel analysis to produce high quality pulse-height spectra from preamplified solid-state X-ray detector signals[12]. LabVIEW obtains the fluorescence counts through API functions provided by XIA[13]. EPICS[14] obtains the fluorescence counts through the DXP module[15,16]. The fluorescence intensity distribution information is then sent to a fitting script under the MATLAB Runtime[17].
3.2 Data preprocessing
Fluorescence intensity distribution data need to be preprocessed before fitting. This includes a characteristic peak selection, excluding abnormal data, initial value setting, and symbol processing.
Characteristic peak selection involves selecting a characteristic fluorescence peak from the multiple fluorescence peaks as the fitting input data. This requires that the characteristic peak reflects the fluorescence intensity distribution of the remaining fluorescence that passes through the Soller slits in the detector. Generally, an isolated and high intensity fluorescence peak is selected as a characteristic peak and used in data fitting.
The process of excluding abnormal data involves removing the data with no signal or abnormal counts.
The initial value setting greatly influences the time-consumption of the fitting, and an initial value close to the actual one should be chosen in order to accelerate the convergence of the function. This design uses the following method to carry out the initial value setting.
Set counts of the channel placed on (nx, ny) as Count (nx, ny), if the highest point (nmx, nmy) of the fluorescence intensity distribution is located in the detection zone, then the initial value (InitValue) can be set as follows:
where kmx (kmy)is the slope k of the fluorescence intensity distribution in y (x) direction whose value depends on the position of the highest point (nmx, nmy) and is generated by the fitting function polyfit[18].
Symbol processing involves replacing the absolute value in Formula (13) by multiplying a parameter s with a value of ±1. According to Formula (9), k is always positive. Therefore, the highest point (nmx, nmy) is considered as the demarcation point to set the s. When nx < nmx, s is set as 1; otherwise, it is set as -1. The same consideration applies to the Y axis. Formula (13) can be rewritten as follows:
3.3 Least squares fitting
This design uses the MATLAB nonlinear least squares fitting function (lsqcurvefit) to fit the fluorescence intensity distribution[19]. Its structure is shown in Eq. (24).
where initvalue is the initial value vector of the fitting parameter as determined by formulas (19)–(22). xdata and ydata are the locations of each channel and the corresponding fluorescence counts, respectively; lb and ub are the lower bounds and upper bounds, which generally assigned a null value; options are the fitting options, including the main algorithm, the stop conditions and other parameters; and fun is the fitting function. The expression of the function fun is shown in Eq. (25).
where a1, a2, a3 and a4 are parameter vectors to be fitted corresponding to Qk, c1, c2 and Qc3; x1, x2, x3 and x4 are vectors for fitting that correspond to nx, ny, sx and sy. After setting the proper convergence conditions, we can get a set of optimal Qk, c1, c2 and Qc3 that satisfies the stopping condition.
3.4 Special case
This method cannot be used to fit the data if the highest point (nmx, nmy) of the fluorescence intensity distribution falls out of the detection zone. According to the fluorescence intensity distribution model, the fitting function cannot converge in this case. Therefore, the procedure needs to provide approximate coordinates of the excitation point to move (nmx, nmy) into the detection zone and then invoke the fitting process. The methods are as follows:
Estimate the distance between the fluorescence excitation point and the detector plane in order to calculate the value of k and c3 according to Formula (9) and (11). The fitting function can converge to stop conditions if k and c3 have been calculated. Bring the data into the fitting script in order to obtain an approximate value of c1 and c2. Obtain the approximate excitation point coordinates (x0, y0) according to Formula (16) and (17). Then move the excitation point to (0, 0, z0a), and make a precise fitting.
3.5 Adjustment of excitation point position
After the fluorescence intensity distribution coefficients have been calculated, the coordinates of the excitation point can be obtained. Fig. 3a shows the schematic diagram of the XAFS experimental setup using a multi-element fluorescence detector. The rectangular coordinate system is based on the central point of the detector section. The direction and position of the incident beam will not change and the distance between the Soller slits and the detector is fixed. Therefore, the coordinates of the excitation point (x0, y0, z0) can only be changed by adjusting the sample and detector positions.
-201605/1001-8042-27-05-012/alternativeImage/1001-8042-27-05-012-F003.jpg)
For the X-axis, which is parallel to the X-ray direction, the value of x0 can be adjusted by moving the sample in the X-ray direction. The distance of the sample stage moving in the X direction is equal to the change value of x0.
For the Y-axis, which is perpendicular to the X-axis on the detector section plane, the value of y0 can be adjusted by moving the vertical height of the detector. Because the height of the incident beam is almost not changed, the value of y0 will not change after the initial adjustment.
For the Z-axis, which is parallel to the focal axis of Soller slits, the value of z0 can be adjusted by moving the detector in the direction of the focal axis. A change in the Z-axis has less of an effect on the Soller slits’ efficiency than a change on the X-axis, so z0 is adjusted after adjusting x0.
3.6 Flow chart and Graphical user interface
The automatic focusing operation of the system is completed using the EPICS/LabVIEW[20]. To ensure focusing accuracy, this procedure should be repeated several times. The program’s flow chart is shown in Fig. 3b, and the Graphical User Interface is shown in Fig. 3c. This source code can be downloaded at https://github.com/ltaskpt/Soller-slits.
4 Results and discussion
4.1 Accuracy of coordinate calculation
Fig. 4a shows the contrast between the fitting results in three-dimensional space (multicolor) and the actual fluorescence intensity distribution (blue). This figure suggests that the fitting results accurately reflect the fluorescence distribution. Fig. 4b and Fig.4c show the goodness of fit between the actual X coordinate of the excitation point and the calculated X coordinate under different Z conditions. The excitation point takes 1mm as the step size when moving along the X-axis. These results indicate that the fitting results are linear with the actual data and are highly accurate near the focal point.
-201605/1001-8042-27-05-012/alternativeImage/1001-8042-27-05-012-F004.jpg)
4.2 XAFS experiments
Fig. 5a and Fig. 5b show the X-ray fluorescence spectra of copper sulfate solution under different conditions: (a) before the focusing procedure (not focused), and (b) after the procedure (nearly focused). This experiment was conducted under the incident beam-focusing mode. A filter of Ni was placed between the sample and the Soller slits. The Kα fluorescence line of Cu (8046.3 eV) was set as the target fluorescence peak, which is covered by blue. This demonstrates that, with focused Soller slits, the target fluorescence intensity is greatly increased compared to the condition when Soller slits are not well focused. Fig. 5c and Fig. 5d show the distribution of the target fluorescence using the focusing system. After the focusing operation, the fluorescence intensity of each unit is greatly improved, and the distribution is more uniform. Because of the small differences between the solid angle of each optical path, the fluorescence counts should be nearly the same in every detection unit when the excitation point is located at the focal point. This suggests that the focusing system can accurately realize automatic focusing for the excitation point.
-201605/1001-8042-27-05-012/alternativeImage/1001-8042-27-05-012-F005.jpg)
Fig. 6 shows three XAFS spectra at Mn K-edge (6539 eV) for a solid sample of MnCl2 well mixed with LiF. The content of Mn is about ten times that of the ppm level. This experiment was conducted under the incident beam-focusing mode. These three spectra were obtained under the conditions of focused Soller slits, a -2mm shift on the X-axis, and a +3mm shift on the X-axis, separately. Let the signal consist of N0 fluorescent and Nb background counts per second. The signal to noise ratio, S/N, is given by Formula (26), where A = Nb/N0 and τ is the time of measurement[3].
-201605/1001-8042-27-05-012/alternativeImage/1001-8042-27-05-012-F006.jpg)
Compared to the focused condition, the two unfocused conditions cause fewer decreases in the background (near 37% at -2mm shift and 64% at +3mm shift), and a larger decrease of signal (near 43% at -2mm shift and 68% at +3mm shift) at the same time. Therefore, focused Soller slits will obtain maximum efficiency for increasing the signal to noise ratio, and this work can be realized accurately using the auto focusing system.
5 Conclusion
The use of focusing Soller slits will be beneficial in obtaining maximum detector efficiency, which can improve the signal to noise ratio in fluorescence XAFS experiments. An automatic focusing method for Soller slits used with a multi-element fluorescence detector was introduced. In this method, a relation model between the fluorescence intensity distribution and the coordinates of the fluorescence excitation points was established. According to this relation model, the actual coordinates of the fluorescence excitation points were deduced using MATLAB scripts. The focusing operation was implemented with movements of the sample stage and detector. Non-solvable cases were well handled through the estimating procedure. Experimentation has shown that this method obtains high accuracy and saves time during the focusing process.
Fundamentals of XAFS
. Rev. Mineral. Geochem. 78, 33-74(2014). doi: 10.2138/rmg.2014.78.2Use of Soller slits to remove reference foil fluorescence from transmission spectra
. J. Synchrotron Radiat. 18, 527-529 (2011). doi: 10.1107/S090904951100344XX-ray filter assembly for fluorescence measurements of X-ray absorption fine structure
. Rev. Sci. Instrum. 12, 1579-11582 (1979). doi: 10.1063/1.1135763Extended X-ray-absorption fine-structure technique. II. Experimental practice and selected results
. Phys. Rev. B 11, 4825-4835 (1975). doi: 10.1103/PhysRevB.11.4825Extended X-ray-absorption fine-structure technique. III. Determination of physical parameters
. Phys. Rev. B 11, 4836-4846 (1975). doi: 10.1103/PhysRevB.11.4836A new precision X-ray spectrometer
. Phys. Rev. 24, 158-167 (1924). doi: 10.1103/PhysRev.24.158Germanium Array Detectors
. http://www.canberra.com/products/detectors/germanium-detectors.aspThe XAFS beamline of SSRF
. Nucl. Sci. Tech. 26,050102 (2015). doi: 10.13538/j.1001-8042/nst.26.050102Soller slit design and characteristics
. J. Synchrotron Radiat. 19, 185-190 (2012). doi: 10.1107/S0909049511052319Effect of Soller slits on X-ray intensity in a modern diffractometer
. Rev. Sci. Instrum. 36, 1593-1598 (1965). doi: 10.1063/1.1719399An inherent limitation of soller (multiple) slits
. Rev. Sci. Instrum. 4, 590-592 (1933). doi: 10.1063/1.1749007Digital X-ray Processor User’s Manual
(2008), http://www.xia.com/Manuals/XMAP_User_Manual.pdf. AccessedHandel API
(2002), http://www.xia.com/Manuals/Handel_API_012902_branch2.PDF. AccessedEPICS-based control system for a radiation therapy machine
,SynApps: dxp
(2015), http://cars.uchicago.edu/software/epics/dxp.html. AccessedStreamDevice home page
(2014), http://epics.web.psi.ch/software/streamdevice/. AccessedAbout the MATLAB Runtime
(2012), http://www.mathworks.com/help/compiler/about-the-matlab-runtime.html. AccessedPolyfit
(2010), http://www.mathworks.com/help/matlab/ref/polyfit.html. AccessedLsqcurvefit
(2010), http://cn.mathworks.com/help/optim/ug/lsqcurvefit.html. AccessedControl System Studio Guide
(2015), http://cs-studio.sourceforge.net/docbook. Accessed