% Created 2026-03-06 Fri 08:25
% 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}
\usetheme{default}
\author{Brett Viren}
\date{\today}
\title{nu-opticks}
\subtitle{Bringing eic-opticks to LAr and WbLS}
\hypersetup{
 pdfauthor={Brett Viren},
 pdftitle={nu-opticks},
 pdfkeywords={},
 pdfsubject={},
 pdfcreator={Emacs 30.1 (Org mode 9.8-pre)},
 pdflang={English}}
\begin{document}

\maketitle
\begin{frame}[label={sec:org63ffcc9}]{Topics}
\begin{itemize}
\item Opticks and EIC-Opticks
\item The LDRD-C
\begin{itemize}
\item Promises
\item Plans
\item Progress
\end{itemize}
\item Organization
\item Going forward
\end{itemize}
\end{frame}
\begin{frame}[label={sec:orgc6fd306}]{Opticks}
Created by Simon Blyth around the time of Daya Bay \(\to\) JUNO
\begin{itemize}
\item Based on NVIDIA OptiX + CUDA for Ray Tracing (RTX) GPUs
\item \alert{Accelerates Geant4 optical photon transport by 100x}
\end{itemize}

\begin{center}
\includegraphics[height=4cm]{Geant4OpticksWorkflow.001.png}
\end{center}

\tiny
\url{https://simoncblyth.bitbucket.io/env/Documents/Geant4OpticksWorkflow/Geant4OpticksWorkflow.001.png}
\end{frame}
\begin{frame}[label={sec:org617f924}]{DayaBay/Opticks example output (Simon Blyth)}
\begin{center}
\includegraphics[height=6cm]{dayabay-principal_half.png}
\end{center}

\tiny

\url{https://simoncblyth.bitbucket.io/env/presentation/dayabay-principal_half.png}
\end{frame}
\begin{frame}[label={sec:orgfc4c191}]{JUNO/Opticks example output (Simon Blyth)}
\begin{center}
\includegraphics[height=6cm]{jpmt-inside-wide_crop.png}
\end{center}

\tiny

\url{https://simoncblyth.bitbucket.io/env/graphics/ggeoview/jpmt-inside-wide_crop.png}
\end{frame}
\begin{frame}[label={sec:orgf1d13e1}]{EIC-Opticks = Opticks + more}
Started with LDRD for EIC detector R\&D
\begin{itemize}
\item \url{https://arxiv.org/abs/2512.06061}
\item \textbf{Gabor Galgoczi}, Kolja Kauder, Maxim Potekhin, Sakib Rahman, Dmitri Smirnov, Torre Wenaus
\end{itemize}
Some of the features added:
\begin{itemize}
\item Multi-event photon batching for better GPU utilization.
\item Support for spherical mirror and open cones.
\item Warning for deeply nested boolean geoms (performance pathology).
\item User support scripts for photon leakage etc.
\end{itemize}
Some future plans:
\begin{itemize}
\item Async G4/Opticks interface to bring CPU+GPU parallelism, less idling.
\item Grouping of photons by expected number of steps for better GPU utilization.
\item Wavelength shifting processes (needed by LAr/WbLS).
\end{itemize}
\end{frame}
\begin{frame}[label={sec:orgf9a0dd2}]{The LDRD-C}
Extend eic-opticks to support neutrino detectors.
\begin{itemize}
\item Circuitous path: initiated by Gabor in NPPS for WbLS, ended up in EDG for LAr/DUNE.
\item Short funding period: Feb 15 - Sep 30 2026.
\item Xuyang (45\%), Gabor (co-PI, 10\%), Brett (co-PI, 3\%)
\end{itemize}

Expected results:
\begin{itemize}
\item Implement eic-opticks in framework-independent production-ready application.
\item Validate its optical physics models as relevant to LAr / DUNE.
\item Produce benchmarks and guidance for CPU/GPU hardware specs.
\item Gain expertise and planning for integration into future DUNE software framework.
\end{itemize}
\end{frame}
\begin{frame}[label={sec:org9ffe987},fragile]{Plans}
 \begin{itemize}
\item Will use Clark McGrew's \texttt{edep-sim} as the target Geant4 application.
\begin{itemize}
\item Why: used by DUNE ND, \emph{art} and LArSoft is too ``old'', phlex is too ``new''.
\end{itemize}
\item Two phase development plan.
\begin{enumerate}
\item Quickly ``hack'' opticks into edep-sim, replacing G4 optical, learn both codes, throw away.
\item Develop proper design with compile-time and run-time choices to use opticks or vanilla G4.
\end{enumerate}
\item Along the way: test out further improvements in eic-opticks.
\begin{itemize}
\item New volume shapes (extrusion).
\item Wavelength shifting process.
\item Performance improvements.
\end{itemize}
\end{itemize}
\end{frame}
\begin{frame}[label={sec:org15d53da},fragile]{Progress so far}
 \begin{itemize}
\item Assembled a group (``nu-opticks'' = eic-opticks + LDRD + WbLS + Larsoft)
\begin{itemize}
\item BNL: Xuyang, Gabor, Brett (LDRD-C) and Yousen (WbLS) and Chao (future LDRD-A).
\item SBU: Clark McGrew (edep-sim),
\item Rice: Aaron Higuera and Ilker Parmaksiz (transition LArSoft opticks \(\to\) eic-opticks)
\end{itemize}
\item Initial toy LAr detector geometry (Xuyang).
\begin{itemize}
\item For initial simplicity, will support official GeGeDe geometry.
\end{itemize}
\item \texttt{edep-sim} version 4.0.0 release w/ cherry picks from DUNE fork (Clark)
\item \texttt{edep-sim + eic-opticks} developer environment (Brett).
\begin{itemize}
\item Simple, Spack-based ecosystem.
\end{itemize}
\item Initial exercising of existing edep-sim optical support (Xuyang).
\end{itemize}
\end{frame}
\begin{frame}[label={sec:org309634b},fragile,shrink=10]{Future thinking: two main thrusts and some navel gazing}
 \begin{block}{Chao's LDRD-A has an eic-opticks component}
\begin{itemize}
\item Leverage LDRD-C experience to quickly integrate eic-optics into LDRD-A software.
\item Accelerated photons generally support the other LDRD-A R\&D goals,
\begin{itemize}
\item In particular, to produce large training sets for LDRD-A's ``surrogate detector'' ML model.
\end{itemize}
\end{itemize}
\end{block}
\begin{block}{Future DUNE integration}
\begin{itemize}
\item \texttt{edep-sim} is used for \alert{ND} and will benefit from our work ``for free''.
\item \alert{FD} story is more cloudy in detail but broad strokes are clear:
\begin{itemize}
\item We will work with \alert{Rice} to help them swap opticks \(\to\) eic-opticks in LArSoft's LArG4.
\item FNAL is porting LArG4 to \alert{phlex} which may carry along opticks additions.
\end{itemize}
\end{itemize}
\end{block}
\begin{block}{Going further in the phlex era}
\footnotesize

The patterns we explore in our \alert{opticks}, \alert{SPNG} and \alert{tred} works motivate a \alert{novel,
sophisticated integration} that leverages phlex's design in ways that transcend
\emph{art} patterns (phlex execution model essentially that of Wire-Cell Toolkit).
This could result in software that will better serve \alert{modern needs} such as \alert{ML
training, GPU acceleration and multi-threading}.
\end{block}
\end{frame}
\begin{frame}[label={sec:org4a96972}]{}
\Huge
\[\mathcal{FIN}\]
\end{frame}
\begin{frame}[label={sec:orgef2646b}]{Backups}
\end{frame}
\end{document}
