% This program can be redistributed and/or modified under the terms
% of the GNU Public License, version 3.
%
% Seth Brown, Ph.D.
% sethbrown@drbunsen.org
%
% Compiled with XeLaTeX
% Dependencies:
%   Fontin Sans font (http://www.exljbris.com/fontinsans.html)
%
\documentclass{beamer}
\usepackage{pgf}
\usepackage{times}
\usepackage[T1]{fontenc}
%\usepackage[mathscr]{eucal}
%\usepackage{mathptmx}
%\usepackage{mathrsfs}
\usepackage{hyperref}
% \usepackage{pgfpagfes}
% \setbeameroption{show notes on second screen}
%\pgfpagesuselayout{4 on 1}[a4paper,border shrink=5mm,landscape]
\usepackage{xcolor}
%\usepackage[dvipsnames]{xcolor}
%\usepackage{amsfonts}
%\usepackage{amsmath}
% \usepackage[amssymb]{SIunits}
%\usepackage{natbib}
%\usepackage{amssymb}
\usepackage{hepparticles}
\usepackage{hepnicenames}
\usepackage{hepunits}
\usepackage{tikz}
\usepackage[polish]{babel}
%\usepackage{lmodern}
\usepackage{feynmp}
% suppress navigation bar
\beamertemplatenavigationsymbolsempty
\usepackage[mathscr]{eucal}
\usepackage{mathrsfs}
\mode<presentation>
{
  \usetheme{bunsen}
  \setbeamercovered{transparent}
  \setbeamertemplate{items}[circle]
}

% set fonts
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage{verbatim}
\usepackage{eepic}
\usetikzlibrary{arrows}
\usetikzlibrary{shapes}

%\usepackage{gfsartemisia-euler}
%\usepackage[T1]{fontenc}
\setbeamerfont{frametitle}{size=\LARGE,series=\bfseries}
\tikzstyle{decision} = [diamond, draw, fill=gray!20, 
    text width=4.5em, text badly centered, node distance=3cm, inner sep=0pt]
\tikzstyle{block} = [rectangle, draw, fill=blue!10, 
    text width=5em, text centered, rounded corners, minimum height=2em]
\tikzstyle{line} = [draw, -latex']
\tikzstyle{cloud} = [draw, ellipse,fill=red!10, node distance=3cm,
    minimum height=2em]

\tikzstyle{every picture}+=[remember picture]


\renewcommand{\PKs}{{\HepParticle{K}{S}{}\xspace}}
% color definitions
\usepackage{color}
\definecolor{uipoppy}{RGB}{225, 64, 5}
\definecolor{uipaleblue}{RGB}{96,123,139}
\definecolor{uiblack}{RGB}{0, 0, 0}

% see the macros.tex file for definitions
\include{macros}

% title slide definition
\title{Quo vadis INMAPS? }
\author{Alberto Lusiani, Marcin Chrz\k{a}szcz}
\institute[IFJ, INFN, SNS]



\date{$26^{th}$ November 2012}

%--------------------------------------------------------------------
%                           Introduction
%--------------------------------------------------------------------

\begin{document}


\setbeamertemplate{background}
{\includegraphics[width=\paperwidth,height=\paperheight]{frontpage_bg_mine}}
\setbeamertemplate{footline}[default]

\begin{frame}
\vspace{2cm}
\begin{columns}
\column{2.75in}
  \titlepage
  \begin{center}
    \includegraphics[height=1.5cm,keepaspectratio ]{pic/SNS.png}
   \hspace{1cm}
   \includegraphics[height=1.5cm]{pic/INFN.png}
      \hspace{1cm}
   \includegraphics[height=1.4cm]{pic/ifj.png}
   \end{center}
\column{2.0in}
\end{columns}

\end{frame}





\section[Outline]{}
\begin{frame}
\tableofcontents
\end{frame}







%-------------------------------------------------------------------
%                          Section 1
%-------------------------------------------------------------------
%
% Set the background for the rest of the slides.
% Insert infoline
\setbeamertemplate{background}
 {\includegraphics[width=\paperwidth,height=\paperheight]{slide_bg}}
\setbeamertemplate{footline}[bunsentheme]

\section{Analysis Method}
\subsection{Extracting the signal yield }
\begin{frame}\frametitle{Eff vs. thr}


\begin{columns}
\column{2.75in}

\begin{itemize}
\item Pre Fit the residual with signal Gaussian. Form this we will know where to look for the peak.
\item Fit with the pdf: \newline $f(x) = a Gauss( \overline{x}, \sigma;x) + b Exp(\lambda ;x)$
\item $\overline{x}, \sigma, \lambda$ free parameters.
\item Using an Extended maximum likelihood fit get the number of signal events. 
\item Error on this number coming from fit will be treated as systematics.
\item Please note that we have units on the plots =)
\end{itemize}
\column{2.75in}
\includegraphics[scale=0.21]{pic/det6_resid_fit_BLH_x_large_WINDOWS.png}
\newline \includegraphics[scale=0.21]{pic/det6_resid_fit_BLH_x_small_WINDOWS.png}

\end{columns}

\end{frame}

\begin{frame}\frametitle{Extracting the signal yield II}


\begin{columns}
\column{2.75in}
\begin{itemize}
\item In case of angular scan I cut away 4 pixels up and down in Y and 8 on left and right side.
\item Implemented binned(unbinned not that easy) maximum likelihood.
\item Assuming Gauss + Exp.
 

\end{itemize}

\column{3.0in}
\includegraphics[scale=0.21]{pic/det6_resid_fit_BLH_y_small_WINDOWS.png}
\newline \includegraphics[scale=0.21]{pic/det6_resid_fit_BLH_x_small_WINDOWS_detector_bound_cut.png}

\end{columns}



  \textref{A.Lusiani, M.Chrz\k{a}szcz 2012}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%5

\subsection{Residual Fits}
\begin{frame}\frametitle{Residual Fits, run 4289, Thr=2330}

All plots are for CHIP13. (Lets understand one at the time)

\begin{columns}
\column{2.5in}
X view
\includegraphics[scale=0.25]{pic/inmaps_eff_r4289/det7_resid_fit_BLH_x.png}

\column{2.5in}
Y view 
\includegraphics[scale=0.25]{pic/inmaps_eff_r4289/det7_resid_fit_BLH_y.png}

\end{columns}
  \textref{A.Lusiani, M.Chrz\k{a}szcz 2012}
\end{frame}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%5

\begin{frame}\frametitle{Residual Fits, run 4291, Thr=2340}

All plots are for CHIP13. (Lets understand one at the time)

\begin{columns}
\column{2.5in}
X view
\includegraphics[scale=0.25]{pic/inmaps_eff_r4291/det7_resid_fit_BLH_x.png}
\column{2.5in}
Y view
\includegraphics[scale=0.25]{pic/inmaps_eff_r4291/det7_resid_fit_BLH_y.png}

\end{columns}
  \textref{A.Lusiani, M.Chrz\k{a}szcz 2012}
\end{frame}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%5

\begin{frame}\frametitle{Residual Fits, run 4293, Thr=2350}

All plots are for CHIP13. (Lets understand one at the time)

\begin{columns}
\column{2.5in}
X view
\includegraphics[scale=0.25]{pic/inmaps_eff_r4293/det7_resid_fit_BLH_x.png}
\column{2.5in}
Y view
\includegraphics[scale=0.25]{pic/inmaps_eff_r4293/det7_resid_fit_BLH_y.png}

\end{columns}
  \textref{A.Lusiani, M.Chrz\k{a}szcz 2012}
\end{frame}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%5

\begin{frame}\frametitle{Residual Fits, run 4295, Thr=2360}

All plots are for CHIP13. (Lets understand one at the time)

\begin{columns}
\column{2.5in}
X view
\includegraphics[scale=0.25]{pic/inmaps_eff_r4295/det7_resid_fit_BLH_x.png}
\column{2.5in}
Y view
\includegraphics[scale=0.25]{pic/inmaps_eff_r4295/det7_resid_fit_BLH_y.png}

\end{columns}
  \textref{A.Lusiani, M.Chrz\k{a}szcz 2012}
\end{frame}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%5

\begin{frame}\frametitle{Residual Fits, run 4297, Thr=2370}

All plots are for CHIP13. (Lets understand one at the time)

\begin{columns}
\column{2.5in}
X view
\includegraphics[scale=0.25]{pic/inmaps_eff_r4297/det7_resid_fit_BLH_x.png}
\column{2.5in}
Y view
\includegraphics[scale=0.25]{pic/inmaps_eff_r4297/det7_resid_fit_BLH_y.png}

\end{columns}
  \textref{A.Lusiani, M.Chrz\k{a}szcz 2012}
\end{frame}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%5

\begin{frame}\frametitle{Residual Fits, run 4299, Thr=2380}

All plots are for CHIP13. (Lets understand one at the time)

\begin{columns}
\column{2.5in}
X view
\includegraphics[scale=0.25]{pic/inmaps_eff_r4299/det7_resid_fit_BLH_x.png}
\column{2.5in}
Y view
\includegraphics[scale=0.25]{pic/inmaps_eff_r4299/det7_resid_fit_BLH_y.png}

\end{columns}
  \textref{A.Lusiani, M.Chrz\k{a}szcz 2012}
\end{frame}




\begin{frame}\frametitle{Residual Fits, run 4301, Thr=2390}

All plots are for CHIP13. (Lets understand one at the time)

\begin{columns}
\column{2.5in}
X view
\includegraphics[scale=0.25]{pic/inmaps_eff_r4301/det7_resid_fit_BLH_x.png}
\column{2.5in}
Y view
\includegraphics[scale=0.25]{pic/inmaps_eff_r4301/det7_resid_fit_BLH_y.png}

\end{columns}
  \textref{A.Lusiani, M.Chrz\k{a}szcz 2012}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{frame}\frametitle{Residual Fits, run 4303, Thr=2400}

All plots are for CHIP13. (Lets understand one at the time)

\begin{columns}
\column{2.5in}
X view
\includegraphics[scale=0.25]{pic/inmaps_eff_r4303/det7_resid_fit_BLH_x.png}
\column{2.5in}
Y view
\includegraphics[scale=0.25]{pic/inmaps_eff_r4303/det7_resid_fit_BLH_y.png}

\end{columns}
What is going on?!?!
\newline We are loosing him...

  \textref{A.Lusiani, M.Chrz\k{a}szcz 2012}

\end{frame}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Resolution drop}
\begin{frame}\frametitle{Where does the increase of resolution come from?}

Investigated Guliana's theory that the pixels fire in a row. On friday I send around instructions how to use the SbtViewer.
To speed things up I made a video:
\href{http://nz11-agh1.ifj.edu.pl/public_users/mchrzaszcz/Sbt/out-4.ogv}{LINK}


  \textref{A.Lusiani, M.Chrz\k{a}szcz 2012}

\end{frame}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{frame}\frametitle{Eff vs. threshold}

\begin{columns}
\column{2.5in}
OLD
\includegraphics[scale=0.25]{pic/chip13.png}
\column{2.5in}
NEW
\includegraphics[scale=0.25]{pic/chip13_eff_fit.png}

\end{columns}
  \textref{A.Lusiani, M.Chrz\k{a}szcz 2012}

\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}\frametitle{Resolution vs threshold}

\begin{columns}
\column{2.5in}
X
\includegraphics[scale=0.25]{pic/res_x.png}
\column{2.5in}
Y
\includegraphics[scale=0.25]{pic/res_y.png}

\end{columns}
  \textref{A.Lusiani, M.Chrz\k{a}szcz 2012}

\end{frame}

\end{document}
