% ****** Start of file template.aps ****** %
%%
%%
%%   This file is part of the APS files in the REVTeX 4 distribution.
%%   Version 4.0 of REVTeX, August 2001
%%
%%
%%   Copyright (c) 2001 The American Physical Society.
%%
%%   See the REVTeX 4 README file for restrictions and more information.
%%
%
% This is a template for producing manuscripts for use with REVTEX 4.0
% Copy this file to another name and then work on that file.
% That way, you always have this original template file to use.
%
% Group addresses by affiliation; use superscriptaddress for long
% author lists, or if there are many overlapping affiliations.
% For Phys. Rev. appearance, change preprint to twocolumn.
% Choose pra, prb, prc, prd, pre, prl, prstab, or rmp for journal
%  Add 'draft' option to mark overfull boxes with black boxes
%  Add 'showpacs' option to make PACS codes appear
%  Add 'showkeys' option to make keywords appear
\documentclass[aps,prl,preprint,groupedaddress]{revtex4}
%\documentclass[aps,prl,preprint,superscriptaddress]{revtex4}
%\documentclass[aps,prl,twocolumn,groupedaddress]{revtex4}
\usepackage[dvips]{graphicx}
\usepackage{dcolumn}

% You should use BibTeX and apsrev.bst for references
% Choosing a journal automatically selects the correct APS
% BibTeX style file (bst file), so only uncomment the line
% below if necessary.
%\bibliographystyle{apsrev}

\begin{document}

% Use the \preprint command to place your local institutional report
% number in the upper righthand corner of the title page in preprint mode.
% Multiple \preprint commands are allowed.
% Use the 'preprintnumbers' class option to override journal defaults
% to display numbers if necessary
%\preprint{}

%Title of paper
\title{Simulation of a Position-Sensitive Tungsten Pin-Cushion Detector}

% repeat the \author .. \affiliation  etc. as needed
% \email, \thanks, \homepage, \altaffiliation all apply to the current
% author. Explanatory text should go in the []'s, actual e-mail
% address or url should go in the {}'s for \email and \homepage.
% Please use the appropriate macro foreach each type of information

% \affiliation command applies to all authors since the last
% \affiliation command. The \affiliation command should follow the
% other information
% \affiliation can be followed by \email, \homepage, \thanks as well.
\author{Christopher Gauthier and R.T. Jones}
%\email[]{Your e-mail address}
%\thanks{}
%\altaffiliation{}
\affiliation{University of Connecticut}

%Collaboration name if desired (requires use of superscriptaddress
%option in \documentclass). \noaffiliation is required (may also be
%used with the \author command).
%\collaboration can be followed by \email, \homepage, \thanks as well.
%\collaboration{}
%\noaffiliation

\date{\today}
\newcommand {\Geant} {\it Geant}

\begin{abstract}

\input{Abstract.txt}

\end{abstract}

% insert suggested PACS numbers in braces on next line
\pacs{}
% insert suggested keywords - APS authors don't need to do this
%\keywords{}

%\maketitle must follow title, authors, abstract, \pacs, and \keywords
\maketitle

% body of paper here - Use proper section commands
% References should be done using the \cite, \ref, and \label commands
\section{Introduction}

\input{Introduction.txt}

\section{Design and Layout}

\input{DesignandLayout.txt}

% Put \label in argument of \section for cross-referencing
%\section{\label{}}
\section{Software}

\input{ComputerSoftware.txt}

\section{Simulation Results}

\input{SimulationResults.txt}

\section{Conclusions}

\input{Conclusions.txt}


\begin{figure}
\includegraphics[width=8cm]{TPCDFV.eps}
\includegraphics[width=8cm]{TPCDSV.eps}
\includegraphics[width=8cm]{ColDetDisassembled.eps}
\caption{\label{ColDetLO}Different views of the tungsten pin cushion detector.  Note that the front view shows what number refers to what plate.}
\end{figure}


\begin{figure}
\includegraphics[width=10cm]{Plate5C.eps}
\includegraphics[width=10cm]{Plate1C.eps}
\caption{\label{PlateCurrentPic} Graphs of plate current versus x and y beam position for plates one and five. The information from these graphs was used to determine beam position from plate current in the final test of TPCD performance.}
\end{figure}

\begin{figure}
\includegraphics[scale=1.0]{CurrentComparison.eps}
\caption{\label{CurrentCompare} Comparison of the tungsten plate currents for beam positions (0.0,0.0) (0.05,0.05) (0.1,0.1) and (0.2,0.2).}
\end{figure}



\begin{table}
\caption{\label{PlateCurrents}A table showing the plate currents for the two beam position (0.0,0.0) and (0.2,0.2).}
\begin{ruledtabular}
\begin{tabular}{cccc}
Plate Number & Beam Position (0.0,0.0) & Beam Position (0.2,0.2)\\ \hline
1 & (1.440$\pm$0.059)$\times$10$^{-11}$ & (1.080$\pm$0.005)$\times$10$^{-9}$\\
2 & (1.363$\pm$0.057)$\times$10$^{-11}$ & (3.947$\pm$0.030)$\times$10$^{-10}$\\
3 & (1.485$\pm$0.059)$\times$10$^{-11}$ & (2.564$\pm$0.023)$\times$10$^{-10}$\\
4 & (1.488$\pm$0.059)$\times$10$^{-11}$ & (4.077$\pm$0.030)$\times$10$^{-10}$\\
5 & (2.295$\pm$0.191)$\times$10$^{-12}$ & (1.097$\pm$0.013)$\times$10$^{-10}$\\
6 & (1.888$\pm$0.184)$\times$10$^{-12}$ & (8.404$\pm$0.115)$\times$10$^{-11}$\\
7 & (1.961$\pm$0.181)$\times$10$^{-12}$ & (6,763$\pm$0.102)$\times$10$^{-11}$\\
8 & (2.139$\pm$0.189)$\times$10$^{-12}$ & (8.379$\pm$0.116)$\times$10$^{-11}$\\
\end{tabular}
\end{ruledtabular}
\end{table}



