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

\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{Vertexing tridents}

\author{Sho Uemura}
\institute{SLAC}
\date[March 11, 2016]

\begin{document}

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

\begin{frame}{Inputs}
	\begin{itemize}
        \item Data: golden runs, pass3 (484551 nC, 77.51 nb$^{-1}$)
            \begin{itemize}
                \item pairs1 trigger, filtered on all SVT flags (bias, position, burst-mode noise, header)
            \end{itemize}
        \item MC: tritrig-beam-tri, pass2, 4962 files (24.73 nb$^{-1}$)
	\item Normalize to 7 PAC days luminosity (5420 nb$^{-1}$)
        \item GBL tracks, unconstrained vertex Z
	\item Data-MC comparisons: black data, red MC
    \end{itemize}
\end{frame}

\begin{frame}{Cuts}
	\begin{itemize}
        \item All cuts applied in org.hps.analysis.dataquality.TridentMonitoring
        \item Cuts copied from 2014 proposal:
            \begin{itemize}
                \item Quality: track GBL chi2 $<40$, beamspot-constrained vertex chi2 $<5$
                \item Beamspot-constrained vertex X and Y within 0.4 mm of origin
                \item Track cuts: require top-bottom, $p(e^-),p(e^+)<0.85$ GeV
                %\item Clusters: require track-cluster match, cluster $\Delta t<2.5$
                \item Radiative cut: $p(V0)>0.8*E_{beam}$
                \item Event cut: $<=5$ tracks, exactly 1 positron track in event
                \item Front layers: require L1 and L2 hits
                \item L1 isolation: require $>0.5$ mm to nearest strip
            \end{itemize}
	\item No cluster information used
    \end{itemize}
\end{frame}

\begin{frame}{Vertex distributions}
	\begin{columns}
		\column{0.6\textwidth}
	\begin{itemize}
		\item I see the same data-MC differences Matt does (lower mass peak in MC, more low-energy tridents)
	\end{itemize}
		\column{0.4\textwidth}
		\includegraphics[width=\textwidth]{golden-mgraham-zvsmass}
	\end{columns}
	\begin{center}
		\includegraphics[width=0.5\textwidth]{golden-mgraham-mass}
		\includegraphics[width=0.5\textwidth]{overlay-mgraham-massnorm}
	\end{center}
\end{frame}

\begin{frame}{Vertex resolution}
	\begin{columns}
		\column{0.6\textwidth}
	\begin{itemize}
		\item Fit the Gaussian core of the vertex distribution, and exponential tail
		\item Good data-MC agreement
	\end{itemize}
		\column{0.4\textwidth}
		\includegraphics[width=\textwidth]{golden-mgraham-28}
	\end{columns}
	\begin{center}
		\includegraphics[width=0.5\textwidth]{overlay-mgraham-sigma}
		\includegraphics[width=0.5\textwidth]{vertexRes-1pt1-2pt2-6pt6}
	\end{center}
\end{frame}

\begin{frame}{Vertex tails}
	\begin{columns}
		\column{0.6\textwidth}
	\begin{itemize}
		\item Count vertices outside of 3$\sigma$: tails are roughly $10^{-2}$ of total
		\item Tails asymmetric as expected
		\item Good data-MC agreement
	\end{itemize}
		\column{0.4\textwidth}
		\includegraphics[width=\textwidth]{golden-mgraham-hightails}
	\end{columns}
	\begin{center}
		%\includegraphics[width=0.5\textwidth]{golden-norm-lowtails}
		\includegraphics[width=0.5\textwidth]{overlay-mgraham-lowtails}
		\includegraphics[width=0.5\textwidth]{overlay-mgraham-hightails}
	\end{center}
\end{frame}

\begin{frame}{Vertex Z-cut}
	\begin{columns}
		\column{0.6\textwidth}
		\begin{itemize}
			\item Z cut: E(events with z>zcut)=0.5
			\begin{itemize}
				\item Blue curve on right is from proposal
			\end{itemize}
			\item Fit vertex tail to exponential
			\item Normalize to 7 PAC days
		\end{itemize}
		\column{0.4\textwidth}
			\includegraphics[width=\textwidth]{zcut}

			%\includegraphics[width=\textwidth]{tails}
	\end{columns}
	\begin{center}
		\includegraphics[width=0.5\textwidth]{slice-36}
		\includegraphics[width=0.5\textwidth]{overlay-mgraham-zcut}

	\end{center}
\end{frame}

                        %Tridend Selection Summary
%******************************************************************************************
%Number of      V0:        244156        1.000000        1.000000        2.734477
%
%Trk Quality  Cuts:         97560        0.399581        0.399581        1.092644
%Vtx Quality  Cuts:         89645        0.918870        0.367163        1.003998
%Vtx Cuts     Cuts:         66881        0.746065        0.273927        0.749048
%Timing       Cuts:         63787        0.953739        0.261255        0.714396
%Trk Cuts     Cuts:         60044        0.941320        0.245925        0.672476
%Cluster      Cuts:         60044        1.000000        0.245925        0.672476
%Evt Quality  Cuts:         48504        0.807808        0.198660        0.543231
%******************************************************************************************
                        %Vertex Selection Summary
%******************************************************************************************
%Front Hits   Cuts:         46286        0.954272        0.189576        0.518390
%Isolation    Cuts:         31915        0.689517        0.130716        0.357439
%******************************************************************************************

                        %Tridend Selection Summary
%******************************************************************************************
%Number of      V0:       4297159        1.000000        1.000000        4.218178
%
%Trk Quality  Cuts:        557075        0.129638        0.129638        0.546836
%Vtx Quality  Cuts:        462803        0.830773        0.107700        0.454297
%Vtx Cuts     Cuts:        326882        0.706309        0.076069        0.320874
%Timing       Cuts:        300129        0.918157        0.069844        0.294613
%Trk Cuts     Cuts:        262896        0.875943        0.061179        0.258064
%Cluster      Cuts:        262896        1.000000        0.061179        0.258064
%Evt Quality  Cuts:        205592        0.782028        0.047844        0.201813
%******************************************************************************************
                        %Vertex Selection Summary
%******************************************************************************************
%Front Hits   Cuts:        159449        0.775560        0.037106        0.156518
%Isolation    Cuts:         93977        0.589386        0.021870        0.092250
%******************************************************************************************
\end{document}
