%%%%% FORMAT THE PAPER %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%\documentclass[draft,12pt]{thesis}
\documentclass[final,12pt]{thesis}
%\documentclass[compact,10pt]{thesis}
%\documentclass[final,10pt,sflabels]{thesis}
        % Wisconsin thesis requires a single-sided printout, and the page numbers
        % should always at the up right corner ('oneside'), see thesis.cls
        % Curly brackets: Specify the "thesis" class file (thesis.cls).
        %   It assumes the existence of a few other style (*.sty) files.  
        %   See the thesis.cls file for details.
        % Square brackets, specify the options you want to use.
        %   Allowed options are 10pt, 11pt, 12pt, draft, & final.
        %   See the "thesis.cls" file for descriptions.

% NOTE: If you want your figure captions, table captions, and bibliography
% items single-spaced (this is permissible for UW theses!), you can use
% the "\fixspacing" command in each of these environments.  This command
% will choose the appropriate spacing, whether you use the "final" or
% "draft" modes.  See the "thesis.cls" class file for details.
% CLARIFICATION: The \fixspacing command has to go inside EACH of your
%     \tablenotetext blocks to be effective


%\usepackage{datetime}
\usepackage{draftwatermark}
\SetWatermarkAngle{0.}
% \SetWatermarkLightness{ real }
% \SetWatermarkFontSize{ lenght }
% \SetWatermarkScale{ real }
%\SetWatermarkText{ {\vspace{10cm}Draft Version 17 Jun 2008}}
%\SetWatermarkText{ {\vspace{10cm}Draft Version \date{\today}}}
%\SetWatermarkText{ {\vspace{10cm}Draft Version \date{\docdate}} }
%\settimeformat{dottime}
\date{\today}
%\SetWatermarkText{ {\vspace{10cm}Draft Version \currenttime \today} }
\SetWatermarkText{ {\vspace{10cm}Draft Version \today} }

\usepackage{lscape}     % Specify this package for landscape-style tables.
% You can use this by wrapping your table in a \begin{landscape}--
% \end{landscape} environment.  Note that the rotated table will
% probably *not* show up in Xdvi, but *will* show up in the PostScript
% version (e.g., can be seen with gv).

\usepackage{xspace}%this command in zeus bibfile
%\usepackage{longtable}   % Specify this package for multipage tables
\usepackage{mcite} % needed for bibliography

\ifx\pdftexversion\undefined % this prevents ! LaTeX Error: Option clash for package graphicx.
\usepackage[draft = false]{graphicx}
\else
\usepackage{graphicx}
\DeclareGraphicsRule{*}{mps}{*}{}
\fi    
\usepackage{rotating}%for sideways text in tables.
\usepackage{multirow}%for multi-row columns in tables

\makeatletter %this disables the bib references, cause they're fucked.
\def\NAT@parse{\typeout{This is a fake Natbib command to fool Hyperref.}}
\makeatother
\usepackage[	pdftitle={
						Multijet Production in Charged Current Deep 
						Inelastic Scattering with ZEUS at HERA
					},
			pdfauthor={Homer Wolfe},
			pdfcreator={Homer Wolfe},
			pdfproducer={Homer Wolfe},
			pdfsubject={Particle Physics},
			pdfkeywords={Physics, ZEUS, HERA, Charged Current, Deep Inelastic Scattering, DIS, Jet},
			colorlinks=false]{hyperref} %for hyperreferences


\newcommand{\figdir}{/home/person/thesis/figures}
\newcommand{\plotdir}{/home/person/thesis/paper_plots}
\newcommand{\thesisplotdir}{/home/person/thesis/thesis_plots}
\newcommand{\oldplotdir}{/home/hwolfe/thesis/old_plots}

\newcommand{\eV}{\mbox{eV}}
\newcommand{\KeV}{\mbox{KeV}}
\newcommand{\MeV}{\mbox{MeV}}
\newcommand{\GeV}{\mbox{GeV}}

%\newcommand{\cm}{\mbox{cm}}
%\newcommand{\mm}{\mbox{mm}}
\newcommand{\fm}{\mbox{fm}}
\newcommand{\microm}{\mu\mbox{m}}

\newcommand{\SINISTRA}{\textsc{Sinistra}}
\newcommand{\mepjet}{\textsc{Mepjet}}
\newcommand{\msbar}{\overline{\mbox{MS}}}

\newcommand{\qsqjb}{Q^2_{\mbox{\tiny JB}}}
\newcommand{\yjb}{y_{\mbox{\tiny JB}}}
\newcommand{\xjb}{x_{\mbox{\tiny JB}}}

