% Created 2026-02-16 Mon 11:49
% 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{XXX-opticks, XXX \(\in\) \{EIC, LAr, WbLS\}}
\subtitle{Kick off meeting for extending eic-optics}
\hypersetup{
 pdfauthor={Brett Viren},
 pdftitle={XXX-opticks, XXX \(\in\) \{EIC, LAr, WbLS\}},
 pdfkeywords={},
 pdfsubject={},
 pdfcreator={Emacs 30.1 (Org mode 9.8-pre)},
 pdflang={English}}
\begin{document}

\maketitle
\begin{frame}[label={sec:org7c9185d}]{Topics}
\begin{itemize}
\item Brief overview
\item Scope of the group
\item The LDRD-C parts
\end{itemize}
\end{frame}
\begin{frame}[label={sec:org0c81e2a},shrink=10]{Overview of software parts}
\begin{block}{Opticks related}
\begin{description}
\item[{NVIDIA OptiX}] GPU accelerated ray tracing on RTX hardware
\item[{Opticks}] Integration of \alert{Geant4} and \alert{OptiX} by \href{https://github.com/simoncblyth/opticks}{Simon Blyth}
\item[{eic-opticks}] A fork++ of \alert{opticks} by BNL NPPS (Gabor, et al) originally for EIC detector R\&D.
\item[{xxx-opticks}] Unofficial label for further extension of \alert{eic-opticks} by this group.
\end{description}
\end{block}
\begin{block}{Targeted software}
\begin{description}
\item[{edep-sim}] a Geant4 application and library used most by \alert{DUNE ND}.
\item[{LArG4}] an \emph{art} module integrating Geant4 into LArSoft for \alert{DUNE FD}.
\item[{ratpac2}] software framework with Geant4 module used by \alert{WbLS} and others.
\end{description}
\end{block}
\begin{block}{Possible implications of our work}
\begin{description}
\item[{Wire-Cell Toolkit}] SOTA TPC drift/response sim, signal processing and reconstruction.
\item[{phlex}] DUNE's framework to replace \emph{art}, similar to WCT design.
\item[{tred}] EDG's DUNE ND pixel or FD wire/strip GPU-accelerated drift/response sim
\end{description}
None of these have G4, let alone optical.  Yet\ldots{}.
\end{block}
\end{frame}
\begin{frame}[label={sec:orgab37437}]{Makeup of this group}
\begin{description}
\item[{LDRD-C}] BNL (Gabor+Xuyang+bv), assure \alert{eic-opticks} works for LAr and esp. DUNE using a reference application target (\alert{edep-sim}).
\begin{itemize}
\item LDRD-A proposal (Chao++), includes an eic-opticks component.
\end{itemize}
\item[{LArSoft}] Rice (Aaron+Ilker), integration of \alert{opticks} to \alert{LArG4}.
\begin{itemize}
\item Maybe move to eic-opticks through this group?
\end{itemize}
\item[{WbLS}] BNL (Yousen+Guang), integration of \alert{eic-opticks} to \alert{ratpac2} for water-based liquid scintilator R\&D.
\item[{edep-sim}] Stony Brook (Clark), original author.
\end{description}

\vfill

I now focus on some LDRD-C issues.
\end{frame}
\begin{frame}[label={sec:orgb77851a}]{BNL LDRD-C project}
\begin{block}{Coordinates}
\begin{itemize}
\item Short run: Feb 15 - Sep 30 2026.
\item Xuyang (45\%), Gabor (10\%), Brett (3\%).
\end{itemize}
\end{block}
\begin{block}{Expected results, paraphrased from proposal}
\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 Expertise and planning for integration into future DUNE software framework.
\end{itemize}
\end{block}
\end{frame}
\begin{frame}[label={sec:org6952cc4},shrink=10]{Some technical work items}
\begin{block}{Implementing into edep-sim}
\begin{itemize}
\item Can use GDML from DUNE FD GeGeDe group.
\item Reproduces existing ``optical maps'' from LArG4.
\end{itemize}
\end{block}
\begin{block}{Wavelength shifting}
Two paths to support WLS:

\begin{itemize}
\item Efficiently bring photons back to the CPU for standard G4 WLS, restart results on GPU.

\item Implement WLS physics processes directly on the GPU, ultimately the best approach.
\end{itemize}
\end{block}
\begin{block}{Geometry and shapes}
\begin{itemize}
\item Support what shapes are required for DUNE FD and ND geometry descriptions.

\item Leverage existing work (PNNL) on using \href{https://github.com/brettviren/gegede}{GeGeDe} for DUNE FD geometry description.
\end{itemize}
\end{block}
\begin{block}{Bonus:}
\begin{itemize}
\item Async CPU/GPU processing to maximize GPU utilization.
\end{itemize}
\end{block}
\end{frame}
\begin{frame}[label={sec:orgc4e43cd},shrink=10]{Why edep-sim as the LDRD vehicle?}
\begin{block}{Some self-imposed constraints}
\begin{itemize}
\item Want a low-dependency, high-quality, existing package to accelerate our development.
\item Integration of (base) opticks into LArG4 already handled by Aaron+Ilker.
\begin{itemize}
\item Here, we want to amplify that effort, not compete with it.
\item Enable / assist adoption of eic-optics fork.
\end{itemize}
\item Phlex, Wire-Cell Toolkit and tred currently lack any G4 interface.
\begin{itemize}
\item Developing this interface is a \alert{large effort}.
\item Perhaps edep-sim ends up being the integration target?
\end{itemize}
\item ratpac2 is used by BNL WbLS R\&D which has large optical sim needs
\begin{itemize}
\item BNL hinted the LDRD-C funding should focus on DUNE/LAr but more the merrier.
\end{itemize}
\end{itemize}
\end{block}
\begin{block}{Best candidate: edep-sim}
\begin{itemize}
\item Already used by DUNE and fits satisfies the above constraints.

\item Candidate for providing basis for G4 in phlex and/or WCT.

\item In-house expertise (Xuyang) and the original author lives down the road from BNL.
\end{itemize}
\end{block}
\end{frame}
\begin{frame}[label={sec:org7156a82}]{Which edep-sim?}
\includegraphics[width=\textwidth]{edep-sim-network.png}

\begin{itemize}
\item Original repo: last commit Aug 2022, last release 3.20 Sep 2021.
\item DUNE fork is the most recent, parent of many sub-forks, some being merged back.
\begin{itemize}
\item No releases, last tag 3.0.1 Feb 2021.
\item Most other forks have small number of commits and no merging.
\end{itemize}
\end{itemize}
\end{frame}
\begin{frame}[label={sec:org11de60a}]{Survey of changes in DUNE fork}
\begin{itemize}
\item About 30 commits merged across multiple branches and forks.
\item Last 1.5 years of original repo development was merged in Aug 2025.
\item New: CLI options, shapes, physics, saving of truth, particle bomb.
\end{itemize}

\vfill

My (non-expert) opinion:
\begin{itemize}
\item Changes seem modest and reasonable.
\item We should fork DUNE's fork with intention to PR back.
\end{itemize}
\end{frame}
\begin{frame}[label={sec:org43ba485}]{Rough work plan for LDRD-C}
\begin{itemize}
\item Learn eic-opticks (next talk by Gabor).
\item Define how we will interacts with eic-opticks and edep-sim repos (PRs? pushes? fork?).
\begin{itemize}
\item Need to understand DUNE's many existing forks of edep-sim.
\end{itemize}
\item Set up developer environments (likely Spack based).
\item Demonstrate initial build and run of edep-sim + eic-opticks.
\item Provide wavelength shifting process.
\item Provide support for needed geometry shapes.
\item Reproduce optical maps.
\item Perform benchmarking.
\item Document in 2 papers: compute + physics performance.
\end{itemize}
\end{frame}
\begin{frame}[label={sec:org6d5d775}]{Vision for LDRD + LArG4 + WbLS parts}
\begin{block}{I see us as a working group with many common interests.}
\begin{itemize}
\item I must focus on fulfilling the LDRD project.
\item But, otherwise let's freely mix our ideas and effort to all benefit.
\item I won't manage how LArG4 and WbLS parts go, I leave that to you experts.
\end{itemize}
\end{block}
\begin{block}{Future meetings}
Let's meet weekly or bi-weekly to share progress, ideas, ask questions.

Tuesday morning is not so good.  Can we figure out a time now, quickly?
\end{block}
\begin{block}{One schedule caveat}
I will take extended vacation March 9 - April 3!
\end{block}
\end{frame}
\begin{frame}[label={sec:org3f08ae2}]{}
\Huge
\[\mathcal{FIN}\]
\end{frame}
\end{document}
