% TEXINPUTS=.:$HOME/git/bvtex: latexmk  -pdf <main>.tex
\documentclass[xcolor=dvipsnames]{beamer}

\input{defaults}
\input{beamer/preamble}

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

\usepackage{siunitx}
\usepackage{xmpmulti}
\usepackage[export]{adjustbox}
\usepackage{ulem}
\usepackage[outline]{contour}
\usepackage{pdfpages}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric, arrows}
\usetikzlibrary{positioning}

\definecolor{bvtitlecolor}{rgb}{0.98, 0.92, 0.84}
\definecolor{bvoutline}{rgb}{0.1, 0.1, 0.1}

\renewcommand{\bvtitleauthor}{Brett Viren}
\renewcommand{\bvtit}{title}
\renewcommand{\bvtitle}{\LARGE DUNE FD DAQ Task Assignments}
\renewcommand{\bvevent}{{\small LI DUNE -- 28 Mar 2018}}
\renewcommand{\bvdate}{28 Mar 2018}
\renewcommand{\bvbeamerbackground}{}

\def\Put(#1,#2)#3{\leavevmode\makebox(0,0){\put(#1,#2){#3}}}

\begin{document}
\input{beamer/title.tex}

\begin{frame}
  \frametitle{Current, High-level DAQ Design}

  \vspace{-5mm}

  \begin{center}
    \includegraphics[width=\textwidth]{hl.pdf}
  \end{center}
\end{frame}


\begin{frame}
  \frametitle{What's going on?}
  \begin{itemize}
  \item DUNE FD DAQ working group leaders each generated a list of
    tasks needed on the road to the TDR.
  \item Last two weeks they've been presented to the DAQ consortium.
  \item About 12 lists, many of them rather detailed.
  \item Consortium wants to assign institution names to tasks.
  \end{itemize}
  We will provide this in the form of our own task list drawn from, if
  maybe not identical to the WG leaders'.
\end{frame}

\begin{frame}
  \frametitle{Presentations}
  Links to Indico meetings covering DAQ task lists:
  \begin{itemize}
  \item \href{https://indico.fnal.gov/event/16640/}{``R\&D Proposals from WG's''}
  \item \href{https://indico.fnal.gov/event/16742/}{All presentations in the session}
  \item \href{https://indico.fnal.gov/event/16769/}{``Continued discussions: R\&D Proposals from WG's''}
  \end{itemize}

  \vfill

  Some specific items highlighted next:
\end{frame}

\begin{frame}
  \frametitle{Giovana / FELIX}
  \begin{itemize}
  \item Covers FELIX in the nominal design plus option to delete RCE
    and do trigger production on CPU (possibly + GPU)
  \item Break down to three categories:
    \begin{enumerate}\footnotesize
    \item FPGA $\to$ host RAM at 20-40 GB/s, evaluate new PCIe
      versions, data sorting, ``hit'' tagging in firmware.
    \item Host RAM $\to$ trigger farm, $\frac{3}{8}^{th}$ full data to
      trigger primitive production, can use 1 FELIX APA from protoDUNE
      for full rate data tests.
    \item Host RAM to persistent for SNB dumps: track tech, understand
      multiplicity driven by bandwidth.
    \item Also: feasibility studies looking at vertical slice with
      trigger, event selection and output disk.
    \end{enumerate}
  \end{itemize}

  \href{https://indico.fnal.gov/event/16640/contribution/1/material/1/0.pptx}{Link to slides}
  with more details including milestone estimates.
\end{frame}

\begin{frame}
  \frametitle{Josh / Triggering}

  \begin{itemize}\footnotesize
  \item 11 tasks with subtasks separated into
    \textcolor{ForestGreen}{Physics} and \textcolor{red}{Technical}.
  \item Simulation studies to develop trigger algorithms at all levels
    of hierarchy:
    \begin{itemize}\scriptsize
    \item primitive $\to$ candidate $\to$ command
    \end{itemize}
  \item Estimate latency, data rates and CPU/FPGA requirements.
  \item Model excess noise, develop schemes to detect and block
    triggering due to ``haywire'' APA.
  \item Integrate PDS info to triggering.
  \item Demonstrate full end-to-end data selection with realistic rates.
  \end{itemize}


  \href{https://indico.fnal.gov/event/16769/contribution/0/material/slides/0.pdf}{Link
    to slides} with details and specific task guidance.


\end{frame}

\begin{frame}
  \frametitle{Also}

  \begin{itemize}\footnotesize
  \item
    \href{https://indico.fnal.gov/event/16640/contribution/1/material/slides/0.pdf}{Giles
      Barr} list of 14 categories of studies comprehensive across the
    DAQ with comments on status and detailed suggestions for more
    work.  Too much to list here.
  \item
    \href{https://indico.fnal.gov/event/16769/contribution/0/material/0/0.pdf}{Kurt
      Biery} back end computing. 
    FELIX/PCIe bandwidth, SNB datapath, CPU needs for post trigger
    selection, vertical slice test, trigger latency, run control,
    fault-tolerant data flow, data model, use of coprocessors in
    \textit{artdaq}.
  \item
    \href{https://indico.fnal.gov/event/16742/contribution/0/material/slides/0.pdf}{Matt
      Graham} RCE tech dev, proposes a generic ``emulator'' board to
    fake various sources/sinks in the WIB-RCE-FELIX path for
    development.
  \item
    \href{https://indico.fnal.gov/event/16742/contribution/1/material/slides/0.pptx}{David
      Cussans} RCE tech dev, ``carrier board'' (?), demonstrate
    WIB-RCE-FELIX-PC throughput, timing system.
  \end{itemize}

  Common thread: vertical slice demonstration.
\end{frame}

\begin{frame}
  \frametitle{Initial BNL Task List}
  \begin{itemize}
  \item FELIX hardware/firmware:
    \begin{itemize}\scriptsize
    \item Hucheng will get a post-doc, exact tasks still t.b.d. (some in v.slice below)
    \end{itemize}
  \item Software development:
    \begin{itemize}\scriptsize
    \item \textbf{Wire-Cell Toolkit signal and noise simulation} for
      DUNE, proper hardware addressing and something close to raw
      stream format, Geant4 input.
    \item \textbf{Trigger primitives on CPU} multi-threaded, SIMD
      optimization, ring buffer integration.
    \item \textbf{Hierarchical trigger} prototype and evaluate system
      architecture.
    \end{itemize}
  \item Simulation studies:
    \begin{itemize}\scriptsize
    \item Use WCT sim as fodder to develop and evaluate trigger primitive algs.
    \item Include different models for excess/coherent noise.
    \end{itemize}
  \item Vertical slice demonstrator
    \begin{itemize}\scriptsize
    \item Develop FELIX-as-WIB emulator (firmware) serving data from WCT sim
    \item FELIX-as-FELIX receive data, xfer to RAM.
    \item Run trigger primitive algs 
    \item Mock or prototype hierarchical trigger and data selection systems.
    \item Goal to demonstrate and understand scaling and costs.
    \item Collaborate with CERN, Nikhef and others.
    \end{itemize}
  \end{itemize}

  \scriptsize This is biased toward my interests, we must fill in what others want to do!
\end{frame}

\begin{frame}
  \frametitle{Next}
  \begin{itemize}
  \item Interested people, let's meet tomorrow or Friday.
  \item Discuss details and any questions.
  \item Flesh out and ``finalize'' BNL list.
  \item Present to DAQ consortium on April 3rd.
  \end{itemize}
\end{frame}


\end{document}

