1 Introduction
Exponential pulses are essential output of nuclear detectors, which need pulse shaping to improve energy resolution by reducing electronic noises, pulse pile-up and ballistic deficit [1-3]. Traditional methods of pulse shaping include quasi- Gaussian shaper, triangular shaper, trapezoidal shaper and so on [4-6]. From the theory of optimal pulse shaping, the ideal infinite cusp-like shape gives the best signal-to-noise ratio (SNR), but it is not practical for a hardware system to form such a pulse shape, because theoretically this needs an infinite time duration [1,7]. However, the cusp-like shape of finite time duration, which is good enough to achieve much better filtering effect than trapezoidal pulse shaping, can be implemented in the real-time hardware with low-scale logic units only [5,8]. In this paper, we study the synthesis of cusp-like and flat- topped cusp-like pulses for high energy resolution applications. This algorithm can effectively substitute the complex analog pulse shaping circuits and improve the system performances on both pulse throughput and energy resolution.
2 Pulse sharper systems
Traditional analog pulse shaping is carried out through the analog circuits, as shown in Fig.1 (a). The peak detect and hold circuits are used to capture the maximum amplitudes of the pulse signals [9,10]. Then, these amplitudes are converted into corresponding channels of energy spectrum by the low-speed ADC. Fig.1 (b) shows the method of digital pulse shaping. The original nuclear pulses are digitized by the high-speed ADC. The outputs of pulse shaping are obtained in real-time by FPGA’s powerful parallel processing capacity [11,12]. Digital pulse processing method is used for cusp-like shaper. Digital pulse shaping is better than analog pulse shaping in reducing influences of both electronic noises and temperature [13]. In addition, digital integrator reduces the demands of both ADC's differential non-linearity and integral non-linearity.
-201707/1001-8042-28-07-014/alternativeImage/1001-8042-28-07-014-F001.jpg)
3 Cusp-like algorithm
3.1 Traditional algorithm
Outputted by a typical radiation detector, a nuclear pulse is a bi-exponential signal with a sharp rising-edge and a relatively slow falling-edge. It is fitted frequently by functions of the uni-exponential model and the bi-exponential model [14]. In this paper, the pulse signal is characterized by a uni-exponential,.
where A is the pulse amplitude, τ is the time constant of the pulse falling-edge. As shown in Fig. 2, the traditional pulse shaping obtains the cusp-like shape through the convolution of the original pulse and the impulse response function of the cusp-like shaper. In fact, this shaper works as a digital finite impulse response (FIR) filter [6,11,15].
-201707/1001-8042-28-07-014/alternativeImage/1001-8042-28-07-014-F002.jpg)
The discrete equation of convolution is:
where, ak are the coefficients of the filter, and N = τs/Ts is the number of coefficients with τs being the finite time of y[n] and Ts the sampling period. This convolution needs too many multiplication and memory units to be practical.
3.2 Recursive algorithm
We use the algorithm of cusp-like pulse shaping based on the recursive difference equations in time domain. This recursive algorithm is suitable for real-time implementation in hardware system [16]. As shown in Fig.3, the decayed tails of original pulse signal s[n] is removed to obtain the impulse signal δ[n] through deconvolution. Then, δ[n] is synthesized to the pulse sequence p[n] through the operations of both delay and reverse. A symmetrical T-shaped pulse q[n] is obtained by the integration of p[n]. The continuous integration of q[n] can obtain a bipolar triangular pulse r[n]. Lastly, the cusp-like shape y[n] can be obtained by the integration of r[n].
-201707/1001-8042-28-07-014/alternativeImage/1001-8042-28-07-014-F003.jpg)
Current pulses of a nuclear detector are not ideal as they have a certain lasting time. The partial electric charges are dissipated in the charge collection. Ballistic deficit and charge trapping effects can noticeably reduce energy resolution of spectrometers when shapers producing short pulses with sharp peaks are used. It has been demonstrated that the effects can be reduced by using flat-topped shapes [3,5]. Therefore, it is necessary to design a cusp-like shaper with the finite flat-top. As long as the width of flat-top is greater than the lasting time of the current pulse, the flat-topped cusp-like shaper can effectively overcome the ballistic deficit. Equations (3–7) are recursive difference equations of cusp-like and flat-topped cusp-like pulse shaping.
where, d = exp(Ts/τ), with Ts being the ADC sampling period; A is the number of points on the rising edge, and B is the number of points on the flat-top. When B is not equal to 0, it is a flat-topped cusp-like shaper.
4 Simulation
Simulink is the simulation environment of MATLAB, which can be applied for algorithm development and numerical calculation [17]. The data of original signals form FPGA are loaded into MATLAB's workspace, then a from workspace module is used to import the data into Simulink. The logic diagram in the Simulink is drawn according to the recursive difference equations, as shown in Fig.4. In the difference equations, the exponential pulse is converted into a unit impulse. This processing must use an accurate shaping time constant τ to guarantee no undershoot and trails in pulse shaping. The flat-top of cusp-like shaper plays a crucial role in selecting an optimal shaping time constant τ by judging whether the flat-top is parallel to the baseline [6,16].
-201707/1001-8042-28-07-014/alternativeImage/1001-8042-28-07-014-F004.jpg)
Fig.5 shows an ideal exponential pulse of 2 μs decayed time constant and the corresponding flat-topped cusp-like pulse shaping with varied shaping time constants τ. A large τ causes the baseline undershoot, and the corresponding flat-top will tilt towards the lower right; while a small τ makes the baseline lifting, and the corresponding flat-top will tilt towards the upper right; hence their affection of the baseline and peak extractions. Therefore, by judging the obliquity of between flat-top and baseline, the optimal shaping time constant can be effectively chosen to obtain the optimal cusp-like shape.
-201707/1001-8042-28-07-014/alternativeImage/1001-8042-28-07-014-F005.jpg)
5 Experiments and Performances
5.1 Implementation in hardware system
The low power dissipation AD9224 (12-Bit and 40 MSPS, ADI) and low-cost EP4CE6 series FPGA (ALTERA) are used in this paper, which are the good trade-off between the cost and performances. For convenience in high-speed ADC sampling, the original pulse signals from nuclear detectors are adjusted by the signal conditioning circuits. Then, the FPGA is used to implement the digital pulse processing algorithm by its parallel operation. The modules of pulse height analyzer (PHA) in FPGA consist of data buffers, cusp-like shaper, pile-up rejection, baseline restorer, amplitude extraction, external interface and so on [12,18]. In addition, a parameter module, which is a register array, stores the parameters of other modules. The parameters of pulse shaping can be modified by changing the registers. The logic diagram of cusp-like pulse shaping algorithm in FPGA is shown in Fig. 6.
-201707/1001-8042-28-07-014/alternativeImage/1001-8042-28-07-014-F006.jpg)
The parameter d in Eq. (4) is of the constant float-point type, but the float-point operations in FPGA should be avoided, for saving the operation speed and data memory volume. This parameter can be converted into a fraction, so that the float-point operations can turn into integer multiplication and integer division.
In the experiment, a NaI(Tl) crystal (ϕ76 mm ×76 mm) coupled with a PMT (76 mm CR160-01, Hamamatsu) is used as the front-end detector, and a 137Cs source is placed at 10 cm away from the detector.
5.2 Ballistic deficit correction
To verify whether the cusp-like shaper in FPGA hardware is consistent with the theoretical design, SignalTap logic analyzer is used to analyze the real-time data in FPGA memory through a JTAG hardware debugger. Fig. 7 shows an original pulse signal, the corresponding cusp-like pulse shaping (A=120, B=0) and the flat-topped cusp-like pulse shaping (A=100, B=40). Due to influence of the lasting time of current pulse, the rising edge of original pulse is not fast enough, hence the ballistic deficit in the corresponding cusp-like pulse shaping, and the gradual height increases till the maximum at completion of the charges collection. The flat-topped cusp-like shaper can eliminate the influence of amplitude deficit. The average of flat-top can be set as the peak value, which can reduce the influence of noise. However, the overlarge flat-top width would increase the probability of pulse pile-up, so the trade-off of between ballistic deficit and pulse pile-up should be carefully considered.
-201707/1001-8042-28-07-014/alternativeImage/1001-8042-28-07-014-F007.jpg)
5.3 Baseline drift restoration
Figures 8(a) and 8(b) show the original pulse signals and the baseline drifts over the time. Since it performs differential operations, the recursive process of pulse shaping amplifies the noises from the original pulse signals, so that the baseline drifts [18]. Thus, all the differential operations must be placed at the final stage by changing the order of transfer functions in the linear system. Fig.8 (c) shows the improved baseline fluctuates in a small range of a long-term test. Besides, the large numeric value can be obtained through the integration operations, which effectively reduce the round-off error of division operations in the back-stage.
-201707/1001-8042-28-07-014/alternativeImage/1001-8042-28-07-014-F008.jpg)
5.4 Pile-up rejection
Under high count rates, pulse pile-up is serious. The pile-up rejection method plays an important role in distinguishing the dead-time signals whose peak intervals are less than half of the shaping time constant. The fast pulse shaping can generate an ultra-narrow pulse signal by using a very small shaping time constant, which can be used for pile-up rejection. As the ultra-narrow pulse signal position is the same as the rise edge of its corresponding original pulse signal, a threshold can be set to trigger this ultra-narrow pulse signal. Fig.9 shows the pulse pile-up of three signals, the cusp-like pulse shaping (A=120, B=0, τ = 6 μs) and the ultra-narrow pulse signals of the fast pulse shaping (A=6, B=0). It can be seen that the time intervals of the firstly two ultra-narrow pulses are greater than 3 μs, so the first cusp-like shape can be used for peak extraction. However, the last two ultra-narrow pulses are gapped by less than 3 μs, so they could be discarded.
-201707/1001-8042-28-07-014/alternativeImage/1001-8042-28-07-014-F009.jpg)
5.5 Energy spectrum measurement
Energy spectra of the 137Cs source measured by traditional analog quasi-Gaussian shaper and the digital cusp-like shaper are shown in Fig.10. The FWHM of photoelectric peak at 662 keV is 7.2% and 6.6% for the analog quasi-Gaussian shaper and the digital cusp-like shaper, respectively. The analog pulse shaper has no immunity to ballistic deficit so that its energy spectrum of photoelectric peak at 662 keV has serious asymmetry tails. Besides, as it is susceptible to noises, a higher pulse triggering threshold is set to reduce the error counts in low-energy region, and thus the X-ray peak of 137Ba, which is the decay product of 137Cs, cannot be detected. However, the digital flat-topped cusp-like shaper overcomes the ballistic deficit, presents the clear Compton scattering spectrum, detects the X-ray peak of 137Ba, and has good linearity.
-201707/1001-8042-28-07-014/alternativeImage/1001-8042-28-07-014-F010.jpg)
6 Conclusion
In this work, we studied a digital cusp-like pulse shaping algorithm which used recursive difference equations. In actual hardware system, the flat-topped cusp-like shaper can be used to effectively select the optimal shaping time constant and eliminate the influences of the ballistic deficit. Besides, the baseline drift can be restored by adjusting the order of transfer functions, and the fast pulse shaping method can be used for pile-up rejection. Finally, this algorithm is implemented in FPGA. Compared with traditional analog shaper, digital cusp-like shaper has great improvement in energy resolution. Hence, it can effective substitutes the traditional analog pulse shaper and be used for high-precision nuclear spectrometry systems.
Optimum signal-processing for pulse-amplitude spectrometry in the presence of high-rate effects and noise
. IEEE Trans. Nucl. Sci. 15, 455-470(1968).doi: 10.1109/TNS.1968.4324970On nuclear spectrometry pulses digital shaping and processing
. Measurement, 30,49-73(2001). doi: 10.1016/S0263-2241(00)00057-9Simultaneous ballistic deficit immunity and resilience to parallel noise sources: A new pulse shaping technique
. IEEE Trans. Nucl. Sci. 48, 450-454 (2001).doi: 10.1109/23.940098Real time digital pulse shaper with variable weighting function
. Nucl. Instrum. Methods Phys. Res. A. 505, 347-351 (2003). doi: 10.1016/S0168-9002(03)01094-5Digital synthesis of pulse shapes in real time for high resolution radiation spectroscopy
. Nucl. Instrum. Methods Phys. Res. A, 345, 337-345 (1994).doi: 10.1016/0168-9002(94)91011-1Implementation of a real-time adaptive digital shaping for nuclear spectroscopy
. Nucl. Instrum. Methods Phys. Res. A, 735, 297-303 (2014).doi: 10.1016/j.nima.2013.09.063Implementation of a truncated cusp filter for real-time digital pulse processing in nuclear spectrometry
. Nucl. Instrum. Methods Phys. Res. A, 694, 101-106 (2012). doi: 10.1016/j.nima.2012.07.042Analog CMOS peak detect and hold circuits. Part 1. Analysis of the classical configuration
. Nucl. Instrum. Methods Phys. Res. A, 484, 533-543 (2002). doi: 10.1016/S0168-9002(01)02059-9Noise distribution of a peak track and hold circuit
. Nucl. Instrum. Methods Phys. Res. A, 696, 129-135 (2012). doi: 10.1016/j.nima.2012.08.048Development of FPGA-based digital signal processing system for radiation spectroscopy
. Radiat. Meas., 48, 12-17 (2013). doi: 10.1016/j.radmeas.2012.11.018Applications of digital pulse processing in nuclear spectroscopy
. Nucl. Instrum. Methods Phys. Res. B, 204, 649-659 (2003). doi: 10.1016/S0168-583X(02)02146-8Exponential signal synthesis in digital pulse processing
. Nucl. Instrum. Methods Phys. Res. A, 670, 18-24 (2012).doi: 10.1016/j.nima.2011.12.042Real-time evolvable pulse shaper for radiation measurements
. Nucl. Instrum. Methods Phys. Res. A, 727, 73-83 (2013). doi: 10.1016/j.nima.2013.05.164System simulation of digital pulse spectrometer
. Nucl. Instrum. Methods Phys. Res. A, 555, 231-235 (2005). doi: 10.1016/j.nima.2005.09.027High-speed FPGA-based pulse-height analyzer for high resolution X-ray spectroscopy
. IEEE Trans. Nucl. Sci. 52, 854-860 (2005). doi: 10.1109/TNS.2005.852699