% Created 2025-09-24 Wed 11:59
% Intended LaTeX compiler: pdflatex
\documentclass[usenames,dvipsnames,colorlinks,aspectratio=169]{beamer}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{wrapfig}
\usepackage{rotating}
\usepackage[normalem]{ulem}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{capt-of}
\usepackage{hyperref}
\usepackage{color}
\usepackage{listings}
\usepackage{pdfpages}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage{xspace}
\usepackage{siunitx}
\usepackage{libertine}
\usepackage{fontawesome}
\mode<beamer>{\usetheme{Boadilla}}
\setbeamertemplate{navigation symbols}{}
\setbeamerfont{alerted text}{series=\bfseries}
\setbeamercolor{alerted text}{fg=blue}
\usecolortheme{default}
\usefonttheme{serif}
\usefonttheme{professionalfonts}
\lstloadlanguages{[ISO]C++}
\definecolor{codegreen}{rgb}{0,0.6,0}
\definecolor{codegray}{rgb}{0.5,0.5,0.5}
\definecolor{codepurple}{rgb}{0.50,0,0.82}
\definecolor{codeorange}{rgb}{0.95,0.3,0.1}
\definecolor{backcolour}{rgb}{0.95,0.95,0.92}
\lstdefinestyle{mystyle}{
commentstyle=\color{codegreen},
keywordstyle=\color{codeorange},
numberstyle=\tiny\color{codegray},
stringstyle=\color{codepurple},
basicstyle=\footnotesize,
breakatwhitespace=false,
breaklines=true,
captionpos=b,
keepspaces=true,
numbers=left,
numbersep=5pt,
showspaces=false,
showstringspaces=false,
showtabs=false,
tabsize=2
}
\lstset{style=mystyle}
\usepackage{siunitx}
\usepackage{multirow}
\usetheme{default}
\author{Brett Viren}
\date{\today}
\title{DUNE Resampling}
\hypersetup{
 pdfauthor={Brett Viren},
 pdftitle={DUNE Resampling},
 pdfkeywords={},
 pdfsubject={},
 pdfcreator={Emacs 28.2 (Org mode 9.5.5)}, 
 pdflang={English}}
\begin{document}

\maketitle

\begin{frame}[label={sec:org88ab293}]{Context and Issues}
\begin{center}
DAQ \(\to\) (files) \(\to\) Offline Software
\end{center}


DUNE PD/FD TPC detectors produce data with \qty{500}{ns} and \qty{512}{ns} sampling periods.

\begin{block}{Sampling period variety passes on \alert{complexity issues} to Offline Software}
Mental:
\begin{itemize}
\item Thinking in two slightly different frequencies.
\begin{itemize}
\item Mental math on \qty{1.953125}{MHz} is harder than \qty{2.0}{MHz}.
\end{itemize}
\end{itemize}

Configurations:
\begin{itemize}
\item The two ``tick'' values must be set in many places, differently and depending on context.
\item The Field Response calculations need redoing, with 2 needed for ``identical'' VD halves.
\end{itemize}

Algorithms:
\begin{itemize}
\item Stitching 3D clusters across TDE/BDE or HD/VD faces discrete misalignment problems.
\end{itemize}
\end{block}
\end{frame}


\begin{frame}[label={sec:org9d82bc5}]{Motivation for Offline resampling of ADC waveforms}
Resampling will remove the complexity issues passed to Offline Software in \alert{one
place} instead of solving the same problem in many places throughout the large
software chain.
\end{frame}

\begin{frame}[label={sec:org15bdf58}]{Implementation in Offline Software}
\includegraphics[width=\textwidth]{dune-resampling-flow.pdf}

Almost all of stage 1 and all of stage 2+ do not see complexity of two sampling periods.
\begin{itemize}
\item Offline already \alert{remaps} all online channels to a common offline number scheme.
\end{itemize}
\end{frame}

\begin{frame}[label={sec:orgc31325d}]{Some anticipated Q\&A}
\begin{block}{Why resample (half of) VD?}
Required for time alignment across the two halves.
\end{block}

\begin{block}{Why \qty{512}{ns} \(\to\) \qty{500}{ns} instead of \emph{vice versa}?}
This is an upsampling and is information lossless.  The other direction is lossy.
\end{block}

\begin{block}{Why resample HD?}
For consistency across all PD / FD.
\end{block}
\end{frame}
\end{document}