\documentclass[showdate=false]{beamer}

\usepackage[british]{babel}
\usepackage{amsmath}
\usepackage{hyperref}
\usepackage[backend=bibtex,style=trad-plain]{biblatex}
\usepackage{graphicx}
\graphicspath{{.}{../../figures/}}

\addbibresource{../../../bibliotheca/bibliography.bib}

% Disable Captions
\setbeamertemplate{caption}{\raggedright\small\insertcaption\par}

% Show Section overview at beginning of section
%\AtBeginSection[]
%{
%	\begin{frame}<beamer>{Table of Contents}
%		\tableofcontents[currentsection, currentsubsection, sectionstyle=show/shaded, subsectionstyle=hide]
%	\end{frame}
%}

% no to navigation, yes to frame numbering
\beamertemplatenavigationsymbolsempty
\setbeamerfont{page number in head/foot}{size=\normalsize}
\setbeamertemplate{footline}[frame number]

\title[Grand DU]{Channel delays in the Grand Digitizer}
\date{May 31, 2022}
\author{E.T. de Boone}

\begin{document}
\frame{\titlepage}

\begin{frame}{Wireless time distribution}
	\begin{block}{Current Timing Methods}
	\begin{itemize}
		\item GNSS (online)
		\item Beacon (online/offline)
	\end{itemize}
	\end{block}
	\vspace{2em}
	\begin{itemize}
		\item GPS Accuracy $\leq 30 \mathrm{ns}$ for $95$\% time (often better)
		\item Total time accuracy in the order of 5 -- 10~ns
	\end{itemize}
	\vspace{2em}
	\begin{alertblock}{Grand Digitizer Unit}
		\begin{itemize}
			\item Both GNSS and Beacon,
			\item Maybe test GNSS with Beacon?
		\end{itemize}
	\end{alertblock}
\end{frame}

\section{Channel Delays in the GRAND DU}
\begin{frame}{Grand DU before ADC}
	\begin{columns}
		\begin{column}{0.5\textwidth}
	\begin{block}{GRAND Digitizer Unit}
		\begin{itemize}
			\item Four channel ADC
			\item Per-channel Filterchain (might introduce delays)
		\end{itemize}
	\end{block}
		\end{column}
		\begin{column}{0.5\textwidth}
	\begin{figure}
		\includegraphics[width=1\textwidth]{grand/setup/antenna-to-adc.pdf}
		\caption{
			Antennae to the four-channel ADC
		}
	\end{figure}
		\end{column}
	\end{columns}
\end{frame}
\begin{frame}{Channel Delays Setup}
	\begin{block}{Channel Delay Setup}
		Single input into two channels
		$\mapsto$ delays due to cabling and filterchain
		\\
		Use correlation or phase differences to determine delay
	\end{block}
	\only<1>{\begin{figure}
		\includegraphics[width=0.8\textwidth]{grand/setup/channel-delay-setup.pdf}
		\caption{Single input to two channels}
	\end{figure}}
	\only<2>{\begin{block}{What signal to put in?}
		\begin{itemize}
			\item Sine  $\mapsto$ single frequency response of chain
			\item Pulse $\mapsto$ multiple frequencies to compare
		\end{itemize}
	\end{block}}
\end{frame}

\begin{frame}{Channel Delays Result I: Sine}
	\begin{block}{Sine ch1 ch2}
		Length difference: $1.16m \sim 4ns$ delay
		\\
		@50MHz: delay(ch1, ch2) = $46\mathrm{ps} \pm 10$
	\end{block}
	\begin{figure}
		\includegraphics[width=\textwidth]{grand/split-cable/split-cable-delay-ch1ch2-50mhz-200mVpp.pdf}
		%\caption{"@50MHz: 
%$5.643614156919462 \pm 0.010333456331688352$,
%$-5.598005556921079 \pm 0.012115559927114126$
%		}
	\end{figure}
\end{frame}

\begin{frame}{Channel Delays Result II: Pulse}
	\begin{block}{Pulse ch1 ch2}
		Length difference: $1.16m \sim 4ns$ delay
	\end{block}
	\begin{figure}
		\includegraphics[width=\textwidth]{grand/split-cable/split-cable-delays-ch1ch4.pdf}
	\end{figure}
\end{frame}

%%%%%%%%%%%%%
\end{document}
