\documentclass[xcolor=svgnames]{beamer}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{polski}
%\usepackage{amssymb,amsmath}
%\usepackage[latin1]{inputenc}
%\usepackage{amsmath}
%\newcommand\abs[1]{\left|#1\right|}
\usepackage{amsmath}
\newcommand\abs[1]{\left|#1\right|}
\usepackage{hepnicenames}
\usepackage{hepunits}
\usepackage{color}



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%5
\definecolor{mygreen}{cmyk}{0.82,0.11,1,0.25}


\usetheme{Sybila} 

\title[$\PBzero \to \PKstar \mu\mu$ update]{$\PBzero \to \PKstar \mu\mu$ update}
\author{Marcin Chrz\k{a}szcz$^{1}$}
\institute{$^1$~University of Zurich}
\date{\today}

\begin{document}
% --------------------------- SLIDE --------------------------------------------
\frame[plain]{\titlepage}
\author{Marcin Chrz\k{a}szcz{~}}
\institute{(UZH)}
% ------------------------------------------------------------------------------
% --------------------------- SLIDE --------------------------------------------
\begin{frame}\frametitle{Reminder}
\begin{itemize}
\item Last time I show you how to get the $P_x$ distributions by simulating the bifurcated Gaussian.
\item Now how to get the mean and error on this distribution.
\end{itemize}



\end{frame}

\begin{frame}\frametitle{Basics}
\begin{itemize}
\item We cannot just take the expected $S_x$ and expected $F_l$ and calculate: $P_x =\dfrac{S_x}{\sqrt{F_l(1-F_l)}}$ to get expected $P_x$.
\item This will work only for Gaussian distributions(but not for bifurcated).
\item Proposal: Fit a parabola in range $[-0.5 \rm{RMS}, 0.5\rm{RMS}]$
\item Get the most probable value.
\end{itemize}
\begin{columns}
\column{2.5in}
\includegraphics[width=0.95\textwidth]{images/P1.pdf}
\column{2.5in}
\includegraphics[width=0.95\textwidth]{images/P5.pdf}

\end{columns}




\end{frame}

 \begin{frame}\frametitle{Confidence interval}
 \begin{small}
 

\begin{itemize}
\item Now just need to find the $68.27\%$ interval.
\item Draw a horizontal line $y=y_{max} \times 0.9$
\item Iterate among all bins and select bins with events that have $y_{i~bin}>y$.
\item Find $y_{68}$ for which $68.27\%$ have the property$\sum y_{i~bin>y_{68}}=0.6827 $
\item Find the two spots where the $y_{68}$ line crosses the distribution. 
\item With current statistics I have $\mathcal{O}(10^{-4})$ error on the input $S_x$ and $\mathcal{O}(10^{-3})$ on output $P_x$. 
\end{itemize}
 \end{small}
\begin{columns}
\column{2.5in}
\includegraphics[width=0.95\textwidth]{images/P1.pdf}
\column{2.5in}
\includegraphics[width=0.95\textwidth]{images/P5.pdf}

\end{columns}


\end{frame}
              
      \begin{frame}\frametitle{Systematics}
 \begin{small}
 

\begin{itemize}
\item To access systematics due to unfolding procedure we use the higher($+2$) order acceptance correction function on high statistics MC.
\item I noticed that some of the weights ($1/eff$) are super large ($>100$) or even negative which fucks up our distributions and creates larger systematics then it should be.
\item Repeated this study rejecting this events.
\end{itemize}
 \end{small}
\begin{tiny}
\begin{tabular}{|c|c|c|c|c|c|c|c|c|}
$q^2$ & $F_l$ & $S_3$ & $S_4$ & $S_5$ & $S_6$ & $S_7$ & $S_8$ & $S_9$ \\ \hline
0 & 0.0022 & 0.005 & 0.0003 & 0.0077 & 0.0066 & 0.0080 & 0.0002 & 0.0032 \\ 
1 & 0.0048 & 0.001 & 0.0014 & 0.0051 & 0.0088 & 0.0036 & 0.0048 & 0.0003 \\ 
2 & 0.0004 & 0.0001 & 0.00013 & 0.0056 & 0.0046 & 0.0014 & 0.0003 & 0.0022 \\ 
3 & 0.0002 & 0.0012 & 0.0007 & 0.0017 & 0.0001 & 0.0016 & 0.0011 & 0.0021 \\ 
4 & 0.002 & 0.0004 & 0.0005 & 0.0015 & 0.0003 & 0.0009 & 0.0002 & 0.0010 \\ 
5 & 0.006 & 0.0011 & 0.0007 & 0.0026 & 0.0014 & 0.0016 & 0.0015 & 0.0004 \\ 
6 & 0.008 & 0.0019 & 0.0008 & 0.0024 & 0.0029 & 0.0033 & 0.0019 & 0.0000 \\ 
7 & 0.0062 & 0.0015 & 0.0002 & 0.0011 & 0.0036 & 0.0028 & 0.0016 & 0.0005 \\ 
8 & 0.0035 & 0.0037 & 0.0017 & 0.0046 & 0.0037 & 0.0005 & 0.0040 & 0.0040 \\ 
9 & 0.005 & 0.0001 & 0.0004 & 0.0010 & 0.0009 & 0.0050 & 0.0043 & 0.0033 \\ 
10 & 0.0011 & 0.0044 & 0.002 & 0.0060 & 0.0059 & 0.0101 & 0.0000 & 0.0012 \\ 
11 & 0.0021 & 0.0018 & 0.0001 & 0.0020 & 0.0004 & 0.0052 & 0.0082 & 0.0059 \\ 

\end{tabular}
\end{tiny}


\end{frame}         
              
              
              
      \begin{frame}\frametitle{The end}
\begin{itemize}
\item If we all agree with thouse procedure would like to put them in the note
\item Keep on working on other systematics.
\end{itemize}

\end{frame}         
                            
              
              
              
\end{document}
