Skip to content

Latest commit

 

History

History
118 lines (81 loc) · 5.15 KB

File metadata and controls

118 lines (81 loc) · 5.15 KB

Deconvolution in Wire Cell

2D

The 2D deconvolution is in the prototype in the class =uBooNEData2DDeconvolutionFDS=.

Notation

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$.

Field Response as Distance vs. Time

An element of the “field response matrix” $Rdt$ describes the instantaneous induced current on a given wire-of-interest at the time $t$ due to a drifting charge distributed uniformly across the region near a wire which is $d$ wires from the wire-of-interest. These are calculated on a finer time scale and are later down-sampled and extended to match the digitization sample time and extent.

Field Response as Distance vs Frequency

The Fourier transform is applied along the time coordinate independently for each wire region response of in $Rdt$ to form $Rdf = FFTt→{f}(Rdt)$.

Field Response as Periodicity vs Frequency

A second Fourier transform is applied across the spatial (wire region) coordinate of the field response matrix giving $Rpf = FFTd→{p}(Rdf)$. Here, $d$ or $p$ run across the $2 Nregions+1$ indices

Measured Current as Distance vs. Time

The full detector “frame” readout is represented by a matrix $Mdt$ (for a given plane) which represents the measured waveform in channel $d$ over digitization time ticks $t$.

Measured Current as Distance vs. Frequency

The Fourier transform is applied to each measured waveform to produce $Mdf = FFTt→{f}(Mdt)$.

Measured Current as Periodicity vs. Frequency

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)$.

Spatial and Temporal filter functions

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 $F_p$ and the temporal frequency filter is $F_f$.

Signal as Periodicity vs. Frequency with Filter

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}$.

Signal as Distance vs. Frequency

The signal is transformed from spatial frequency (periodicity) to distance $Sdf = FFTp→{d}(Spf)$.

Signal as Distance vs. Time with Filter

The signal is finally transformed back to time after a frequency filter is applied. $Sdt = FFTf→{t}(Sdf F_f)$.

Baseline restoration

Finally the baseline is restored.

Implementation

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.