\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[GEANT4/EGS5]{GEANT4/EGS5}

\title[LCSim geometry]{LCSim geometry}

\author{Sho Uemura}
\institute{SLAC}
\date[November 21, 2012]

\begin{document}

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

\begin{frame}{Coordinate systems: beamline vs. LCSim}
	\begin{columns}
		\column{0.4\textwidth}
		\begin{itemize}
			\item $y=0$ is beam plane
			\item $z=0$ is front lip of magnet
			\item Only disagreement is in $x=0$ reference
				\begin{itemize}
					\item Beamline people use either beam-without-chicane or magnet center line as $x=0$ reference
					\item I use beam spot on target as $(0,0,0)$; magnet center line is $x=21.17$ mm
				\end{itemize}
		\end{itemize}
		\column{0.6\textwidth}
		\includegraphics[width=\textwidth]{beam_positions}
	\end{columns}
\end{frame}

\begin{frame}{Sources}
	\begin{columns}
		\column{0.45\textwidth}
		\begin{itemize}
			\item From drawings and surveys
				\begin{itemize}
					\item Front face of ECal is 55 mm from rear face of flange
					\item ECal center line is 21.38 mm from magnet center line ($x=42.55$)
					\item Flange $x$ offset not quite clear, but photon beam should go through hole
					\item $z$ relative to magnet: 4 mm difference between plan and survey
				\end{itemize}
			\item From beamline sim (see previous slide): photon beam angle 30.52 mrad
		\end{itemize}

		\column{0.55\textwidth}
		\includegraphics[width=\textwidth]{drawing_ecal_bottom}

		\includegraphics[width=\textwidth]{drawing_ecal_front}
	\end{columns}
\end{frame}

\begin{frame}{Previous geometry}
	\begin{columns}
		\column{0.4\textwidth}
		\begin{itemize}
			\item All electron-run geometries until last week:
				\begin{itemize}
					\item Front face of ECal flange at $z=1350$ mm
					\item Flange not aligned with photon beam
					\item Front face of ECal crystals at $z=1370$ mm (flush against flange)
					\item ECal symmetric around z-axis
				\end{itemize}
		\end{itemize}
		\column{0.2\textwidth}
		\includegraphics[width=\textwidth]{v2_all}

		\column{0.4\textwidth}
		\includegraphics[width=\textwidth]{v2_ecal_parallel}

		\includegraphics[width=\textwidth]{v2_ecal_perspective}
	\end{columns}
\end{frame}

\begin{frame}{New geometry (HPS-Proposal2014-v3)}
	\begin{columns}
		\column{0.4\textwidth}
		\begin{itemize}
			\item New electron-run geometry:
				\begin{itemize}
					\item Front face of ECal flange at $z=1318$ mm
					\item Flange photon hole aligned with photon beam
					\item Front face of ECal crystals at $z=1393$ mm (55 mm gap from flange)
					\item ECal aligned so the photon beam intersects centerline of ECal at its front face ($x=42.53$ mm)
				\end{itemize}
		\end{itemize}
		\column{0.2\textwidth}
		\includegraphics[width=\textwidth]{v3_all}

		\column{0.4\textwidth}
		\includegraphics[width=\textwidth]{v3_ecal_parallel}

		\includegraphics[width=\textwidth]{v3_ecal_perspective}
	\end{columns}
\end{frame}

\begin{frame}{New flange model}
	\begin{columns}
		\column{0.45\textwidth}
		\begin{itemize}
			\item Current electron flange model is a tessellated solid exported from CAD model---inefficient in Geant4 (but not a huge deal)
			\item UNH produced a model for electron flange using Geant4 primitives a while back
			\item Unless someone wants to do it, no plans to incorporate this in LCSim geometry
		\end{itemize}

		\column{0.55\textwidth}
		\includegraphics[width=\textwidth]{new_flange_all}

		\includegraphics[width=\textwidth]{new_flange_wireframe}
	\end{columns}
\end{frame}

\end{document}


