\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}
\usepackage{wrapfig}
\usepackage{graphicx}

\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%
}

\newcommand{\backupbegin}{
\newcounter{framenumberappendix}
\setcounter{framenumberappendix}{\value{framenumber}}
}
\newcommand{\backupend}{
\addtocounter{framenumberappendix}{-\value{framenumber}}
\addtocounter{framenumber}{\value{framenumberappendix}} 
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%\title[GEANT4/EGS5]{GEANT4/EGS5}

\title{Reproducing Omar's selection}

\author{Sho Uemura}
\institute{SLAC}
\date[June 17, 2016]

\begin{document}

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

\begin{frame}{Omar's selection}
	\begin{enumerate}
		\item Apply initial cuts to $e^+e^-$ pairs (GBL track fit, target-constrained vertex fit):
			\begin{itemize}
				\item Pair1 trigger
				\item Exactly one positron in event
				\item Good track-cluster match (3$\sigma$ cuts in X and Y)
				\item Clusters in opposite halves of the ECal
				\item Cluster $|\Delta t|<1.6$ ns
			\end{itemize}
		\item Loop through $e^+e^-$ pairs and pick the one with the best target-constrained vertex $\chi^2$
		\item Apply additional cuts:
			\begin{itemize}
				\item Both tracks must have $\chi^2<15$
				\item $p(e^-), p(e^+) < 0.85$ GeV
				\item Elliptical vertex cut: $((v_x- 0.0113)^2/0.04) + ((v_y- 0.003324)^2/0.0025) <1$
				\item Vertex $\chi^2<10$
				\item $p(V_0) > 0.8$ GeV
			\end{itemize}
	\end{enumerate}
\end{frame}

\begin{frame}{Omar's selection --- track $\chi^2$}
	\begin{center}
		\includegraphics[width=0.7\textwidth]{trk_chisq}

		\includegraphics[width=0.4\textwidth,page=1]{omar_selection}
		\includegraphics[width=0.4\textwidth,page=2]{omar_selection}
	\end{center}
\end{frame}

\begin{frame}{Omar's selection --- track $p$}
	\begin{center}
		\includegraphics[width=0.7\textwidth]{trk_p}

		\includegraphics[width=0.4\textwidth,page=3]{omar_selection}
		\includegraphics[width=0.4\textwidth,page=4]{omar_selection}
	\end{center}
\end{frame}

\begin{frame}{Omar's selection --- vertex position}
	\begin{center}
		\includegraphics[width=0.7\textwidth]{v0_xy}

		\includegraphics[width=0.4\textwidth,page=5]{omar_selection}
		\includegraphics[width=0.4\textwidth,page=6]{omar_selection}
	\end{center}
\end{frame}

\begin{frame}{Omar's selection --- vertex $p$, $m$}
	\begin{center}
		\includegraphics[width=0.4\textwidth]{v0_p}
		\includegraphics[width=0.4\textwidth]{mass}

		\includegraphics[width=0.4\textwidth,page=7]{omar_selection}
		\includegraphics[width=0.4\textwidth,page=8]{omar_selection}
	\end{center}
\end{frame}

%\begin{frame}{Optimizing mass resolution}
%\begin{itemize}
%\item Mass is opening angle times momentum
%\item Opening angle is (distance between L1 hits)/(distance from vertex to L1)
%\item Can isolate effects of different resolutions by looking at Mollers: unconstrained vs. Z constrained, with and without momentum correction
%\end{itemize}
%\begin{center}
%\begin{tabular}{|l|r|}
%\hline
%Constraints & $\sigma_m$ \\
%\hline
%Unconstrained & 2.31 \\
%Unconstrained, momentum-corrected & 1.77 \\
%Z-constrained & 1.65 \\
%Z-constrained, momentum-corrected & 0.76 \\
%\hline
%\end{tabular}
%\begin{tabular}{|l|r|}
%\hline
%Constraints & $\sigma_m$ \\
%\hline
%Unconstrained & 2.72 \\
%Unconstrained, momentum-corrected & 2.12 \\
%Z-constrained & 1.77 \\
%Z-constrained, momentum-corrected & 1.11 \\
%\hline
%\end{tabular}
%\end{center}
%\end{frame}

\begin{frame}{New selection}
	\begin{itemize}
		\item Cuts should (without killing signal statistics):
			\begin{itemize}
				\item Get rid of accidentals
				\item Improve mass resolution
				\item Get rid of mass tails
			\end{itemize}
		\item $|\Delta t|$ distributions tell us about accidentals
		\item Mollers guide us on mass resolution (can isolate resolutions for momentum, L1 hit separation, vertex Z)
		\item MC tells us about everything else
		\item Working with a loose selection
	\end{itemize}
	\begin{center}
		\includegraphics[width=0.4\textwidth,page=8]{loose_selection}
	\end{center}
\end{frame}

\end{document}
