\documentclass[xcolor=dvipsnames]{beamer}

\setbeamertemplate{navigation symbols}{}
%\setbeamertemplate{background}[grid][step=1cm]
\useoutertheme{infolines}

\usepackage{listings}
\usepackage{graphicx}
\usepackage{color}
\usepackage{hyperref}
\author{Brett Viren}
\institute[BNL]
{
  Physics Department

  
}
\title{DUNE Collab Phone Conf}
\date{2015/05/08}

\newcommand{\fixme}[1]{\textbf{FIXME:} \textit{#1}}

\newlength{\overlaywd}
\newlength{\overlayht}
\newcommand{\overlay}[4]{%
  \settowidth{\overlaywd}{#2}\settoheight{\overlayht}{#2}%
  \raisebox{#4\overlayht}{%
    \makebox[0pt][l]{\hspace{#3\overlaywd}%
      #1}}%
  #2}%

\begin{document}
\lstset{%
  emphstyle=\color{red},
  keywordstyle=\color{black}\bfseries,
  basicstyle=\footnotesize,
  identifierstyle=\color{DarkOrchid}\ttfamily,
  commentstyle=\color{Brown}\ttfamily,
  stringstyle=\color{blue}\ttfamily,
  showstringspaces=false}

\begin{frame}
  \frametitle{Two Important Issues for DUNE Data Rate Estimations}
  \tableofcontents
\end{frame}

\section{$^{39}$Ar event size, data rates, and zero suppression threshold.}
\begin{frame}
  \frametitle{Zero Suppression Threshold and $^{39}$Ar Event Size}
  \footnotesize
  \begin{itemize}
  \item Endpoint 565 keV, $\sim$25\% above \textbf{ZS threshold of 500 keV}
    (\href{http://lbne2-docdb.fnal.gov:8080/cgi-bin/ShowDocument?docid=3018}{LBNE DocDB 3018})
  \item 1.0 Hz/kg $^{39}$Ar decay (ICARUS $^{39}$Ar/$^{42}$Ar NIM paper)
  \item $^{39}$Ar event size: \textbf{100 samples} ($10\mu$s/waveform * 2
    samples/$\mu$s * 5 wires) \\
    (1 collection wire, 2 each from induction planes).
    Prior estimate was 24 samples.
  
  \end{itemize}
  \begin{center}
    \includegraphics[width=10cm]{shaping}

    Need \textbf{at least} 10$\mu$s to capture waveform of point ionization \\
    because of \textbf{electronics shaping time}.

    \scriptsize
    (data from
    \href{http://lbne2-docdb.fnal.gov:8080/cgi-bin/ShowDocument?docid=10651}{DocDB
      10651}, plot by Xin Qian)
  \end{center}

  \begin{itemize}
  \item $^{39}$Ar total = \textbf{53 PB/year!} In-spill = \textbf{159
      TB/year}.  \\
    Just with-beam-$\nu$
    activity = \textbf{79 GB/year}.
  \item \textbf{Can we simply raise zero-suppression threshold to 0.6 MeV???}
  \end{itemize}
\end{frame}

\section{$\sim$GeV event size estimation}

\begin{frame}
  \frametitle{Size of $\sim$GeV events: 10MB $\to$ 2.5MB $\to$ 0.1MB}
  \begin{itemize}
  \item Initial estimate (T.Junk) using LArSoft
    \texttt{raw::RawDigit/fADC}: 
    10MB/event uncompressed (UC), zero-suppressed (ZS)
  \item I confirm the estimate but find some unneeded bits:
    \begin{itemize}
    \item duplicate counts for number of samples/channel.
    \item \texttt{pedestal}, \texttt{sigma} and \texttt{compression}
      integers on \textbf{all} channels/readouts.
    \end{itemize}
  \item If I ignore these: \textbf{2.5MB/event} (UC, ZS).
    \begin{itemize}
    \item With ROOT \textbf{compression}: $\sim$\textbf{0.1MB/event} (at $\sim$10GeV)
    \end{itemize}
  \item Still bloated: 100 MeV is still 2.45MB/event!

    First principles, expect MIP: $\sim$20 kByte/GeV (UC, ZS).
    \begin{itemize}
    \item More than $\sim$2MB/event is empty-channel overhead
    \item However, it's quite compressible ($\times 25$)    
    \end{itemize}
  \end{itemize}
  For now, we take \textbf{2.5MB/event} (UC, ZS), \textbf{0.1MB/event}
  (comp+ZS).
\end{frame}

\begin{frame}
  \frametitle{Etc}

  \begin{itemize}
  \item See CDR's
    \href{https://lbne.bnl.gov/tmp/annex-rate.pdf}{\texttt{annex-rate.pdf}}
    for some details.
    
    \begin{itemize}\scriptsize
    \item All parameters in \texttt{cdr/data/parameters.xls} and \texttt{cdr/python/parameters.py}.
    \item Please locate bugs!
    \item Fixes get automatically rolled into \texttt{annex-rate.pdf}
      and S\&C CDR chapter.
    \end{itemize}
  \item Not all these updates got in to CDR release ``\texttt{v6}''
    for the editorial team review.
  \item If we can avoid the empty-channel overhead bloat, expect
    further reduction in the $\sim$GeV scale event sizes.
  \item[$\rightarrow$] We need to rework SPCP run plan in light of
    this improved data size estimate!
  \end{itemize}

\end{frame}

\end{document}
