The 2D deconvolution is in the prototype in the class =uBooNEData2DDeconvolutionFDS=.
The functionality is described below with this notation:
- $Axy$
- A matrix (complex valued in general) of coordinates $x$ vs $y$. The first $x$ is in wire/channel or its Fourier periodicity space, the second $y$ is in time or frequency space.
- $Axz = FFTy→{z}(Axy)$
- A Fourier transform that takes coordinate $y$ to its dual $z$. The transfer operates in a row-wise or column-wise manner. Note, changing index labels implies a new matrix value! See definition of indices below.
- $F_x$
- a filter function operating independently (row-wise or column-wise) on a single coordinate $x$.
Each plane is considered independently and so the notation is free of any plane indices. Wrapped wires are not currently considered.
Values are measured in discrete space (eg. wire pitch distance) and time (eg ticks). Fourier transforms on both of these coordinates and in both directions are taken. These labels are used:
- $d$
- channel, wire number or wire region number giving a proxy for the discrete distance along the wire pitch direction. For channels it runs $0 ≤ d < Nwires$ where for typical planes, $Nwires$ is two or three thousand. For wire regions it runs $0 ≤ d ≤ 2 Nregions$ to give $± Nregions$ on either side of the wire-of-interest plus one around the wire-of-interest.
- $p$
- the “periodicity number” or spatial frequency number corresponding to the Fourier transform over the distance measures $d$.
- $t$
- the discrete sample time or tick. The $t$ spans a readout which is typically a few ms sampled at 0.5 μs giving about ten thousand indices.
- $f$
- the temporal frequency number corresponding to the Fourier transform over the time measure $t$.
An element of the “field response matrix” $Rdt$ describes the
instantaneous induced current on a given wire-of-interest at the time
The Fourier transform is applied along the time coordinate independently for each wire region response of in $Rdt$ to form $Rdf = FFTt→{f}(Rdt)$.
A second Fourier transform is applied across the spatial (wire region)
coordinate of the field response matrix giving $Rpf =
FFTd→{p}(Rdf)$. Here,
The full detector “frame” readout is represented by a matrix $Mdt$
(for a given plane) which represents the measured waveform in channel
The Fourier transform is applied to each measured waveform to produce $Mdf = FFTt→{f}(Mdt)$.
A second Fourier transform is applied across the distance coordinate to produce the “periodicity” (spatial frequencies) of the (temporal) frequency spectra. This is $Mpf = FFTd→{p}(Mdf)$.
Two functions operate as filters, one in the spatial frequency
(periodicity) and one in the temporal frequency domains. Both are of
the form of an falling exponential of some power of the coordinate. The spatial “wire
filter” is
The deconvolution is performed in spatial and temporal frequency space as the ratio of the measured current and the response and a product of a filter which is composed of function of the wire dimension and one of the time dimension. $Spf = \frac{Mpf}{Rpf}\frac{F_p}{NwiresNticks}$.
The signal is transformed from spatial frequency (periodicity) to distance $Sdf = FFTp→{d}(Spf)$.
The signal is finally transformed back to time after a frequency filter is applied. $Sdt = FFTf→{t}(Sdf F_f)$.
Finally the baseline is restored.
The full 2D deconvolution in the above notation can be condensed to:
- signal
- $Sdt = FFTf→{t}(FFTp→{d}(FFTd→{p}(FFTt→{f}(Mdt)) * Fpf))$
- filter
- $Fpf = f_p * f_f / (Nwire Ntick * Rpf)$
With all variables being $Nwire × Ntick$ matrices:
- $Mdt$
- measured ADC and
- $Fpf$
- a filter in wire periodicity vs frequency space composed of:
- $f_x$
- a frequency space filter in either the time or wire dimension.
- $Rpf$
- total response, a product of:
- $Rfield,pf$
- field response and
- $Relec,pf$
- electronics response.