% Created 2021-01-21 Thu 10:29
% Intended LaTeX compiler: pdflatex
\documentclass[presentation]{beamer}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{grffile}
\usepackage{longtable}
\usepackage{wrapfig}
\usepackage{rotating}
\usepackage[normalem]{ulem}
\usepackage{amsmath}
\usepackage{textcomp}
\usepackage{amssymb}
\usepackage{capt-of}
\usepackage{hyperref}
\usepackage{pdfpages}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage{xspace}
\usepackage{libertine}
\usepackage{fontawesome}
\mode<beamer>{\usetheme{Boadilla}}
\setbeamertemplate{navigation symbols}{}
\hypersetup{colorlinks}
\setbeamerfont{alerted text}{series=\bfseries}
\usetheme{default}
\author{Brett Viren and Andrea Scarpelli}
\date{\today}
\title{Wire-Cell TPC Responses, Simulation, Signal Processing and Implications for Vertical Drift Designs}
\hypersetup{
 pdfauthor={Brett Viren and Andrea Scarpelli},
 pdftitle={Wire-Cell TPC Responses, Simulation, Signal Processing and Implications for Vertical Drift Designs},
 pdfkeywords={},
 pdfsubject={},
 pdfcreator={Emacs 27.1.90 (Org mode 9.4.4)}, 
 pdflang={English}}
\begin{document}

\maketitle

\begin{frame}[label={sec:org1486b24}]{Topics}
\begin{itemize}
\item Concepts in \alert{responses} for \alert{simulation} and \alert{signal processing}.

\item Requirements and progression of LArTPC detector response models.

\item Review of performance of Wire-Cell Toolkit's implementations for wire detectors.

\item Challenges for responses for \alert{strips+holes} anodes and performance of
Wire-Cell Toolkit with 50-L detector data.
\end{itemize}
\end{frame}


\begin{frame}[label={sec:orgc88652a}]{\(\mathcal{R}\): modeling LArTPC ionization response}
For \(x \in\) ``\alert{\(det\)}'' (real detector) or ``\alert{\(sim\)}'' (detector simulation):

\begin{description}
\item[{\(\mathcal{S}_x\)}] drifted \alert{ionization charge distribution} (``signal''),
\item[{\(\mathcal{R}_x\)}] \alert{detector response} in anode to drifting electrons,
\item[{\(\mathcal{N}_x\)}] non-signal related ``\alert{noise}'',
\item[{\(\mathcal{M}_x\)}] a \alert{measurement} (eg ADC waveforms on channels).
\end{description}

Simulation is a \alert{convolution} (with \(\mathcal{R}_{det}\) or \(\mathcal{R}_{sim}\)):

\[ \mathcal{M}_x = \mathcal{N}_x + \mathcal{R}_{x} \circledast \mathcal{S}_x \]

Signal processing is (mostly) a \alert{deconvolution} with \(\mathcal{R}_{sp}\) to get \alert{reconstructed signal}:

