I. INTRODUCTION
Digital pulse shaping algorithm is a main contents of digital spectrometer. They are injected to realize pulse shaping in field programmable gate array (FPGA). Trapezoidal pulse, with its rise time being equal to the fall time, provides a near optimum signal-to-noise ratio (SNR). The flat top of trapezoidal pulse can be flexibly set to adapt different measurement conditions. Therefore, trapezoidal pulse shaping algorithm is widely applied to improve SNR, throughout and energy resolution.
The theory of trapezoidal pulse shaping has been well developed and published. Radeka designed a trapezoidal filter based on a gated filter system, which achieved good resolution with large germanium detectors at high counting rates and higher energies [1]. Jordanov et al. developed the recursive algorithm of trapezoidal pulse shaping by using a convolution method [2, 3]. The algorithm based on convolution method made trapezoidal pulse shaping possible by digital means. Stein et al. used moving window deconvolution technique to realize trapezoidal and triangular shaping in digital signal processor (DSP) [4]. In addition, a real time digital pulse shaper, which was synthesized by a concave and a convex pulse shapes, was also implemented in programmable logic [5]. Also, z transform method was described to obtain the recursive algorithm of trapezoidal pulse shaping by Cosimo Imperiale [6]. Some simulations of the algorithm based on z transform method were discussed [7-10]. Recently, Trapezoidal shaper was employed in digital spectrometer for ballistic deficit correction, neutron-gamma discrimination and pile up correction [11, 12]. Furthermore, typical shapers, including triangular, trapezoidal and cusp-like ones, were generated in a new adaptive digital shaper which enabled automatic adjustment of coefficients for shaping an input signal [13]. However, when the input signal is associated with noise, the baseline drift of trapezoidal pulse appears. It is especially obvious in the process of consecutive pulses. In this paper, we propose two methods to remove the baseline drift. The feasibility and accuracy of the methods are verified by simulations and experiments. The results show that the methods can remove the baseline drift in trapezoidal pulse shaping.
II. TRAPEZOIDAL PULSE SHAPING
The trapezoidal pulse shaping algorithm was raised by z transform method [6]. As shown in Fig. 1, a trapezoidal pulse can be directly synthesized by Eq. (1):
-201505/1001-8042-26-05-011/alternativeImage/1001-8042-26-05-011-F001.jpg)
where, v1(t)=(Vmax/ta)·tu(t), v2(t)=-v1(t-ta)u(t-ta), v3(t)=-v1(t-tb)u(t-tb), and v4(t)=v1(t-tc)u(t-tc); ta is the rise time of trapezoidal pulse, tb-ta is the duration of flat top, tc is the total width of pulse, and Vmax is the height.
Equation (1) can be described as Eq. (2) according to z transform
where, na=ta/Ts, nb=tb/Ts, nc=tc/Ts, and Ts is the sampling time of ADC. The input signal is defined as
where A is the height and τ is the time constant. The function of the input signal in z transform notation is
where
then
Applying inverse z transform, we have the time domain output of vo:
The trapezoidal pulse shaping is implemented by Eq. (7). It is suitable for processing ideal input signal without noise. Generally, the input signal is superimposed by Gaussian white noise. An input signal with SNR=30 dB is simulated by Eq. (3) with A=2000 and τ=100. The result of trapezoidal pulse shaping with na=150, nb=300, nc=450, Ts=1 is shown in Fig. 2. The baseline drift of trapezoidal pulse appears when the input signal is associated with Gaussian white noise. The simulations results indicate that the lower SNR, the more serious baseline drift will be.
-201505/1001-8042-26-05-011/alternativeImage/1001-8042-26-05-011-F002.jpg)
III. SIMULATIONS AND EXPERIMENTAL TESTS
A. Convergence conditions
Figure 2 shows that the algorithm based on z transform method is not convergent. To remove the baseline drift, a new method based on convergence analysis is used. Letting y[n]=vo[n] and x[n]=vi[n], Eq. (7) can be written as
where
The recursive equations of Eq. (8) are as follows:
An equation only about y[n], y[n-1], y[1], y[0] and X[n] is acquired by accumulating the equations above
The general formula of y[n] is
Assuming that y[0]=y[1]=0, one can simplify Eq. (9) into Eq. (10):
vi[n] is an equal ratio progression, with an equal ratio of q=e-1/τ. It can be proved that X[n] is also an equal ratio progression and the equal ratio is q. Equation (10) is expressed as
Let y[n]=X[2]+Y, where
where C= X[2]/(1-q), and then
q<1 as τ > 1. So, y[n] can be convergent when Y=0. It can be seen from Eqs. (8) and (12) that Y can be set to 0 by setting x[1] to 0. Figure 3 illustrates the result of trapezoidal pulse shaping with vi[1]=0, with the same input signal as Fig. 2. Output 1 is used as a contrast. Output 2 is the trapezoidal pulse with the first input data being 0. Therefore, the new method can remove the baseline drift resulting from trapezoidal pulse shaping.
-201505/1001-8042-26-05-011/alternativeImage/1001-8042-26-05-011-F003.jpg)
B. Noise suppression
The baseline drift of trapezoidal pulse is caused by noise accumulation. Filtering the original signal before shaping is another way of removing the baseline drift. Digital S-K filter performs well in signal processing with amplitude filtering and frequency filtering factors [14]. The true height of filtered signal can be obtained by adjusting amplitude of the filtering factor properly. The algorithm of digital S-K filter is written as
where x[n] is the discrete input signal, y[n] is the output signal, k is the frequency filtering factor and a is the amplitude filtering factor. The original signal in Fig. 2 is filtered by the digital S-K filter, and output of the filter is processed by calling Eq. (7) recursively. The baseline drift of trapezoidal pulse is removed with k=5, a=1.15, as shown in Fig. 4.
-201505/1001-8042-26-05-011/alternativeImage/1001-8042-26-05-011-F004.jpg)
Differential operation can also attenuate the noise. Equation (6) can be rewritten as
Assuming V(z) = Vi(z)/(1-1/z)2, an improved recursive algorithm of trapezoidal pulse shaping is obtained:
Equation (15) is the improved recursive algorithm of trapezoidal pulse shaping without baseline drift [10]. Trapezoidal pulse can be implemented by calling Eq. (15). Figure 5 shows that the improved algorithm can remove the baseline drift in Fig. 2.
-201505/1001-8042-26-05-011/alternativeImage/1001-8042-26-05-011-F005.jpg)
C. Measured pulses shaping
In order to verify feasibility of the methods, pulses tests were carried out. The time constant of pulses is 3.2 μs, detected by silicon drift diode (SDD) detector and digitized by ADC at 20 MSPS, with Ts=50 ns and τ=3.2 μs according to Eq. (7). A trapezoidal pulse with ta=4 μs, tb=4 μs and tc=8 μs corresponding to na=80, nb=80 and nc=160 is implemented by Eqs. (7) and (15). The experimental tests of different methods are given in Fig. 6.
-201505/1001-8042-26-05-011/alternativeImage/1001-8042-26-05-011-F006.jpg)
The results indicate that both the new method and the improved recursive algorithm can remove the baseline drift in trapezoidal pulse shaping. For the purpose of signal filtering, digital S-K filter can also be used in trapezoidal pulse shaping to remove baseline drift. However, it is complex to realize digital S-K filter in FPGA. Besides, it is also difficult to select the values of k and a. Therefore, the new method and the improved recursive algorithm are recommended in practical applications. The correlation between the new method and the improved recursive algorithm is shown in Fig. 7. It indicates that the improved method is suitable for trapezoidal pulse shaping without baseline drift.
-201505/1001-8042-26-05-011/alternativeImage/1001-8042-26-05-011-F007.jpg)
IV. CONCLUSION
In this paper, the recursive algorithm of trapezoidal pulse shaping is derived by z transform method and the approaches to baseline drift removal are discussed. Setting the first input data to 0 and digital S-K filter are used to remove the baseline drift due to the accumulation of noise. The results of experimental tests demonstrate that the methods can remove the baseline drift existing in trapezoidal pulse shaping. A comparison between the new method and the improved recursive algorithm is also carried out. It shows that the new method has a good linear relationship with the improved recursive algorithm. The new method is recommended for real time trapezoidal pulse shaping.
Trapezoidal filtering of signals from large germanium detectors at high rates
. Nucl Instrum Methods, 1972, 99: 525-539. DOI: 10.1016/0029-554X(72)90666-0Digital synthesis of pulse shapes in real time for high resolution radiation spectroscopy
. Nucl Instrum Meth A, 1994, 345: 337-345. DOI: 10.1016/0168-9002(94)91011-1Digital techniques for real-time pulse shaping in radiation measurements
. Nucl Instrum Meth A, 1994, 353: 261-264. DOI: 10.1016/0168-9002(94)91652-7X-ray detectors with digitized preamplifiers
. Nucl Instrum Meth B, 1996, 113: 141-145. DOI: 10.1016/0168-583X(95)01417-9Real time digital pulse shaper with variable weighting function
. Nucl Instrum Meth A, 2003, 505: 347-351. DOI: 10.1016/S0168-9002(03)01094-5On nuclear spectrometry pulse digital shaping and processing
. Measurement, 2001, 30: 49-73. DOI: 10.1016/S0263-2241(00)00057-9Trapezoidal shaping algorithm for digital multi-channel pulse height analysis
. J Tsinghua Univ (Science and Technology), 2005, 45: 810-812. (in Chinese) DOI: 10.3321/j.issn:1000-0054.2005.06.025On the study of digital nuclear spectrum system. Ph.D. Thesis
,Matlab-based researching method of trapezoidal shaping filter
. J Sichuan Univ (Natural Science Edition), 2007, 44: 111-114. (in Chinese) DOI: 10.3969/j.issn.0490-6756.2007.01.024Research on the nuclide identification algorithm and digital spectra acquisition system. Ph.D. Thesis
,Digital pulse processing: new possibilities in nuclear spectroscopy
. Appl Radiat Isotopes, 2000, 53: 913-920. DOI: 10.1016/S0969-8043(00)00247-5Neutron-gamma discrimination based on bipolar trapezoidal pulse shaping using FPGAs in NE213
. Nucl Instrum Meth A, 2012, 694: 113-118. DOI: 10.1016/j.nima.2012.08.025Implementation of real-time adaptive digital shaping for nuclear spectroscopy
. Nucl Instrum Meth A, 2014, 735: 297-303. DOI: 10.1016/j.nima.2013.09.063Improvement of digital S-K filter and its application in signal processing
. Nucl Sci Tech, 2013, 24: 060401. DOI: 10.13538/j.1001-8042/nst.2013.06.020