\newcommand{\qsqgen}{Q^2_{\mbox{\tiny gen}}}
\newcommand{\ygen}{y_{\mbox{\tiny gen}}}
\newcommand{\xgen}{x_{\mbox{\tiny gen}}}

\newcommand{\etjet}{E_T^{\mbox{\tiny jet}}}
	\newcommand{\etjeta}{E_T^{\mbox{\tiny jet1}}}
	\newcommand{\etjetb}{E_T^{\mbox{\tiny jet2}}}
	\newcommand{\etjetc}{E_T^{\mbox{\tiny jet3}}}
	\newcommand{\etjetd}{E_T^{\mbox{\tiny jet4}}}
	\newcommand{\etjetbar}{\overline{E}_T^{\mbox{\tiny jet}}}

\newcommand{\rapjet}{\eta^{\mbox{\tiny jet}}}
	\newcommand{\rapjeta}{\eta^{\mbox{\tiny jet1}}}
	\newcommand{\rapjetb}{\eta^{\mbox{\tiny jet2}}}
	\newcommand{\rapjetc}{\eta^{\mbox{\tiny jet3}}}
	\newcommand{\rapjetd}{\eta^{\mbox{\tiny jet4}}}
	\newcommand{\rapjetbar}{\overline{\eta}^{\mbox{\tiny jet}}}

\newcommand{\gammah}{\gamma_{\mbox{\tiny H}}}

\newcommand{\phijet}{\phi^{\mbox{\tiny jet}}}
\newcommand{\ptmiss}{P_{T}^{\footnotesize{\mbox{miss}}}}

\newcommand{\mdijet}{m^{\mbox{\tiny jj}}}
\newcommand{\mtrijet}{m^{\mbox{\tiny 3j}}}


\newcommand{\subcal}{_{\mbox{\tiny CAL}}}
\newcommand{\supcal}{^{\mbox{\tiny CAL}}}

\newcommand{\zvtx}{z_{\mbox{\tiny vtx}}}
\newcommand{\ngoodtracks}{N_{\mbox{\footnotesize gt}}}
\newcommand{\thetatrak}{\theta_{\mbox{\tiny trk}}}
\newcommand{\pttrack}{p_{T}^{\mbox{\tiny trk}}}
\newcommand{\phical}{\phi^{\mbox{\tiny CAL}}}
\newcommand{\phictd}{\phi^{\mbox{\tiny CTD}}}
\newcommand{\ptcal}{p_{T}^{\mbox{\tiny CAL}}}
\newcommand{\ptctd}{p_{T}^{\mbox{\tiny CTD}}}

\newcommand{\alphas}{\alpha_{\mbox{\tiny S}}}
\newcommand{\alphaem}{\alpha_{\mbox{\tiny EW}}}
\newcommand{\gfermi}{G_{\mbox{\tiny F}}}

\newcommand{\muf}{\mu_{\mbox{\tiny F}}}
\newcommand{\mur}{\mu_{\mbox{\tiny R}}}

\newcommand{\ebcal}{E_{\mbox{\tiny BCAL}}}
\newcommand{\ebhac}{E_{\mbox{\tiny BHAC}}}
\newcommand{\ebhacone}{E_{\mbox{\tiny BHAC1}}}
\newcommand{\ebhactwo}{E_{\mbox{\tiny BHAC2}}}
\newcommand{\ebemc}{E_{\mbox{\tiny BEMC}}}


% Use the LaTeX2e graphics package
%\usepackage[final]{graphicx}    % Use the LaTeX2e graphics package
%\usepackage{graphicx}    % Use the LaTeX2e graphics package
%\usepackage{subfigure}   % Specify this package to create multipart figures
% with multiple files combined in a single numbered figure i.e., Fig. 1(a), Fig. 1(b), etc.
\usepackage{amsmath,amssymb}  % Load the package for extended mathematical symbol set
%\usepackage{axodraw}  % Necessary for using the ZEUS psfigadd command
%\usepackage{placeins}
%\usepackage{caption2}
	%\usepackage{wrapfig}
	%\usepackage{rotating}
	%\usepackage{amscd}
%\usepackage{array}
%\usepackage{multirow}
%\usepackage{supertabular}
%\usepackage{dcolumn}
	%\usepackage{color}
%\usepackage{calc}
%\usepackage{ifthen}
%\usepackage{cite}
%\usepackage{notoccite}

% Line numbers for drafts, thanks to Carlos P.d.l.H. from AMANDA.
% To use this feature, say \linenumbers right after \begin{document}.
% Be sure to remove before printing out the final version!
%                                       --Katherine Rawlins, Oct. 2001
%\usepackage[displaymath,mathlines]{lineno}