\[ \mathcal{S}'_x = F_{sp} \circledast \mathcal{R}_{sp}^{-1} \circledast \mathcal{M}_x \]

\footnotesize
(more details in backups)
\end{frame}


\begin{frame}[label={sec:org7f568d5}]{Requirements on responses}
We then must \alert{choose} \(\mathcal{R}_{sim}\) and \(\mathcal{R}_{sp}\) and
wish to minimize the \alert{per-event difference} between reconstructed and
``true'' ionization signal in the \(sim\):

\[|\mathcal{S}'_{sim} - \mathcal{S}_{sim} |\]

and simultaneously minimize an \alert{ensemble difference} between
reconstructed signal over \alert{similar event samples} from \(det\) and \(sim\):

\[|\langle\mathcal{S}'_{det}\rangle - \langle\mathcal{S}'_{sim}\rangle |\]

This obviously implies we want:

\[\mathcal{R}_{det} \approx \mathcal{R}_{sim} \sim \mathcal{R}_{sp}\]

\footnotesize IOW, we want \(\mathcal{R}_{sim}\) as \alert{close to reality as computational power allows} and \(\mathcal{R}_{sp}\) as \alert{close to
reality tempered by our limited basis of measurement} \(\mathcal{M}\)
(ie, channel-level info).
\end{frame}



\begin{frame}[label={sec:org9ed69fc}]{Historical Progress of Response Sophistication}
\huge
\[\mathcal{R}^{1D} \to \mathcal{R}^{2D} \to \mathcal{R}^{2.5D} \xrightarrow{?} \mathcal{R}^{3D}\]

\begin{center}
\footnotesize

LArSoft \(\to\) Wire-Cell Toolkit (with wires) \(\to\) WCT (with strips+holes) \(\to\) ???
\end{center}
\end{frame}

\begin{frame}[label={sec:orgc719f57}]{1D response model: \(\mathcal{R}^{1D}(x)\)}
\begin{itemize}
\item Response depends on 1D coordinate (drift direction).
\begin{itemize}
\item Sim and SP assume current only in wire nearest to drifting electron.
\end{itemize}
\end{itemize}

Pros: 

\begin{itemize}
\item Computationally fast and algorithmically easy.

\item Still available for use in LArSoft SP and sim.

\item For sim, strongly minimizes: \(|\mathcal{S}'_{sim} - \mathcal{S}_{sim} | \approx 0\)
\end{itemize}

Cons:

\begin{itemize}
\item For sim, the \(|\mathcal{S}'_{sim} - \mathcal{S}_{sim} | \approx 0\) minimum is ``too perfect''.

\item For data, avg reco signal differences \(|\langle\mathcal{S}'_{det}\rangle - \langle\mathcal{S}'_{sim}\rangle |\) are large. 
\begin{itemize}
\item The ``long range induction'' effects can not be ignored.
\item MicroBooNE data demonstrated this model is too simplistic.
\end{itemize}
\end{itemize}
\end{frame}

\begin{frame}[label={sec:org111e0f2}]{Wire-Cell 2D response model: \(\mathcal{R}^{2D}(x,\rho)\)}
\begin{itemize}
\item Response depends on 2D coords (drift + pitch directions).
\begin{itemize}
\item May induce current on range of nearby wires (\(1 \pm 10\)) or strips (\(1 \pm 5\)).
\item \(\mathcal{R}_{sim}\) varies w/in one \emph{wire region} (10 sub-pitch bins).
\item Average over each wire region: \(\langle\mathcal{R}^{2D}_{sim}(x,\rho)\rangle|_{\rho} \to \mathcal{R}^{2D}_{sp}(x)\)
\end{itemize}
\end{itemize}

Pros:

\begin{itemize}
\item Well minimizes both \(|\mathcal{S}'_{sim} - \mathcal{S}_{sim} |\) and \(|\langle\mathcal{S}'_{det}\rangle - \langle\mathcal{S}'_{sim}\rangle |\).
\item Validated, optimized implementation in Wire-Cell Toolkit.
\begin{itemize}
\item \scriptsize Now established as default in most LArSoft uses.
\end{itemize}
\item On average, works well on \alert{some} non-2D geometries (eg wires).
\end{itemize}

Cons:

\begin{itemize}
\item Field response calculations more difficult than 1D, but reasonable.
\item Sim and sigproc algorithms more complex, somewhat slower than 1D.
\item The more 3D the geometry \(\Rightarrow\) more imperfect is a 2D model.
\begin{itemize}
\item Particularly, \alert{strips + holes} stress the model.
\end{itemize}
\end{itemize}
\end{frame}


\begin{frame}[label={sec:org0f52d3d}]{1D SP \emph{vs} Wire-Cell 2D SP on MicroBooNE \emph{det} data}
\begin{columns}
\begin{column}{0.5\columnwidth}
\begin{center}
\includegraphics[width=.9\linewidth]{mb-sim-data-1d-2d.png}
\end{center}
\end{column}

\begin{column}{0.5\columnwidth}
\footnotesize
Plotted: average \alert{reconstructed ionization signal} \(\mathcal{S}'^{1D}_{det}\) and \(\mathcal{S}'^{2D}_{det}\)  \emph{vs} sample time for ensemble of tracks in four angle bins.

\vspace{1cm}

2D Wire-Cell signal processing is able to correctly recover identical \alert{average} track reco signal \(\mathcal{S}'^{2D}_{det}\) \alert{independently from each wire plane}.


\begin{center}
\scriptsize Exploit LArTPC technology for tomography!
\end{center}

\vspace{1cm}

\tiny
Ionization Electron Signal Processing in Single Phsae LArTPCs II. Data/
Simulation Comparison and Performance in MicroBooNE
MicroBooNE Collaboration \href{http://arxiv.org/abs/1804.02583}{arXiv:1804.02583}, \href{https://doi.org/10.1088/1748-0221/13/07/P07007}{JINST 13, P07007 (2018)}.
\end{column}
\end{columns}
\end{frame}


\begin{frame}[label={sec:org7286063}]{2D Field Response Calculations - Wires}
\begin{columns}
\begin{column}{0.35\columnwidth}
\scriptsize
\begin{itemize}
\item 2D \alert{slice} across 3D geometry
\begin{itemize}
\item \tiny plus some fictional alignment!
\end{itemize}
\item Wires are \alert{infinite, parallel and uniform}, and there are \alert{no edge effects}.
\item Drift paths in applied \(\vec{E}\)-field.
\item Per-conductor \emph{weighting} field.
\item 126 drift paths per plane: \(1 \pm 10\) wires, 6 ``impact positions'' per wire at \(\frac{1}{10}^{th}\) pitch, exploit translation and mirror symmetries.
\end{itemize}
\end{column}

\begin{column}{0.65\columnwidth}
\includegraphics[clip,trim=4.5cm 3cm 5cm 2cm,width=3.5cm]{larwires-3.pdf}\includegraphics[clip,trim=4.5cm 3cm 5cm 2cm,width=3.5cm]{larwires-4.pdf}

\begin{center}


\scriptsize 2D \((x, \rho)\) drift paths and example U-wire weighting field for ProtoDUNE-SP calculated by \href{https://github.com/brettviren/drifires}{drifires}/Garfield++ \\
(we are migrating from the venerable GARFIELD).
\end{center}
\end{column}
\end{columns}



\begin{block}{}
\scriptsize
Instantaneous induced current: 
\(I(t_i) = q \vec{W}(\vec{r}_i)\cdot\vec{v}(\vec{r}_i); \vec{r}_i = \vec{r}(t_i); t_i = t_0 + i\Delta t\)

\begin{itemize}
\item \tiny \(\vec{W}\): \emph{weighting field} is \(\vec{E}\)-field with conductor-of-interest at 1V, all else at 0V.
\item \(\vec{v}\): drift velocity along path \(\vec{r}\) calculated from LAr physics and solving for applied \(\vec{E}\)-field.
\item \(q\): an infinitesimal element from the distribution of drifted ionization electrons at the start of a drift path.
\end{itemize}
\end{block}
\end{frame}



\begin{frame}[label={sec:org2cffa89}]{Wire-Cell 2D response for MicroBooNE}
\begin{columns}
\begin{column}{0.33\columnwidth}
\begin{center}
\footnotesize

\(\mathcal{R}^{2D}_{sim}(x,\rho)\) 

(drift vs impact position)

\begin{center}
\includegraphics[width=.9\linewidth]{mb-resp.png}
\end{center}
\end{center}
\end{column}

\begin{column}{0.65\columnwidth}
\begin{center}
\footnotesize

\(\mathcal{R}^{2D}_{sp}(x)\) 

(drift vs wire region + select wire regions)

\begin{center}
\includegraphics[width=.9\linewidth]{mb-wire-resp.png}
\end{center}
\end{center}
\end{column}
\end{columns}
\end{frame}

\begin{frame}[label={sec:org0b3f33b}]{More Wire-Cell NF/SP performance on MicroBooNE}
\begin{columns}
\begin{column}{0.7\columnwidth}
\begin{center}
\includegraphics[width=.9\linewidth]{mb-raw-1d-2d.png}
\end{center}    
\end{column}

\begin{column}{0.3\columnwidth}
\footnotesize

\alert{Signal processing} on MicroBooNE \alert{detector data} event:
\begin{itemize}
\item \scriptsize (a) WCT noise filtered,
\item (b) 1D SP and
\item (c) Wire-Cell 2D SP
\end{itemize}

Similar performance on ProtoDUNE-SP.
\end{column}
\end{columns}

\begin{block}{}
\tiny

Ionization Electron Signal Processing in Single Phase LArTPCs I. Algorithm
Description and Quantitative Evaluation with MicroBooNE Simulation
MicroBooNE Collaboration \href{http://arxiv.org/abs/1802.08709}{arXiv:1802.08709}, \href{https://doi.org/10.1088/1748-0221/13/07/P07006}{JINST 13, P07006 (2018)}.
\end{block}
\end{frame}


\begin{frame}[label={sec:org0eda731}]{Challenges of strips+holes for \(\mathcal{R}\)}
\begin{columns}
\begin{column}{.7\columnwidth}
Strips+holes strongly violate 2D model
\begin{itemize}
\item \alert{non-parallel strips between the planes} 
\begin{itemize}
\item \footnotesize (a ``feature'' shared with wires)
\end{itemize}
\item \alert{non-uniform along their length}.
\end{itemize}

Extra challenges:
\begin{itemize}
\item ind/col hole patterns differ between strips-in-plane and
strips-across-planes

\item hole-pattern has some finite \emph{repetition distance}

\begin{itemize}
\item \footnotesize 50-L has a 2-hole repetition,
\item longer repetition for some 3-view designs.
\end{itemize}
\end{itemize}

Small bonus: fields drop faster with strips than wires 
\begin{itemize}
\item \(1 \pm 10\) wires \(\to\) \(1 \pm 5\) strips.
\end{itemize}

\vspace{5mm}

\footnotesize
\flushright 
50-L detector collection stips+holes \(\longrightarrow\)
\end{column}

\begin{column}{0.3\columnwidth}
\vspace{-1cm}

\begin{center}
\includegraphics[width=.9\linewidth]{collection-impacts.pdf}
\end{center}
\end{column}
\end{columns}
\end{frame}



\begin{frame}[label={sec:org86c3d43}]{2.5D model for strips+holes \(\mathcal{R}^{2.5D} \to \mathcal{R}^{2D}_{sim,sp}\)}
\begin{columns}
\begin{column}{.7\columnwidth}
\footnotesize

\alert{``2.5D'' trick}
\begin{itemize}
\item \scriptsize Construct \alert{slices} across strips spanning the \emph{repetition distance}.
\item Each slice defines one \(\mathcal{R}^{2D}\) problem domain.
\item Calculate per-slice \(\mathcal{R}^{2D}_{slice}\),
\item Take \alert{average} over slices to get \(\mathcal{R}^{2D}_{sim,sp}\)
\end{itemize}

New problems for calculating \(\mathcal{R}^{2D}_{slice}\):
\begin{itemize}
\item \scriptsize How best to define and combine slices?
\item How many slices are needed?
\item How to exploit symmetry to reduce calculation?
\item \alert{How wrong} is this on \alert{average} and in \alert{detail}?
\begin{itemize}
\item \scriptsize tests ongoing
\end{itemize}
\end{itemize}

\footnotesize
\flushright 
Chosen slices shown as vertical lines \(\longrightarrow\)

\begin{center}
\tiny
(details how we use GARFIELD to perform calculation in backups)
\end{center}
\end{column}

\begin{column}{0.3\columnwidth}
\vspace{-1cm}

\begin{center}
\includegraphics[width=.9\linewidth]{collection-impacts.pdf}
\end{center}
\end{column}
\end{columns}
\end{frame}


\begin{frame}[label={sec:org3ee0e7a}]{50-L test detector: \(\mathcal{R}^{2.5D} \to \mathcal{R}^{2D}_{sim}\)}
\footnotesize The \href{https://github.com/brettviren/pcbro}{PCBro} (PCB anode readout) package processes GARFIELD
output to form the per-slice responses to produce WCT-compatible
\(\mathcal{R}^{2D}_{sim,sp}\) as linear color scale.

\begin{center}
\scriptsize 

(induction plane, slices 0, 1 and average)

(collection plane, slices 0, 1 and average)
\end{center}

\begin{columns}
\begin{column}{0.3\columnwidth}
\includegraphics[width=\textwidth]{resp-07.pdf}

\includegraphics[width=\textwidth]{resp-10.pdf}

\begin{center}
\scriptsize Slice 0.
\end{center}
\end{column}

\begin{column}{0.3\columnwidth}
\includegraphics[width=\textwidth]{resp-08.pdf}

\includegraphics[width=\textwidth]{resp-11.pdf}

\begin{center}
\scriptsize Slice 1.
\end{center}
\end{column}

\begin{column}{0.3\columnwidth}
\includegraphics[width=\textwidth]{resp-09.pdf}

\includegraphics[width=\textwidth]{resp-12.pdf}

\begin{center}
\scriptsize Slices \(0.5 * (0 + 1)\).
\end{center}
\end{column}
\end{columns}
\end{frame}

\begin{frame}[label={sec:org64c7e05}]{Next 3 slides}
\begin{center}
\alert{tl;dr:} focus on bottom two plots.
\end{center}

\vfill

\footnotesize

To better view tails we use ``\(\pm\)log 10'' scale for 50-L's \(\mathcal{R}^{2D}_{sim}\).

Each slide shows a slice-average or a specific slice:

\begin{enumerate}
\item highlight slice 0
\item highlight slice 1
\item average over both slices
\end{enumerate}

50-L detector only has 2-views: induction + collection.

The ``U'' and ``V'' labels indicate different forms for the \alert{induction} plane info. 

The ``W'' is always the \alert{collection} plane info.
\end{frame}

\begin{frame}[label={sec:org15ed120}]{}
\begin{columns}
\begin{column}{0.6\columnwidth}
\includegraphics[height=\textheight]{pcbro-response-slc0-zoom.png}
\end{column}

\begin{column}{0.4\columnwidth}
\begin{center}
Slice 0
\end{center}

50-L \(\mathcal{R}^{2D}_{sim}\)

\begin{enumerate}
\item U is average over both induction slices

\item V is induction slice 0

\item W is collection slice 0
\end{enumerate}
\end{column}
\end{columns}
\end{frame}

\begin{frame}[label={sec:org5d70641}]{}
\begin{columns}
\begin{column}{0.6\columnwidth}
\includegraphics[height=\textheight]{pcbro-response-slc1-zoom.png}
\end{column}

\begin{column}{0.4\columnwidth}
\begin{center}
Slice 1
\end{center}

50-L \(\mathcal{R}^{2D}_{sim}\)

\begin{enumerate}
\item U is average over both induction slices

\item V is induction slice 1

\item W is collection slice 1
\end{enumerate}
\end{column}
\end{columns}
\end{frame}

\begin{frame}[label={sec:orgc8c987e}]{}
\begin{columns}
\begin{column}{0.6\columnwidth}
\includegraphics[height=\textheight]{pcbro-response-avg-zoom.png}
\end{column}

\begin{column}{0.4\columnwidth}
\begin{center}
Average
\end{center}

50-L \(\mathcal{R}^{2D}_{sim}\)

\begin{enumerate}
\item U is average over the two induction slices.

\item V is average over the two induction slices. 
\begin{itemize}
\item \scriptsize (the two are identical)
\end{itemize}

\item W is average over the two collection slices.
\end{enumerate}
\end{column}
\end{columns}
\end{frame}


\begin{frame}[label={sec:org484acbf}]{50-L raw data and WCT sigproc with \(\mathcal{R}^{2.5D}_{sp}\)}
The \href{https://github.com/brettviren/pcbro}{PCBro} package also provides a 50-L raw data decoder and hooks to
run \alert{Wire-Cell Toolkit signal processing} on 50-L data.

\begin{columns}
\begin{column}{0.5\columnwidth}
\begin{center}
\footnotesize 50-L raw data event

\alert{PCBro data decoder}

\vspace{-3mm}

\begin{center}
\includegraphics[width=.9\linewidth]{raw-31.png}
\end{center}
\end{center}
\end{column}

\begin{column}{0.5\columnwidth}
\begin{center}
\footnotesize Same event after \alert{Wire-Cell signal processing}

\vspace{-3mm}

\begin{center}
\includegraphics[width=.9\linewidth]{sig-31.png}
\end{center}
\end{center}
\end{column}
\end{columns}


\begin{block}{}
\scriptsize Note, the ``\alert{double induction}'' plane is merely duplicate to
fit nominal WCT assumptions of 3 planes.  The PCBro package uses
this ``extra'' plane to test different field responses in the same job.

In production processing, we need not waste CPU on the duplication.
\end{block}
\end{frame}

\begin{frame}[label={sec:org471e1ad}]{50-L WCT simulation of \(^{39}\)Ar ``blips''}
\footnotesize

\begin{center}


Andrea Scarpelli

collection plane | induction plane

\begin{center}
\includegraphics[width=.9\linewidth]{andrea-50l-simdat-ar39-blips.png}
\end{center}
\end{center}

Samples \(^{39}\)Ar energy spectrum scanned from \href{https://arxiv.org/abs/1705.05726}{arXiv:1705.05726v1}.
\end{frame}

\begin{frame}[label={sec:org77f07ac}]{50-L data / WCT sim comparison - \(^{39}\)Ar ``blips''}
\begin{columns}
\begin{column}{0.4\columnwidth}
\footnotesize

\begin{center}


Andrea Scarpelli and Serhan Tufanli
\end{center}


\alert{average raw waveforms} 

\scriptsize

50-L \textcolor{orange}{data (orange)} and Wire-Cell 2D \textcolor{blue}{sim (blue)} using a 2-slice \(\mathcal{R}^{2.5D}\).

Separated by induction (left) and collection (right) planes 
and for central strip (middle) and central \(\pm 1\) strips (top/bottom).
\end{column}


\begin{column}{0.6\columnwidth}
\begin{center}
\includegraphics[width=.9\linewidth]{andrea-50l-simdat-strip-p1.png}
\end{center}
\begin{center}
\includegraphics[width=.9\linewidth]{andrea-50l-simdat-center.png}
\end{center}  
\begin{center}
\includegraphics[width=.9\linewidth]{andrea-50l-simdat-strip-m1.png}
\end{center}  
\end{column}
\end{columns}
\end{frame}

\begin{frame}[label={sec:orgb09e5ff}]{3-view strips+holes}
\begin{columns}
\begin{column}{0.6\columnwidth}
\footnotesize

At least 3 views are needed to well exploit the tomographic power of LArTPC!

\vspace{3mm}

Various design, installation and \alert{response} challenges for a 3-view \alert{strips+holes} detector.

\vspace{3mm}

One possible design adds ``diagonal'' strip with ``skewed'' hole pattern. \(\longrightarrow\)

\begin{itemize}
\item \scriptsize \(\mathcal{R}\) may require \(N>2\) slice average: ``2.7D \ldots{} 2.9D''

\begin{itemize}
\item \tiny Have scheme to produce \alert{data-driven optimal weighting} of slices.  Non-trivial, but there if we need it.
\end{itemize}

\item Strip angle is such that \alert{no slice} goes only through hole diameters.

\begin{itemize}
\item \tiny Further biasing of the ``2.x D'' approach?
\end{itemize}

\item Even with 3D, prefer to maximize regularity of patterns.
\end{itemize}

\alert{Design wish}: 3-view isosceles or hexagonal strip+hole pattern.  A
novel hexagonal design by Bo looks nice!
\end{column}


\begin{column}{0.4\columnwidth}
\vspace{-1cm}

\begin{center}
\includegraphics[width=.9\linewidth]{strip-holes-3d.png}
\end{center}

\begin{center}
\includegraphics[width=.9\linewidth]{strip-holes-2d.png}
\end{center}


\scriptsize From Bo's presentation at the recent \href{https://indico.fnal.gov/event/46396/}{DUNE collab call}
\end{column}
\end{columns}
\end{frame}


\begin{frame}[label={sec:orgf287964}]{Summary and some next steps}
\begin{itemize}
\item Wire-Cell's use of \(\mathcal{R}^{2D}_{sim,sp}\) improves over \(\mathcal{R}^{1D}\) as demonstrated with MicroBooNE and ProtoDUNE.

\item The \(\mathcal{R}^{2.5D}\) trick brings Wire-Cell support to 50-L strips+holes det. 
\begin{itemize}
\item Eyeball SP event display and average raw waveform tests look okay.
\item These \alert{average} test metrics may hide some variational problems.
\end{itemize}

\item Unclear (yet) ``2.5D'' trick is enough esp. for 3-view designs.
\begin{itemize}
\item Require WCT SP/sim and test detector data to confirm.
\end{itemize}

\item The more regular the strip+hole pattern the better!
\begin{itemize}
\item \alert{isosceles/hexagonal 3-plane} designs for vert. drift det, please!
\item a very new design already in this direction!
\end{itemize}

\item \alert{Precision tests} to check for correct \alert{variations} \emph{vs} position even
more important for strips+holes.
\end{itemize}

In general: we will continue to improve support in Wire-Cell Toolkit
for strip+hole test detectors and for the eventual DUNE VD module(s)!
\end{frame}

\begin{frame}[label={sec:org43b82e0}]{}
\Huge

\begin{center}
\(\mathcal{F}\mathcal{I}\mathcal{N}\)
\end{center}
\end{frame}


\begin{frame}[label={sec:org6cec05d}]{}
\begin{center}
\emph{backups}
\end{center}
\end{frame}


\begin{frame}[label={sec:org1ceaafc}]{Conceptual LArTPC Simulation}
Real detector (and its simulation) produces an event via a \alert{convolution} of:

\begin{description}
\item[{\(\mathcal{S}\)}] an \alert{ionization charge distribution} (``signal'') with
\item[{\(\mathcal{R}\)}] a \alert{detector response} to drifting electrons, plus
\item[{\(\mathcal{N}\)}] all non-signal related ``\alert{noise}'', producing
\item[{\(\mathcal{M}\)}] a \alert{measurement} (eg ADC waveforms on channels).
\end{description}

\[ \mathcal{M}_x = \mathcal{N}_x + \mathcal{R}_x \circledast \mathcal{S}_x \]

With \(x =\) ``\alert{\(det\)}'' (real detector) or ``\alert{\(sim\)}'' (detector simulation).

\begin{description}
\item[{knowns}] \(\mathcal{M}_{det}\), \(\mathcal{M}_{sim}\), \(\mathcal{S}_{sim}\) and \(\mathcal{N}_{sim}\) (modeled), \(\mathcal{R}_{sim}\) (but imperfect).

\item[{unknowns}] \(\mathcal{R}_{det}\), \(\mathcal{S}_{det}\) and \(\mathcal{N}_{det}\).
\end{description}
\end{frame}

\begin{frame}[label={sec:orgc43875a}]{Conceptual LArTPC Noise Filtering}
Noise filtering is a transformation \(F_{nf}\) on the measurement:

\[ \mathcal{M}_x \to \mathcal{M}'_x = F_{nf}(\mathcal{M}_x) \]

\alert{designed} to strongly remove \alert{excess} or \alert{external} noise and potentially reduce \alert{inherent noise} leaving residual noise \(n_x\):

\[ F_{nf}(\mathcal{N}_x) \to n_x \ll \mathcal{N}_x \]

while attempting to leave the signal term approximately invariant:

\[ F_{nf}(\mathcal{R}_x \circledast \mathcal{S}_x) \approx \mathcal{R}_x \circledast \mathcal{S}_x \]
\end{frame}


\begin{frame}[label={sec:org8af52b9}]{Conceptual LArTPC Signal Processing}
Signal processing attempts to recover a good approximation of
\(\mathcal{S}_x\) from \(\mathcal{M}_x\).

\vfill

It uses a \alert{deconvolution} of the measure with a response and with added
filters \(F_{sp}\) to further suppress the residual noise term.

\[ \mathcal{S}'_x = F_{sp} \circledast \mathcal{R}_{sp}^{-1} \circledast \mathcal{M}_x, x \in \{sim,det\} \]

We may not use the detailed \(\mathcal{R}_{sim}\) here as it is in
terms of the detailed, inaccessible ``true'' signal coordinates so we use
an \alert{average} \(\mathcal{R}_{sp}\) (ie, per-channel vs sample time matching \(\mathcal{M}_x\)).

\vfill \scriptsize

Note: for \alert{induction channels}, \(\mathcal{R}_{sp}^{-1}\) diverges at
DC, thus \alert{amplifies residual, low-frequency noise}.  To counter,
\(F_{sp}\) includes special algorithmic high-pass ``filters'' called
\emph{signal region of interest} (signal-ROI) and \emph{local baseline correction}.
\end{frame}

\begin{frame}[label={sec:org32ae8c5}]{Conceptual LArTPC Responses}
We then must \alert{choose} \(\mathcal{R}_{sim}\) and \(\mathcal{R}_{sp}\) and
wish to minimize the \alert{per-event difference} between SP and ``true''
ionization signal in the \(sim\):

\[|\mathcal{S}'_{sim} - \mathcal{S}_{sim} |\]

and simultaneously minimize an \alert{ensemble difference} between SP signal
over similar samples from \(det\) and \(sim\):

\[|\langle\mathcal{S}'_{det}\rangle - \langle\mathcal{S}'_{sim}\rangle |\]

This obviously implies we want:

\[\mathcal{R}_{det} \approx \mathcal{R}_{sim} \sim \mathcal{R}_{sp}\]

\footnotesize IOW, we want \(\mathcal{R}_{sim}\) as \alert{close to reality as computational power allows} and \(\mathcal{R}_{sp}\) as \alert{close to
reality tempered by our limited basis of measurement} \(\mathcal{M}\)
(ie, channel-level info).
\end{frame}


\begin{frame}[label={sec:org5c1531e}]{The Test Metric Caveat}
So far we use metrics sensitive to \alert{response averages over space}.

\begin{itemize}
\item Demonstrates WCT \(\mathcal{R}^{2D}\)  \alert{good on average} for SP(\emph{sim}) \(\approx\) SP(\emph{det}).

\begin{itemize}
\item Does control for \alert{3D direction}, important variation for SP efficiency!
\end{itemize}

\item May not be sensitive to \alert{imperfect detailed variations} in \(\mathcal{R}^{2D}_{sim,sp}\)

\begin{itemize}
\item Eg, is there SP(\emph{sim}) \(\ne\) SP(\emph{det}) bias/resolution at specific locations?
\item Particularly strip+holes have large variations along strip direction.
\begin{itemize}
\item (will show)
\end{itemize}
\end{itemize}

\item Examples of more \alert{precise metrics} to apply in future \emph{det} vs \emph{sim}:

\begin{itemize}
\item Signal matching between planes with \(^{39}\)Ar or other ``blips''.

\item Detailed comparison of dE/dX with tracks from full 3D reco.
\end{itemize}
\end{itemize}
\end{frame}

\begin{frame}[label={sec:orgf9f9144}]{More Wire-Cell performance on MicroBooNE: NF}
\begin{columns}
\begin{column}{0.4\columnwidth}
Wire-Cell software \alert{noise filter} applied to MicroBooNE data event.

\vspace{1cm}

\footnotesize

Noise Characterization and Filtering in the MicroBooNE Liquid Argon TPC
MicroBooNE Collaboration \href{http://arxiv.org/abs/1705.07341}{arXiv:1705.07341}, \href{https://doi.org/10.1088/1748-0221/12/08/P08003}{JINST 12 P08003 (2017)}.
\end{column}

\begin{column}{0.5\columnwidth}
\begin{center}
\includegraphics[width=.9\linewidth]{mb-noise-filter.png}
\end{center}
\end{column}
\end{columns}
\end{frame}


\begin{frame}[label={sec:org56fe00a}]{}
\begin{block}{Wire-Cell signal processing on ProtoDUNE-SP data}
\begin{center}
\includegraphics[width=0.7\textwidth]{pdsp-nf-sp.png}
\end{center}
\end{block}


\begin{block}{Wire-Cell simulation/data comparison dE/dX for \(\mu\) and P on PDSP}
\begin{center}


\includegraphics[width=0.7\textwidth]{pdsp-dedx-data-mc-pmu.png}
\end{center}
\end{block}

\begin{block}{}
\tiny

First results on ProtoDUNE-SP liquid argon time
projection chamber performance from a beam test at the
CERN Neutrino Platform. \href{https://arxiv.org/abs/2007.06722}{arXiv:2007.06722}, \href{https://iopscience.iop.org/article/10.1088/1748-0221/15/12/P12004}{JINST 15 (2020) P12004}.
\end{block}
\end{frame}


\begin{frame}[label={sec:org09ddd9a}]{The 2.5D trick applied to GARFIELD}
\begin{center}
\begin{center}
\includegraphics[width=.9\linewidth]{geometry-2D.png}
\end{center}

\scriptsize GARFIELD setup for 2D single-hole (Yichen Li)
\end{center}


\begin{columns}
\begin{column}{0.7\columnwidth}
\footnotesize Clever work-around to limitations of 2D and GARFIELD:
\begin{itemize}
\item \scriptsize \alert{Single-hole}, 2D geometry with strips constructed as array of hundreds of ``\alert{micro wire}'' sensing conductors
\begin{itemize}
\item \tiny the L/R and A/B blocks work around some GARFIELD technical limits.
\end{itemize}
\item Manual labor intensive post processing
\begin{itemize}
\item \tiny Catalog maps of drift paths on slice to single-hole geometry.
\item Catalog micro wire selection criteria for each drift path.
\item Longer the hole pattern repetition distance \(\Rightarrow\) more the effort.
\end{itemize}
\end{itemize}
\end{column}

\begin{column}{0.3\columnwidth}
\begin{center}
\includegraphics[width=.9\linewidth]{collection-impacts-detail.pdf}
\end{center}
\end{column}
\end{columns}
\end{frame}


\begin{frame}[label={sec:orgcf8bbf4}]{50-L data/sim checks t.b.d.}
Other sources:
\begin{itemize}
\item 1 MeV e- Bismuth source ``blips''.
\item MIP tracks in different direction bins.
\end{itemize}

Address ``Test Metric Caveat'' with more precise \emph{det} \emph{vs} \emph{sim} comparisons:
\begin{itemize}
\item SP ind/col ratio for ``blips'', ideally \(= 1.0\)
\item Invariant values (eg, raw ind waveform integral \(= 0.0\))
\item Raw waveforms from ``blips'' as \(f(\rho)\)?
\end{itemize}
\end{frame}



\begin{frame}[label={sec:org163bbe0}]{Skewed hole pattern: 2.5D? 2.7D?}
\begin{columns}
\begin{column}{0.6\columnwidth}
\footnotesize 50-L: \alert{average} tests look good for \(\mathcal{R}^{2.5D}_{sim}\), \alert{eyeballing} SP event display looks good for \(\mathcal{R}^{2.5D}_{sp}\).

But, 50-L has fairly \alert{regular hole pattern}.  

\alert{New worry}: 3-view's ``diagonal'' strip with ``skewed'' hole pattern. \(\longrightarrow\)

\begin{itemize}
\item May need \(N>2\) slice average: ``2.7D \ldots{} 2.9D''

\begin{itemize}
\item \tiny Have scheme to produce \alert{data-driven optimal weighting} of slices.  Non-trivial, but there if we need it.
\end{itemize}

\item Strip angle such that \alert{no slice} goes only through hole diameters.

\begin{itemize}
\item \tiny Further biasing of the ``2.x D'' approach?
\end{itemize}

\item Even with 3D, prefer to maximize regularity of patterns.
\end{itemize}

\(\therefore\) \alert{Design wish}: rectangular 2-plane or isosceles/hexagonal 3-plane!
\end{column}



\begin{column}{0.4\columnwidth}
\vspace{-1cm}

\begin{center}
\includegraphics[width=.9\linewidth]{strip-holes-3d.png}
\end{center}

\begin{center}
\includegraphics[width=.9\linewidth]{strip-holes-2d.png}
\end{center}


\scriptsize From Bo's presentation at the recent \href{https://indico.fnal.gov/event/46396/}{DUNE collab call}
\end{column}
\end{columns}
\end{frame}


\begin{frame}[label={sec:org64aec59}]{So, why not \(\mathcal{R}^{3D}\)?}
\begin{columns}
\begin{column}{0.8\columnwidth}
\footnotesize 

Some work in 3D exists.
\begin{itemize}
\item \scriptsize Mostly for ``near by'' fields or ``far fields'' but for \alert{wires}.
\item Far field 2D calculation takes \alert{minutes-hours}, 3D calculations take \alert{hours-days} (using BEM, effectively impossible with FEM).
\item Strips+holes need finer meshing \(\Rightarrow\) more processing (than wires).
\item Longer hole repetition distance \(\Rightarrow\) more processing (than 50-L).
\end{itemize}

And, given \(\mathcal{R}^{3D}\) sim must contend with an explosion of data.  
\begin{itemize}
\item \(\mathcal{R}_{sim}\) \alert{drift paths per plane} (some estimate/guesses)
\begin{itemize}
\item \tiny 2D wires: 126.
\item 2.5D strips: O(100) for 50L, O(1,000) for skewed hole pattern
\begin{itemize}
\item \tiny but at least results in ``standard'' \(\mathcal{R}^{2D}_{sim,sp}\)!
\end{itemize}
\item 3D: O(50,000), and worse: \alert{old simulation must be thrown out}.
\end{itemize}
\end{itemize}

3D simulation
\begin{itemize}
\item \scriptsize Same concepts as 2D sim, but need all new algorithms/code.
\item 2D sim exploits 10-way interlacing across common, wire-relative impact positions in order to use 2D FFT + 10-way sum for fast convolution.
\begin{itemize}
\item \tiny How to even apply this trick in 3D?  More variety along the strip direction will increase interlacing \(\Rightarrow\) harder/slower calculation.
\end{itemize}
\end{itemize}
\end{column}


\begin{column}{0.2\columnwidth}
\vspace{-1cm}

\begin{center}
\scriptsize

\begin{center}
\includegraphics[width=.9\linewidth]{near-field-3d.png}
\end{center}

\href{https://indico.fnal.gov/event/46396/}{From Bo's talk again}

\begin{center}
\includegraphics[width=.9\linewidth]{larf-wires-drifts.png}
\end{center}

\href{https://github.com/brettviren/larf/}{LARF}

\begin{center}
\includegraphics[width=.9\linewidth]{triangle-path-starts.png}
\end{center} 
\end{center}
\end{column}
\end{columns}
\end{frame}
\end{document}
