-
Notifications
You must be signed in to change notification settings - Fork 5
/
tpc-signal-extraction.tex
437 lines (390 loc) · 23.5 KB
/
tpc-signal-extraction.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{TPC Charge Extraction}
\label{sec:tpc-signal-calibration}
In Section~\ref{sec:tpc_signal_formation}, the signal formation in a single-phase LAr TPC
is described. This section describes the procedure of the TPC
charge extraction. As shown in Figure~\ref{fig:signal_formation}, the
goal of TPC charge extraction is to recover the number of ionized
electrons from the digitized TPC signal.
%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Deconvolution Technique}\label{sec:decon}
\label{sec:decon-tech}
Deconvolution is a mathematical technique to extract the \textit{underlying true signal}
$S(t)$ from a \textit{measured signal} $M(t_0)$. The deconvolution technique
was introduced to LArTPC signal processing in LarSoft in the context of ArgoNEUT data analysis~\cite{bruce}.
The goal of the deconvolution is
to ``remove'' the field and electronics response functions from the measured
signal to recover the underlying true number of ionizing electrons.~\footnote{Strictly speaking,
the deconvolution replaces the bipolar response function with a unipolar smearing
function.} This technique has the advantage of being robust and fast and is an
essential step in the overall charge extraction process.
The measured signal is modeled as a convolution integral over the true
signal $S(t)$ and a given detector \textit{response function} $R(t,t_0)$ which gives the
instantaneous portion of the measured signal at some time $t_0$ due to
an element of the true signal at time $t$.
\begin{equation}\label{eq:decon_1}
M(t_0) = \int_{-\infty}^{\infty} R(t,t_0) \cdot S(t) \cdot dt.
\end{equation}
If the detector response function only depends on the relative time
difference between $t$ and $t_0$, the above equation can be solved by
doing a Fourier transformation on both sides of the equation:
\begin{equation}
M(\omega) = R(\omega) \cdot S(\omega),
\end{equation}
where $\omega$ is the frequency. In this case, we can derive the signal in the
frequency domain by taking the ratio of the measured signal and the assumed
response function:
\begin{equation}\label{eq:decon_2}
S(\omega) = \frac{M(\omega)}{R(\omega)}.
\end{equation}
The true underlying signal in the time domain can then be obtained by applying the
inverse Fourier transformation from the frequency domain.
The Shockley-Ramo response function $R(\omega)$ does not address
contributions to the measured signal which are due to real world
sources of electrical \textit{noise} from thermal and unwanted transmitting
sources or due to the approximation in the digitization.
Such contributions to $M(\omega)$ will not be ``divided out'' by the deconvolution.
Worse, because the response function becomes small (see Section~\ref{sec:decon-2D-ind}) %below)
at low
frequencies for the induction planes and at high frequencies for all
planes, the noise components in these frequencies will become
enhanced by the deconvolution.
To address the problem of noise, a \textit{filter function} $F(\omega)$ is
introduced. Its purpose is to attenuate the problematic noise. The
addition of this function can be considered an augmentation to the
response function, which may in any case be chosen freely as it is a model.
The two functions are kept distinct for clarity in the notation here.
Equation~\ref{eq:decon_2} is then updated to become
\begin{equation}\label{eq:decon_filt}
S(\omega) = \frac{M(\omega)}{R(\omega)} \cdot F(\omega).
\end{equation}
With a suitable noise model, an improved estimator for the signal
$S(t)$ in the time domain can then be found by applying an inverse Fourier
transform to $S(\omega)$. Essentially, the deconvolution replaces the field and
electronics response function with the filter response function. The
advantage of this procedure shows up on the induction plane where the irregular bipolar
field response function is replaced by a regular unipolar response function through
the inclusion of the software filter.
%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Importance of 2D Deconvolution for Induction Planes}
\label{sec:decon-2D-ind}
The 1D deconvolution procedure described in Section~\ref{sec:decon-tech} %the previous section
works well in dealing with signal in the collection wire plane, but is not
optimal when applied to signals in the induction wire planes.
As described in Section~\ref{sec:tpc_signal_formation}, the induction plane wire
signal receives contributions not only from ionization charge
passing by the wire of interest, but also from ionization charge drifting in
nearby wire boundaries. In addition, within the boundary of the wire of
interest, the value of the field response function varies appreciably
so at small scales the location of the drifting charge relative to the wire
is important. In this case, Equation~\ref{eq:decon_1} would naturally expand to
\begin{equation}\label{eq:decon_2d_1}
M_i(t_0) = \int_{-\infty}^{\infty} \left( R_0 \cdot (t-t_0) \cdot S_i(t) +
R_1 \cdot (t-t_0) \cdot S_{i+1} (t) + ...\right) \cdot dt,
\end{equation}
where $M_i$ represents the measured signal from wire $i$. $S_i$ and
$S_{i+1}$ represents the true signal in the boundaries of wire $i$ and
its next neighbor, respectively.
$R_0$ represents the average response function for an ionization
charge passing through the region for the wire of interest.
Similarly, $R_1$ represents the average response function for an
ionization charge drifting through the next adjacent wire region. One can
easily expand this definition to some number of neighbors by introducing terms up
to $R_{n-1}$.
If one applies a Fourier transformation on both sides of Equation~\ref{eq:decon_2d_1},
we have:
\begin{equation}\label{eq:decon_2d_2}
M_i(\omega) = R_0(\omega) \cdot S_i(\omega) + R_1(\omega) \cdot S_{i+1} (\omega) + ...,
\end{equation}
which can be written in a matrix notation as:
\begin{equation}
\begin{pmatrix}
M_1(\omega)\\
M_2(\omega)\\
\vdots\\
M_{n-1}(\omega)\\
M_{n}(\omega)
\end{pmatrix}
=
\begin{pmatrix}
R_0(\omega) & R_1(\omega) & \ldots & R_{n-2}(\omega) & R_{n-1}(\omega) \\
R_1(\omega) & R_0(\omega) & \ldots & R_{n-3}(\omega) & R_{n-2}(\omega) \\
\vdots & \vdots & \ddots & \vdots & \vdots \\
R_{n-2}(\omega) & R_{n-3}(\omega) & \ldots & R_0(\omega) & R_1(\omega) \\
R_{n-1}(\omega) & R_{n-2}(\omega) & \ldots & R_1(\omega) & R_0(\omega) \\
\end{pmatrix}
\cdot
\begin{pmatrix}
S_1(\omega)\\
S_2(\omega)\\
\vdots\\
S_{n-1}(\omega)\\
S_{n}(\omega)
\end{pmatrix}
\label{eq:matrix_expansion}
\end{equation}
Assuming the response functions (i.e., the matrix $R$) are known, the
problem converts into deducing the vector of $S$ with the measured signal $M$.
%
This can be achieved by inverting the matrix $R$. In practice and away
from plane edges the matrix $R$ is taken to be symmetric and its
inversion can again be achieved by FFT.
%
As this expands the 1D deconvolution (with respect to the time axis)
into a 2D deconvolution (with respect to both the time and wire
axes), the filter function must be expanded in a similar fashion to cover
both time and wire dimensions.
A comment on the limitation (or approximation)
assumed in the 2D deconvolution is needed. As shown in Equation~\ref{eq:decon_2d_1}, the
average response functions are used in describing the measured signal. These
ignore the detailed position dependence of the response function.
This approximation ignores the fine-grained but clear position
dependence in the calculated weighting fields.
However, since the signal from any given wire can only be measured as
a function of time, there is no additional information to be used to
resolve the ionization electron distributions within a wire boundary.
This technique can in principle be improved to include the position-dependent
response once the local ionization charge distribution is roughly reconstructed.
%%%%%%%%%%%%%%%%%%%%%%%%
%\fixme{sections 3.4.3 - 3.4.7 would benefit from a more focused description; as written it is a bit of a laundry list}
\subsection{Additional Challenges in Deconvolution}
The 1D and 2D deconvolution procedures provide a robust method to extract the ionization
electrons for the collection and induction planes, respectively.
%
While working well for the collection plane, the procedure is still not optimal
for the induction plane due to the nature of the induction plane signal.
Figure~\ref{fig:induction_field} shows the field response as simulated with Garfield~\cite{garfield}
for induction and collection wire planes and point ionization
electrons. While the field response for the collection wire plane is unipolar, the field
response for the induction wire plane is bipolar.
%
\begin{cdrfigure}[Simulated field response functions in the time and frequency domains]{induction_field}{(left) Simulated field response functions for induction (black and red) and
collection (blue) wires are shown in the time domain. (right) The same are shown in
the frequency domain.}
\includegraphics[width=0.95\textwidth]{induction_field_response.png}
\end{cdrfigure}
%
The early, negative half corresponds to the ionization electron moving
towards the wire plane and the late, positive half corresponds
to the ionization electron moving away.
%
The integration of the field response function is close to zero
as the bias wire voltages are applied such that that none of the ionization electrons are
collected. The right panel of Figure~\ref{fig:induction_field} shows the
frequency components of the field response.
%
Since an induction plane field response has a bipolar shape in the time domain
there is a corresponding suppression at low frequency in the frequency
domain. At zero frequency, the frequency component essentially gives the
integration of field response function over time and thus should be near
zero (again, because no charge is collected).
The suppression of the induction field response at low frequency is problematic for the
proposed deconvolution procedure. First, the measured signal contains the electronic noise,
which usually increases at low frequency (the so-called 1/f noise). Therefore, as shown in
Equation~\eqref{eq:decon_filt}, the low-frequency noise will be amplified in the deconvolution
process, since the denominator (i.e., the induction field response) is generally small at
low frequency. This can be seen clearly in Figure~\ref{fig:decon_example}, where the low-frequency noise
is significant. The large low-frequency noise would lead to large uncertainty
in the charge estimation, and needs to be dealt with.
\begin{cdrfigure}[Example of deconvoluted spectrum for the induction plane (simulation)]{decon_example}{Example of deconvoluted spectrum for the induction plane (simulation).}
\includegraphics[width=0.6\textwidth]{decon_example.png}
\end{cdrfigure}
In Equation~\eqref{eq:decon_filt}, a frequency-domain filter function is introduced
to suppress the numerical instability caused by the presence of noise. One can imagine using % to use
this software filter to suppress the electronic noise at low frequency.
However, such a filter is not acceptable due to the large distortion which it introduces to the signal.
To illustrate this point, recall that the software filter is effectively a smearing function.
Figure~\ref{fig:low_f_filter} shows an illustrative true signal (left), its convolution
with a low-frequency filter (middle), and the low-frequency filter itself (right).
It is obvious that the signal is strongly distorted due to the application of the
low-frequency software filter.
\begin{cdrfigure}[Impact of the low-frequency filter]{low_f_filter}{The impact of the low-frequency filter (right). The unit of the $x$-axis
is MHz. The true signal and the convoluted signal are shown in the left and
middle panels, respectively. A time tick corresponds to 0.5 $\mu s$.}
\includegraphics[width=0.95\textwidth]{low_freq.png}
\end{cdrfigure}
In order to deal with this problem, we turn to using two techniques in the time domain:
\textit{region of interest (ROI)} and \textit{adaptive baseline (AB)}. The ROI technique~\cite{roi}
was proposed in the context of reducing data size and speeding up the
deconvolution process. At the same time, the ROI technique can %also
be used to
suppress the low-frequency noise. In order to recognize this point, consider
a time window with $N$ time ticks. For ProtoDUNE-SP, this would be a window of
$N\times0.5\mu\mbox{s}$. The highest frequency that can be resolved with such
sampling would be 1~MHz. The first discrete frequency above zero would be $2/N$ MHz,
and no result within the ROI can be sensitive to any noise components below this
frequency. Therefore, if we can identify the signal region and create a ROI to
cover the signal, we can naturally suppress the low-frequency noises.
The adaptive baseline (AB) technique~\cite{ab} was introduced
in the context of
dealing with the ASIC saturation observed in MicroBooNE. The AB is essentially a
local baseline calculated in a given a ROI. However, instead of a simple average of
the baseline at the start and end points of a ROI, a linear interpolation is used to
correct the baseline. Given the two constraints (start and end points of the ROI),
the linear interpolation with two degrees of freedom is the best that one can achieve
to remove bias in the baseline. \\
%
In Section~\ref{sec:decon-frf-calc} %the following,
we describe various techniques
used in the charge extraction.
%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Calculation of Field Response Function}
\label{sec:decon-frf-calc}
The field response is calculated with Garfield~\cite{garfield} in a 22-cm (along the
field direction) $\times$ 30-cm (along the wire plane direction) region in 2D.
In the drift direction, the grid plane is labeled as G, the two induction %planes
wire planes are labeled U and V, and the collection plane is W. The spacing between the wire
planes is 4.76~mm. The bias voltages of-665 V, -370 V, 0 V, and +820 V for the G, U, V, and
W planes, respectively, are configured according the operating conditions that ensure near 100\%
transmission of ionization electrons through the first two induction planes.
A total of 101 wires of 150 $\mu$m diameter and with a pitch of 4.667 (4.79 for collection) mm make up
each wire plane.
A ground plane is placed 1~cm behind the W plane. The nominal drift
field is uniform and has a magnitude of 500~V/cm. The electron drift velocity as a function of
electric field is taken from measurements~\cite{Li:2015rqa,lar_property}
instead of using the default velocity table contained in~\cite{garfield}. % Garfield.
The electron diffusion is turned off in the simulation.
For an
electron drift that starts from an arbitrary position within the ROI, the field response can
be calculated for each individual wire in the form of induction currents
(U and V planes) or collection currents (W plane) as a function of time.
\begin{cdrfigure}[Description of the Garfield 2D simulation of field response
functions]{garfield_2d}{Illustration of calculation of field response funciton with Garfield 2D simulation.
Top left panel shows the simulation for a track traveling parallel to the wire plane. Top right panel
shows the simulation for a single electron. The orange lines represent the track trajectory of ionization
electrons. See text for detailed description.}
\includegraphics[width=0.95\textwidth]{Garfield_simu.png}
\end{cdrfigure}
%\fixme{Figure~\ref{fig:garfield_2d} needs a more descriptive caption}
Figure~\ref{fig:garfield_2d} shows the configuration used in the Garfield 2D simulation.
The Garfield-simulated response functions are shown in Figure~\ref{fig:overall_response}.
The average response function for single electrons within a wire region
is calculated for the closest wire $R_0$, next adjacent wire $R_1$, and so on. The U and
V plane response functions are shown in the middle and right panel of
Figure~\ref{fig:overall_response}, respectively. For induction wire planes, these response
functions are reasonably balanced, as expected.
\begin{cdrfigure}[Overall response functions]{overall_response}{The overall response functions, i.e., %which is
the convolution of the
electronics response function (14 mV/fC gain and 2 $\mu$s shaping time)
and the field response. The response functions for the closest wire $R_0$ as defined in
Eq.~\eqref{eq:matrix_expansion}, the next adajacent wire $R_1$, and so on, are plotted.
}
\includegraphics[width=0.95\textwidth]{dune_field_res.pdf}
\end{cdrfigure}
%\fixme{This needs more description in the caption.}
%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Choice of Software Filter}
Two types of filters are selected and implemented. The first, inspired by the Wiener filter,
is modified to not suppress low-frequency components. The second is the
Gaussian filter. While the first one is optimized independently for each wire plane to produce a
high signal-to-noise ratio, the second one is optimized for the three planes as a group % and same to all the planes
to correctly estimate the charge which is independently measured on each plane. %of the three planes.
This latter is important if all three planes are used for energy measurement
and is critical for proper application of the Wire-Cell imaging technique~\cite{wire-cell}.
In this section, we describe the selection process that resulted in %choice on
these software filters.
The standard Wiener noise filter~\cite{wiener} is constructed from the expected
signal $S(\omega)$ and noise $N(\omega)$ frequency spectra:
\begin{equation}
F(\omega) = \frac{S^2(\omega)}{S^2(\omega) + N^2(\omega)}.
\end{equation}
With this construction, the Wiener filter is expected to achieve the best signal-to-noise ratio.
However, applying the Wiener filter to TPC signal processing is problematic.
First, in a LArTPC, the TPC signal $S(\omega)$ varies substantially
depending on the exact nature of the event topology.
Second, the electronic noise spectrum is a function of the time window
over which it is observed. A longer time window allows for observation
of more low-frequency noise components.
Third, the induction wire signal spectrum is small at low frequency
and so would be its Wiener filter output. As discussed previously,
a software filter with low-frequency suppression leads to large distortions
of the signal and is thus not ideal.
The functional form of the software filter is chosen as:
\begin{equation}
F(\omega) =
\begin{cases}
e^{- \frac{1}{2} \cdot \left( \frac{\omega}{a} \right)^b} & \omega >0 \\
0 & \omega = 0, \\
\end{cases}
\end{equation}
where $a$ and $b$ are two free parameters. Note, $b=2$ is basically the Gaussian filter.
The filter is explicitly zero at $\omega = 0$ in order to remove the DC component in the
deconvoluted signal. This removes information about the baseline; a new baseline is
calculated and restored for the waveform after deconvolution. The above functional form
of the filter has another advantageous property:
\begin{equation}
lim_{\omega \rightarrow 0} F(\omega) = 1.
\end{equation}
which means the integral of the smearing function is unity, which does not introduce any
extra factor in the overall normalization. The free parameters $a$ and $b$ in the above
form are determined by matching the tail of the Wiener filter at its high-frequency side.
An example of a software filter is shown in Figure~\ref{fig:soft_filter_1}.
\begin{cdrfigure}[Wiener-inspired filter and Gaussian filter used in the 2D deconvolution]{soft_filter_1}{
The Wiener-inspired filter and Gaussian filter used in the 2D deconvolution are shown on
the left (right) panel for the time (frequency) domain. A bin in the time domain plot represents 0.5 $\mu s$.}
\includegraphics[width=0.8\textwidth]{filter_1.png}
\end{cdrfigure}
%\fixme{axes of \ref{fig:soft_filter_1} need to be labeled - description in caption is not enough.}
Beside the high-frequency software filter described above, there is also a low-frequency
software filter which is used to select ROIs (discussed in Section~\ref{sec:decon-roi-selection}.) %the next section).
The functional form of the low-frequency software filter is chosen to be
\begin{equation}
F(\omega) = 1- e^{-\frac{1}{2}\cdot \left( \frac{\omega}{c} \right)^2}.
\end{equation}
%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{ROI Selection}
\label{sec:decon-roi-selection}
The region of interest (ROI) is an important technique for limiting the contribution of low-frequency
electronic noise. The ROI selection was based on the deconvoluted results.
Two rounds of deconvolution are performed:
\begin{itemize}
\item 2D deconvolution with the balanced Garfield-simulated field response function with a low-frequency filter (``2D deconvolution with low-frequency filter'').
\item 2D deconvolution with the balanced Garfield-simulated field response function without a low-frequency filter (``2D deconvolution'').
\end{itemize}
The first one is used to select ROIs, and the results from the second deconvolution are then
used to obtain the final deconvoluted results.
%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Metrics in Evaluating TPC Signal Processing}
In order to evaluate the TPC signal processing, which includes both the noise filtering and
the charge extraction, two robust metrics can be used. % for evaluation purpose.
They are:
\begin{itemize}
\item Equivalent Noise Charge (ENC): \\
ENC is basically proportional to the pedestal RMS in terms of ADC, and is a direct
measure of the noise level in %the unit of
electrons. It can be used to compare the
noise levels from different experiments.
\item Deconvoluted Noise Charge after the TPC charge extraction (DNC): \\
The goal of the TPC charge extraction process is to recover the number of ionization
electrons from the measured TPC signal. With the same procedure, the electronic noise
will also be converted. %The unit of these noise is again
This is again measured in electrons, %which
and so can be compared with
the expected ionization electrons from energetic charged particles.
The DNC depends on the ENC and on the frequency content of the noise spectrum. It also depends
on the response function used for deconvolution, which is the primary reason
why the induction plane DNC is much higher than the collection plane DNC. Furthermore, since
we have to rely on ROI and AB techniques to reduce the noise level for the induction plane, the
DNC also depends on the time-window length of the ROI.
\end{itemize}
Understanding the ENC and DNC for the current-generation of experiments and for the expected
performance of future experiments is relevant for automated event reconstruction in LArTPCs.
\begin{cdrfigure}[Residual noise vs wire length]{rms3}{The noise level in terms of the RMS value and ENC
is plotted with respect to the wire length observed in MicroBooNE.
This plot is taken from~\cite{noise_filter}.}
\includegraphics[width=0.75\textwidth]{RMSvsLength_after.pdf}
\end{cdrfigure}
%\fixme{incorrect figure ?!}
The ENC in MicroBooNE has been reported in~\cite{noise_filter} and plotted
in Figure~\ref{fig:rms3}. The calculation of the DNC depends on the
drifted-charge extraction procedure. More specifically, it depends on the field
response, the noise level (ENC and the frequency content), and the length of the ROI.
Figure~\ref{fig:DNC} shows the calculated DNC as a function of the time-window length
for the second induction (V) plane, which is expected to have the smallest field
response function and thus the largest DNC.
\begin{cdrfigure}[Calculation of DNC vs time window length for second induction (V) plane]{DNC}{Calculation of DNC with respect to the time window length for second induction (V) plane.
The ENC used in this simulation is 500 electrons given the induction wire length in protoDUNE.
The red line shows the expected signal size for a minimal ionizing particle (MIP)
traveling 3.2 mm.}
\includegraphics[width=0.75\textwidth]{DNC.png}
\end{cdrfigure}