%\nofiles       
        % Uncomment to prevent the creation of new *.toc *.lot, and *.lof 
        %   files.  Do this if you need to edit these files for the final
        %   version of the paper.  For example, if you have multi-page 
        %   figures or tables but you want the lists of figures & tables
        %   to have only one line for these, you will need to delete the
        %   extra lines in the *.lof and *.lot files and re-run LaTeX.

\graphicspath{{figs/}}  % Specifies a subdirectory containing graphics files
                        % Multiple directories possible, each with inner {}
                        %   within the outer {}; e.g., {{figs/}{~/plots}}


   % Use \includeonly{} if you are just working on one \include{}'d
   % section.  This prevents LaTeX from re-processing the unneeded
   % chapters, but preserves references and page/fig/table numbers.
   % Try it.  You'll like it. 
   % Default is to compile entire document.
%\includeonly{detector.tex}

%\input{define}          % Read in list of user-defined LaTeX commands
\include{citations}
\include{zeus_def}

\begin{document}        % BEGIN THE DOCUMENT TEXT

%  The cool linenumbers feature... comment it out for the final version
%\linenumbers



%%%%% BEGIN TITLE/CONTENTS PAGES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\title{
 Multijet Production in Charged Current \\ Deep Inelastic Scattering with ZEUS at HERA
}
\author{Homer Frederick Wolfe}
\year{2008}

% These aren't really needed except for the UMI abstract
\adviser{Wesley H. Smith}
\adviserrank{Professor}

\ttlpage                % This command produces the title page.  Nifty!
\cpypage                % This produces the copyright page.  Also nifty!
                        % Reminder: it costs money to retain copyright
                        
% The following three lines are for UMI abstract only
                        % Reminder: UMI abstract is required by gradschool but it is NOT a part of your thesis
%\begin{umiabstract}
%\input{umiabstract}    % *.tex file for UMI abstract page
%\end{umiabstract}      % Need to use \input rather than \include to avoid
                        %  implicit \clearpage's.  You shouldn't have any
                        %  cross-references between abstract and text, so
                        %  \input should be OK.

\frontmatter            % Choose roman-type numbers; reset page numbers to 1.

\pagestyle{thesis}      % Set the page style to "thesis" 
                        %   (page numbers at the top right)

%%%%% BEGIN ABSTRACT ETC. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\include{abstract}      % *.tex file for abstract
%\include{sponsor}      % *.tex file for "sponsorship" page
%\include{dedicate}     % *.tex file for dedication
%\include{quotes}       % *.tex file for quotations
\include{acknow}       % *.tex file for acknowledgements

\tableofcontents        % *.toc file with table of contents
\listoftables           % *.lot file with list of tables
\listoffigures          % *.lof file with list of figures
     % Note that the \listoftables does not play well with the
     % deluxetable environment.  You will probably have to do some
     % hand-tweaking of the master.lot file if you have multi-page
     % tables. 
\clearpage
\pagebreak              % Enforce the start of a new page



%%%%% BEGIN TEXT OF PAPER %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\mainmatter

%\setfoot{\small \itshape \centerline{ DRAFT \today }} 

% This is a hand-tweak by Dolan to fix his odd landscape tables in
% compact style.  REMOVE THIS for your thesis!
%\ifkompakt\renewcommand\arraystretch{1.1}\else\fi

\include{introduction}
\include{theoretical_specifics}
	%\include{cc_in_dis}//taken over by theoretical specifics
	%\include{nlo_calculations}//taken over by theoretical specifics
\include{experimental_setup}
\include{event_reconstruction} 
\include{event_simulation} 
\include{event_selection} 
\include{analysis_method} 
\include{results} 
\include{conclusions} 
\addtocontents{toc}{\protect\vspace{0.5cm}}
\appendix               % Resets chapter numbering to A, B, C... for appendices
\include{mc_data_comparison}
\include{reweighting_factors}
\include{pureffcorr}
\include{systematics}
\include{technical_trigger_specifics}
\include{correction_functions}
\include{data_tables}
\include{additional_plots}


%\include{bib}          % *.tex file for the Bibliography, or instead, use Latex4ZEUS!
\fixspacing
\bibliography{bibliography,l4z_zeus,l4z_books,l4z_articles,l4z_conferences,l4z_misc,l4z_preprints,l4z_h1,l4z_temporary,syn}  % .bib files for the BibTex references
\bibliographystyle{l4z_default}
%\bibliographystyle{unsrt}   % for using BibTex with references ordered as they appear

% See the thesis.cls file for the steps to convert AASTeX papers
% into thesis chapters


%%%%% BEGIN APPENDICES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

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

\end{document}          % END THE DOCUMENT TEXT
