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

\author{Sho Uemura}
%\institute[SLAC]{SLAC\\}
\date[May 15, 2012]

\begin{document}

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

%\begin{frame}{Notes}
%	\begin{itemize}
%		\item ``ECal coordinates'' are based on crystal ID (x and y) - like looking at the ECal from downstream
%		\item JLab group uses crystal x from -22 to 23; SLAC group uses -23 to 23 with no x=0
%		\item ECal group: ``raw mode,'' ``window mode,'' ``pulse mode;'' software group: ``window mode,'' ``pulse mode,'' ``integral mode''
%		\end{itemize}
%\end{frame}

\begin{frame}{Pedestals}
	\begin{itemize}
		\item Raw mode runs from 5/3 (779) and 5/14 (1171): histogram the first 5 samples in the window
	\end{itemize}
	\begin{center}
		\includegraphics[width=0.5\textwidth]{peds_779}
		\includegraphics[width=0.5\textwidth]{peds_1171}
	\end{center}
\end{frame}

\begin{frame}{Problem areas}
	\begin{itemize}
		\item Big blocks on top and bottom right: no FADCs yet
		\item Two blocks of channels in top right: bad HV groups
		\item Handful of channels in bottom right (and two in top right) without hits: noisy, masked out in the FADC to reduce trigger rates
		\item Handful of channels in bottom right (x=10,11): noisy but do get hits --- might possibly be usable
		\item One FADC slot on bottom right had its signal connector unplugged for a while; plugged back in since 5/9 but most channels are masked out anyway
		\item Counts of good channels: 
		\begin{itemize}
			\item 106 top left, bottom left (all good)
			\item 82 top right (20 bad, 13 FADC-less)	, 55 bottom right (31 bad, 29 FADC-less)
		\end{itemize}
	\end{itemize}
\end{frame}

\begin{frame}{Hit time distributions}
\begin{columns}
\column{0.5\textwidth}
	\begin{itemize}
		\item Signal hits fall in a small range of times (crystals are timed in); one FADC seems to be mistimed (this is recent --- looked normal Monday morning), and top vs. bottom is a little off
		\item RMS of hit times is a good diagnostic of crystals with lots of noise hits (or few signal hits)
		\includegraphics[width=0.8\textwidth]{timeshift_1246}
	\end{itemize}
\column{0.5\textwidth}
		\includegraphics[width=\textwidth]{time_1246}
\end{columns}
\end{frame}

\begin{frame}{Hit energy distributions}
	\begin{itemize}
		\item FADC readout threshold and cluster energy threshold are visible; cut at 150 MeV to clean things up
	\end{itemize}
	\begin{center}
		\includegraphics[width=0.5\textwidth]{amplitude_1246}
		\includegraphics[width=0.5\textwidth]{amplitude_1246_threshold}
	\end{center}
\end{frame}

\begin{frame}{Regions with high occupancy}
\begin{columns}
\column{0.5\textwidth}
		\includegraphics[width=\textwidth]{occupancy_1246_threshold}
	\begin{itemize}
		\item Around the electron gap (center around x=-4)
		\item Left and below the electron gap
		\item Center top
		\item Far right
		\item Far left
	\end{itemize}
\column{0.4\textwidth}
		\includegraphics[width=\textwidth]{center}

		\includegraphics[width=\textwidth]{leftbottom}
		
		\includegraphics[width=\textwidth]{centertop}
		
		\includegraphics[width=\textwidth]{right}
		
		\includegraphics[width=\textwidth]{left}

\end{columns}
\end{frame}

\begin{frame}{Cluster energy distributions}
%	\begin{itemize}
%		\item FADC readout threshold and cluster energy threshold are visible; cut at 150 MeV to clean things up
%	\end{itemize}
	\begin{center}
		\includegraphics[width=0.5\textwidth]{counts_both}
		\includegraphics[width=0.5\textwidth]{energies_both}
	\end{center}
\end{frame}

\begin{frame}{Clusters --- top only}
%	\begin{itemize}
%		\item FADC readout threshold and cluster energy threshold are visible; cut at 150 MeV to clean things up
%	\end{itemize}
	\begin{center}
		\includegraphics[width=0.5\textwidth]{counts_top}
		\includegraphics[width=0.5\textwidth]{energies_top}
	\end{center}
\end{frame}

\begin{frame}{Clusters --- bottom only}
%	\begin{itemize}
%		\item FADC readout threshold and cluster energy threshold are visible; cut at 150 MeV to clean things up
%	\end{itemize}
	\begin{center}
		\includegraphics[width=0.5\textwidth]{counts_bottom}
		\includegraphics[width=0.5\textwidth]{energies_bottom}
	\end{center}
\end{frame}

\begin{frame}{Other stuff}
	\begin{itemize}
		\item Clusters with $E>250$ MeV: 120 Hz
		\item Clusters with $E>500$ MeV: 25 Hz
	\end{itemize}
%	\begin{center}
%		\includegraphics[width=0.5\textwidth]{amplitude_1246}
%		\includegraphics[width=0.5\textwidth]{amplitude_1246_threshold}
%	\end{center}
\end{frame}

\end{document}

