\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[ECal monitoring]{ECal/Trigger Setup Procedures and Monitoring}

\author{Sho Uemura}
\institute{SLAC}
\date[Sepember 11, 2012]

\begin{document}

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

\begin{frame}{Overview}
	\begin{itemize}
		\item Primary use of ECal is trigger
		\item Setup/checkout: needs to be done at start of running to ensure correct operation
		\item Monitoring: needs to be done continuously during running to verify correct operation
	\end{itemize}
\end{frame}

\begin{frame}{ECal requirements}
	\begin{itemize}
		\item Low noise
			\begin{itemize}
				\item Setup: calibrate with window mode run
				\item Monitoring: occupancy
			\end{itemize}
		\item Reasonable response (gain)
			\begin{itemize}
				\item Setup: calibrate gains, preferably without tracker
				\item Monitoring: E/p, E vs. x, occupancy
			\end{itemize}
		\item Identify bad crystals/channels
			\begin{itemize}
				\item Monitoring: occupancy, in-time hits
			\end{itemize}
	\end{itemize}
\end{frame}

\begin{frame}{FADC monitoring}
	\begin{itemize}
		\item FADC channels map correctly to crystal IDs
			\begin{itemize}
				\item Check for clusters across edges (done)
			\end{itemize}
		\item Hits are timed in: with trigger, within and between crates
			\begin{itemize}
				\item Trigger time vs. cluster time (done)
				\item Relative time of cluster pairs
			\end{itemize}
		\item Pulse pileup is not causing us to lose hits
			\begin{itemize}
				\item How?
			\end{itemize}
	\end{itemize}
\end{frame}

\begin{frame}{Trigger monitoring}
	\begin{itemize}
		\item Clusterer works according to spec: use clusters in event stream
			\begin{itemize}
				\item Check for clusters across adjacent crystals
				\item Run clustering on readout hits
				\item Check cluster time coincidence
			\end{itemize}
		\item Trigger decision is correct
			\begin{itemize}
				\item Need trigger bits for each of the physics cuts; run singles trigger (preferably in parallel with pair trigger) and check
			\end{itemize}
	\end{itemize}
\end{frame}

\begin{frame}{ECal/FADC set-up}
	\begin{itemize}
		\item Any chance of rough gain cal before run? 
		\item Readout window (NSA, NSB): decide in simulation
		\item Crystal energy discriminator: decide in simulation (is there any reason not to set it low?)
		\item Readout threshold: decide in simulation (pileup vs. sensitivity trade-off), monitor for noisy crystals
		\item Calibrate pedestals and pulse shape
	\end{itemize}
\end{frame}

\begin{frame}{Calibrating ECal}
	\begin{itemize}
		\item Two populations of single electrons can calibrate the regions where each dominates
			\begin{itemize}
				\item Near beam spot: electrons at beam energy
				\item Large angles on electron side (flip field to get both sides): use deflection angle to estimate momentum (E vs. X)
			\end{itemize}
		\item Pairs? Tridents?
		\item Track-based calibration is probably better but we shouldn't rely on it
	\end{itemize}
\end{frame}

\begin{frame}{Tasks}
	\begin{itemize}
		\item Simulation:
			\begin{itemize}
				\item Trigger studies: optimize various DAQ parameters
				\item Test gain calibration methods
			\end{itemize}
		\item Monitoring:
			\begin{itemize}
				\item Lots mentioned above
				\item May want a ``shifter-friendly'' system that gives a ``good/not good'' status for each item
				\item Ease of use, stability, speed (remote AIDA?)
			\end{itemize}
		\item Many good entry points for hps-java initiates
	\end{itemize}
\end{frame}
\end{document}