\begin{table}
\caption{\label{Deviation}A table showing the deviation for the (0.05,0.05) (0.1,0.1) and (0.2,0.2) beam positions, which were calculated in the second test of TPCD performance.}
\begin{ruledtabular}
\begin{tabular}{rr} 
Beam Position & Deviation \\\hline
(0.05,0.05) & 0.198$\pm$0.066\\
(0.1,0.1) & 0.422$\pm$0.056\\
(0.2,0.2) & 1.521$\pm$0.043\\
\end{tabular}
\end{ruledtabular}
\end{table}




\begin{table}
\caption{\label{PositionComparison}A table comparing the actual beam position to the position found though the $\chi^{2}$ minimization procedure.}
\begin{ruledtabular}
\begin{tabular}{cccc}
\multicolumn{2}{c}{Beam Position (actual)}&\multicolumn{2}{c}{Beam Position (simulated)}\\ \hline
x (cm) & y (cm) & x (cm) & y (cm) \\ \hline
0.0 & 0.0 & -0.018(-0.100 +0.096)& -0.043(-0.127 +0.109)\\
0.05 & 0.05 & 0.026(-0.005 +0.005) & 0.023(-0.006 +0.006)\\
0.1 & 0.1 & 0.071(-0.018 +0.019) & 0.069(-0.020 +0.020)\\
0.2 & 0.2 & 0.175(-0.019 +0.020) & 0.181(-0.020 +0.021)\\
1.0 & 1.0 & 0.961(-0.056 +0.069) & 0.996(-0.062 +0.068)\\
3.0 & 3.0 & 3.570(-0.087 +0.126) & 3.387(-0.061 +0.061)\\ 
6.0 & 6.0 & 5.832(-0.132   na  ) & 5.981(-0.043 +0.020)\\
0.1 & 0.0 & 0.064(-0.018 +0.020) & -0.034(-0.017 +0.017)\\
0.2 & 0.0 & 0.165(-0.020 +0.022) & -0.029(-0.015 +0.015)\\
1.0 & 0.0 & 1.043(-0.057 +0.036) & -0.034(-0.038 +0.037)\\
3.0 & 0.0 & 3.036(-0.292 +0.095) & -0.031(-0.044 +0.043)\\
6.0 & 0.0 & 5.444(-0.211 +0.162) & -0.029(-0.110 +0.066)\\
0.2 & 0.1 & 0.167(-0.020 +0.023) & 0.076(-0.016 +0.017)\\
1.0 & 0.2 & 1.008(-0.038 +0.039) & 0.165(-0.040 +0.046)\\
3.0 & 1.0 & 2.912(-0.174 +0.067) & 0.866(-0.043 0.121)\\
\end{tabular}
\end{ruledtabular}
\end{table}



\begin{thebibliography}{99}
\bibitem{mw74} G. Miller and D. R. Walz, Nucl. Instr. and Meth. {\bf 117}, (1974) 33-37. 
\end{thebibliography}

%\begin{table}
%\begin{ruledtabular}
%\begin{tabular}{cccc}

%\end{tabular}
%\end{ruledtabular}
%\end{table}
% format so that long equations can be displayed. Use
% sparingly.
%\begin{widetext}
% put long equation here
%\end{widetext}

% figures should be put into the text as floats.
% Use the graphics or graphicx packages (distributed with LaTeX2e)
% and the \includegraphics macro defined in those packages.
% See the LaTeX Graphics Companion by Michel Goosens, Sebastian Rahtz,
% and Frank Mittelbach for instance.
%
% Here is an example of the general form of a figure:
% Fill in the caption in the braces of the \caption{} command. Put the label
% that you will use with \ref{} command in the braces of the \label{} command.
% Use the figure* environment if the figure should span across the
% entire page. There is no need to do explicit centering.

%\begin{turnpage}
% Surround figure environment with turnpage environment for landscape
% figure
% \begin{turnpage}
% \begin{figure}
% \includegraphics{}%
% \caption{\label{}}
% \end{figure}
% \end{turnpage}

% tables should appear as floats within the text
%
% Here is an example of the general form of a table:
% Fill in the caption in the braces of the \caption{} command. Put the label
% that you will use with \ref{} command in the braces of the \label{} command.
% Insert the column specifiers (l, r, c, d, etc.) in the empty braces of the
% \begin{tabular}{} command.
% The ruledtabular enviroment adds doubled rules to table and sets a
% reasonable default table settings.
% Use the table* environment to get a full-width table in two-column
% Add \usepackage{longtable} and the longtable (or longtable*}
% environment for nicely formatted long tables. Or use the the [H]
% placement option to break a long table (with less control than 
% in longtable).


% Surround table environment with turnpage environment for landscape
% table
% \begin{turnpage}
% \begin{table}
% \caption{\label{}}
% \begin{ruledtabular}
% \begin{tabular}{}
% \end{tabular}
% \end{ruledtabular}
% \end{table}
% \end{turnpage}

% Specify following sections are appendices. Use \appendix* if there
% only one appendix.
%\appendix
%\section{}

% If you have acknowledgments, this puts in the proper section head.
%\begin{acknowledgments}
% put your acknowledgments here.
%\end{acknowledgments}

% Create the reference section using BibTeX:
%\bibliography{}

\end{document}
%
% ****** End of file template.aps ******


