\documentclass[hyperref=pdftex, presentation]{beamer}
% Replacing 'presentation' with 'handout' in the above line
% will produce 4 slides per page.
% The hyperref option makes it possible to include hyperlinks.

\mode<presentation> {
\usetheme{Boadilla}
\setbeamercovered{transparent}
}

\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
\usepackage{times}
\usepackage[T1]{fontenc}

\mode<handout>{
\usepackage{pgfpages}
\pgfpagesuselayout{4 on 1}[letterpaper,landscape,border shrink=5mm]
\setbeamercolor{background canvas}{bg=black!10} }

\setbeamertemplate{footline}
{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author
	in head/foot}%
	\usebeamerfont{author in head/ foot}\insertshortauthor%&\approx& (\insertshorti
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title
	in head/foot}%
	\usebeamerfont{title in head/foot}\insertshorttitle
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date in
	head/foot}%
	\usebeamerfont{date in head/foot}\insertshortdate\hspace*{2em}
	\insertframenumber / \inserttotalframenumber\hspace*{2ex}
\end{beamercolorbox}}%
\vskip0pt%
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\title{MC and data, production and reconstruction}

\author{Sho Uemura}
\institute{SLAC}
\date[June 6, 2013]

\begin{document}

\begin{frame}
	\titlepage
\end{frame}

\begin{frame}{Summary}
	\begin{itemize}
		\item Simulation needs and simulation chain
		\item Offline computing model
	\end{itemize}
\end{frame}

\begin{frame}{Simulation samples}
	\begin{itemize}
		\item Beam background for trigger and filtering studies
			\begin{itemize}
				\item 1 million triggers ($\approx$1 minute of beam) per beam energy
				\item We currently have 0.1 s ($\approx$2000) of beam per beam energy
			\end{itemize}
		\item A' with background pileup
			\begin{itemize}
				\item 100 million triggers per mass ($\approx$10 masses) and beam energy; also some detached-vertex
				\item We currently have up to $\approx$20000 ($1\times 10^5$ unfiltered candidates)
			\end{itemize}
		\item Tridents with background pileup
			\begin{itemize}
				\item 10\% of the number of trident triggers we expect in data? 100 million triggers?
				\item This is the only sample that doesn't actually exist yet
			\end{itemize}
	\end{itemize}
\end{frame}

\begin{frame}{Event generation}
	\begin{itemize}
		\item StdHep files for particles coming out of the target:
		\begin{itemize}
			\item Beam background
				\begin{itemize}
					\item EGS5 for multiple scattering, EM interactions
					\item MadGraph tridents
				\end{itemize}
			\item Trigger candidates
				\begin{itemize}
					\item A' tridents from MadGraph
					\item Trigger-enhanced background tridents from MadGraph
				\end{itemize}
		\end{itemize}
		\item C++ scripts to merge files into beam bunches
	\end{itemize}
\end{frame}

\begin{frame}{Detector simulation}
	\begin{columns}
		\column{0.7\textwidth}
		\begin{itemize}
			\item SLIC (Geant4) simulates each beam bunch in the detector
			\item Geant4 v9.3p02, QGSP\_BERT physics list
			\item Detector geometry contains everything from the target to the ECal; no muon detector yet
			\item Hits saved to LCIO file
		\end{itemize}
		\column{0.3\textwidth}
		\includegraphics[width=\textwidth]{v3_all}
	\end{columns}
\end{frame}

\begin{frame}{Readout and trigger simulation}
	\begin{columns}
		\column{0.6\textwidth}
		\begin{itemize}
			\item Simulate pulse shapes and readout pipelines for ECal preamp/FADC and SVT APV25
			\item Associate SVT readout hits with MC primary particles
			\item FADC, CTP, SSP simulated as part of trigger decision
			\item Detector pipelines read out after trigger; digitized hits saved to LCIO file
			\item Data quality: quick summary of hit rates
			\item LCIO file can be converted to EVIO and vice versa
		\end{itemize}
		\column{0.4\textwidth}
		\includegraphics[width=\textwidth]{readout_time}
	\end{columns}
\end{frame}

\begin{frame}{Reconstruction}
	% \begin{columns}
	% 	\column{0.6\textwidth}
		\begin{itemize}
			\item Apply gains to ECal hits; make clusters
			\item Fit SVT samples to get times and amplitudes; make clusters
			\item Drop out-of-time SVT hits and make tracks
			\item Save reconstructed objects to LCIO file; make data quality summary
			\item Summary ROOT tree (DST) generated from LCIO file
		\end{itemize}
	% 	\column{0.4\textwidth}
	% 	\includegraphics[width=\textwidth]{readout_time}
	% \end{columns}
\end{frame}

\begin{frame}{Production}
	% \begin{columns}
	% 	\column{0.6\textwidth}
	\begin{itemize}
		\item So far everything has been done at SLAC
		\begin{itemize}
			\item Simulation and test run recon available on web
		\end{itemize}
		\item For full-scale production, all at JLab
		\item Roughly a million CPU hours and 500 TB for the commissioning run
		\item Transfer only DSTs to SLAC: roughly 50 TB
	\end{itemize}
	% 	\column{0.4\textwidth}
	% 	\includegraphics[width=\textwidth]{readout_time}
	% \end{columns}
\end{frame}

% \begin{frame}{Steps to full production}
% 	% \begin{columns}
% 	% 	\column{0.6\textwidth}
% 	\begin{itemize}
% 		\item Check the event generation and simulation tools
% 		\begin{itemize}
% 			\item Geant4 version?
% 		\end{itemize}
% 		\item Muon detector geometry
% 		\item Data catalog
% 		\item JLab CC resource request
% 	\end{itemize}
% 	% 	\column{0.4\textwidth}
% 	% 	\includegraphics[width=\textwidth]{readout_time}
% 	% \end{columns}
% \end{frame}


% \begin{frame}{Readout and recon collections}
% 	\begin{itemize}
% 		\item Readout has hits, plus MC truth information:
% 			\begin{itemize}
% 				\item SLIC collections (MCParticles, SimTrackerHits, SimCalorimeterHits) from ``trigger candidate''
% 					\begin{itemize}
% 						\item Not usable for beam background
% 					\end{itemize}
% 				\item Readout timestamps (used to sync trigger, SVT hits and ECal hits)
% 				\item RawTrackerHits are linked to SimTrackerHits
% 					\begin{itemize}
% 						\item In progress
% 					\end{itemize}
% 			\end{itemize}
% 		\item Recon has truth information, plus:
% 			\begin{itemize}
% 				\item ECal hits: ECalCalHits
% 				\item ECal clusters: EcalClusters
% 				\item SVT clusters: StripClusterer\_SiTrackerHitStrip1D
% 				\item SVT stereo hits: RotatedHelicalTrackHits
% 				\item SVT tracks: MatchedTracks
% 				\item ReconstructedParticles
% 			\end{itemize}
% 	\end{itemize}
% \end{frame}

\end{document}

