% ****** Start of file apssamp.tex ******
%
%   This file is part of the APS files in the REVTeX 4.2 distribution.
%   Version 4.2a of REVTeX, December 2014
%
%   Copyright (c) 2014 The American Physical Society.
%
%   See the REVTeX 4 README file for restrictions and more information.
%
% TeX'ing this file requires that you have AMS-LaTeX 2.0 installed
% as well as the rest of the prerequisites for REVTeX 4.2
%
% See the REVTeX 4 README file
% It also requires running BibTeX. The commands are as follows:
%
%  1)  latex apssamp.tex
%  2)  bibtex apssamp
%  3)  latex apssamp.tex
%  4)  latex apssamp.tex
%\documentclass[preprint,...]{revtex4-2} is supposed to be 1 column
\documentclass[%
%reprint, (was not uncommented by jason)
superscriptaddress,
%groupedaddress,
%unsortedaddress,
%runinaddress,
%frontmatterverbose,
preprint,
%preprintnumbers,
%nofootinbib,
%nobibnotes,
%bibnotes,
 amsmath,amssymb,
 aps,
%pra,
%prb,
%rmp,
%prstab,
%prstper,
prd,
%floatfix,
]{revtex4-2}

\usepackage{graphicx}% Include figure files
\usepackage{dcolumn}% Align table columns on decimal point
\usepackage{bm}% bold math
\usepackage{hyperref}% add hypertext capabilities
\usepackage{comment}
\usepackage{subfigure}
\hypersetup{colorlinks=true, citecolor=blue, urlcolor=blue, linkcolor=blue}

%\usepackage[mathlines]{lineno}% Enable numbering of text and display math
%\linenumbers\relax % Commence numbering lines

%\usepackage[showframe,%Uncomment any one of the following lines to test
%%scale=0.7, marginratio={1:1, 2:3}, ignoreall,% default settings
%%text={7in,10in},centering,
%%margin=1.5in,
%%total={6.5in,8.75in}, top=1.2in, left=0.9in, includefoot,
%%height=10in,a5paper,hmargin={3cm,0.8in},
%]{geometry}

\usepackage[alsoload=hep]{siunitx} % use \SI{}{} % use hep to get the right c

\usepackage{xcolor} % use \textcolor{}{}

%\usepackage{subcaption}% For use with subfigures

\usepackage{tikz}% A graphics class used to overlay text on images
\usepackage[printwatermark]{xwatermark}% Print a DRAFT watermark on every page
\newsavebox\mybox\savebox\mybox{\tikz[color=green!50,opacity=0.5]\node{DRAFT};}
\newwatermark*[allpages,angle=45,scale=16,xpos=-54,ypos=57]{\usebox\mybox}% Print a DRAFT watermark on every page.

\usepackage[ampersand]{easylist} % Use nested bullet points.

\begin{document}

% g-2:
\newcommand{\runo}{{Run--1}}
\newcommand{\runt}{{Run--2}}
\newcommand{\sixty}{{9--day data set}}
\newcommand{\fr}{{fast~rotation}}

\newcommand{\gm}{\ensuremath{(g-2)}}
\newcommand{\wa}{\mbox{\ensuremath{\omega_a}}}
\renewcommand{\wp}{\mbox{\ensuremath{\omega_p}}}
\renewcommand{\amu}{\ensuremath{a_{\mu}}}
%\newcommand{\gmtwo}{\ensuremath{g-2}}
\newcommand{\gmtwo}{\ensuremath{g\!-\!2}}
% Magic Radius:
\newcommand{\rmagic}{\ensuremath{R_{0}}}
% Magic Circumference:
\newcommand{\cmagic}{\ensuremath{C_{0}}}
% Magic Momentum:
\newcommand{\pmagic}{\ensuremath{p_{0}}}
%\newcommand{\pmagic}{\ensuremath{p_{\textnormal{mag}}}}
% Magic Lorentz Factor:
\newcommand{\gammamagic}{\ensuremath{\gamma_{0}}}
% Magic Beta:
\newcommand{\betamagic}{\ensuremath{\beta_{0}}}
% Dipole magnetic field
\newcommand{\dipbfield}{\ensuremath{B_{0}}}
% Run-1
\newcommand{\runone}{Run-1}
% Run-2
\newcommand{\runtwo}{Run-2}
% Run-3
\newcommand{\runthree}{Run-3}

\graphicspath{{./fig/}}

\preprint{APS/123-QED}

\input{tex/00_title_and_authors}

\date{\today}% It is always \today, today,
             %  but any date may be explicitly specified

\input{tex/01_abstract}

\maketitle % call abstract environment before \maketitle

\tableofcontents

\input{tex/02_introduction}

%\input{tex/03_beam_dynamics_overview_considerations}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
{\bf DAVE RUBIN HAS Fast Rotation, Electric Field, and Pitch section as of 1/21/20}

\medskip
%\section{\label{sec:efield} Electric Field}
\textcolor{orange}{???}\medskip
%\section{\label{sec:pitch}Pitch}
\medskip
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\section{\label{sec:pitch}Pitch}
\input{tex/05_pitch}
\section{\label{sec:efield} Electric Field}
\input{tex/04_electric_field}
%\section{\label{sec:fastrotation} Determining the momentum distribution}
\input{tex/035_fastrotation}
\clearpage
%\section{\label{sec:nonlinearity} Quad misalignment and nonlinearity}
%\input{tex/045_nonlinearity}
 \def\vev#1{{\langle{#1}\rangle}}
\def\partder#1#2{{\frac{\partial{#1}}{\partial{#2}}}}
\section{\label{sec:efieldsystematic-analytic} Betatron Oscillations and E-field Systematic}
\input{tex/EfieldSystematic-analytic}
%\include{PitchSystematic-analytic}
\input{tex/EfieldPitchContribution-integration}

\input{tex/EfieldPitchContribution-simulation}
\clearpage


%\input{tex/06_dynamic_effects_owing_to_time_changing_fields}

%\input{tex/07_muon_loss_phase}

%\input{tex/08_phase_acceptance}

%\input{tex/09_gain_acceptance_phase}

%\input{tex/10_smaller_items}

%\input{tex/11_conclusion}

%\input{tex/12_acknowledgments}

%\input{tex/13_appendix} % dummy appendix

% The \nocite command causes all entries in a bibliography to be printed out
% whether or not they are actually referenced in the text. This is appropriate
% for the sample file to show the different styles of references, but authors
% most likely will not want to use it.
% \nocite{*}

% Jason D. Crnkovic 2018-01-28: Sometimes the DOI links are broken. This is caused by a \href {\doibase } spanning 2 lines in
% the bbl file. I do not know how to prevent this from happening, but it can manually be fixed by putting the \href {\doibase } onto
% a single line in the bbl file. One should note that APS journals want you to copy and paste the bbl contents into the tex file when submitting the paper, see
% https://journals.aps.org/revtex/revtex-faq#b7

% Jason D. Crnkovic 2018-01-28: The DOI links can also lead to an error webpage. This can occur due to the BibTeX entry having extra stuff at the beginning.
% Just delete the extra stuff so that only the actual DOI string remains.

\bibliography{g-2-srbd}% Produces the bibliography via BibTeX.

\end{document}
%
% ****** End of file apssamp.tex ******
