\section{marlintpc\-:\-:Track\-Fitter\-Simple\-Chi\-Square Class Reference}
\label{classmarlintpc_1_1TrackFitterSimpleChiSquare}\index{marlintpc\-::\-Track\-Fitter\-Simple\-Chi\-Square@{marlintpc\-::\-Track\-Fitter\-Simple\-Chi\-Square}}


Simple $\chi^2$ implementation of a track fitter.  




{\ttfamily \#include $<$Track\-Fitter\-Simple\-Chi\-Square.\-h$>$}

Inheritance diagram for marlintpc\-:\-:Track\-Fitter\-Simple\-Chi\-Square\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{classmarlintpc_1_1TrackFitterSimpleChiSquare}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
{\bf Track\-Fitter\-Simple\-Chi\-Square} (double trans\-Defocussing, double long\-Defocussing, double trans\-Diffusion, double long\-Diffusion, double z\-Anode)\label{classmarlintpc_1_1TrackFitterSimpleChiSquare_a03f027319ac092e67a972c7a8c5b83fc}

\begin{DoxyCompactList}\small\item\em Constructor for $\chi^2$ fitter, initializes the track fitter with the initial values. \end{DoxyCompactList}\item 
virtual std\-::string {\bf get\-Revision} () const \label{classmarlintpc_1_1TrackFitterSimpleChiSquare_a787077bdfc9984ff583f819b9d72fdc9}

\begin{DoxyCompactList}\small\item\em returns the revision of this implementation and of the \doxyref{Track\-Fitter\-Base}{p.}{classmarlintpc_1_1TrackFitterBase} it is derrived from \end{DoxyCompactList}\item 
virtual I\-M\-P\-L\-::\-Track\-Impl $\ast$ {\bf fit\-Track} (E\-V\-E\-N\-T\-::\-Track const $\ast$seed\-Track) const 
\begin{DoxyCompactList}\small\item\em The actual fitter. Not implemented yet, thows gear\-::\-Not\-Implemented\-Exception. \end{DoxyCompactList}\item 
virtual unsigned char {\bf get\-Fitter\-Type} () const \label{classmarlintpc_1_1TrackFitterSimpleChiSquare_a6337f8b024e1d7291438dc82236efc60}

\begin{DoxyCompactList}\small\item\em returns \char`\"{}\-Simple\-Chi\-Square\char`\"{} \end{DoxyCompactList}\item 
virtual double {\bf get\-Trans\-Defocussing} () const \label{classmarlintpc_1_1TrackFitterSimpleChiSquare_add37549350da7c30635503c6de93bebe}

\begin{DoxyCompactList}\small\item\em The transverse defocussing in the readout structure $\sigma_{0,{\mathrm trans}}$ (in mm) \end{DoxyCompactList}\item 
virtual double {\bf get\-Long\-Defocussing} () const \label{classmarlintpc_1_1TrackFitterSimpleChiSquare_a762cd712ac625ff6c323ad34d56636d7}

\begin{DoxyCompactList}\small\item\em The longitudinal defocussing in the readout structure $\sigma_{0,{\mathrm long}}$ (in mm) \end{DoxyCompactList}\item 
virtual double {\bf get\-Trans\-Diffusion\-Coef} () const \label{classmarlintpc_1_1TrackFitterSimpleChiSquare_a1ae075df6ce8e938082ef155815be1bc}

\begin{DoxyCompactList}\small\item\em The transverse diffusion coefficient (in mm/ $\sqrt{\mathrm mm}$) \end{DoxyCompactList}\item 
virtual double {\bf get\-Long\-Diffusion\-Coef} () const \label{classmarlintpc_1_1TrackFitterSimpleChiSquare_ad75f441dc42761c5fcef1e78c08985cb}

\begin{DoxyCompactList}\small\item\em The longitudinal diffusion coefficient (in mm/ $\sqrt{\mathrm mm}$) \end{DoxyCompactList}\item 
virtual double {\bf get\-Z\-Anode} () const \label{classmarlintpc_1_1TrackFitterSimpleChiSquare_ada205cebe66baced9918fe82593122bf}

\begin{DoxyCompactList}\small\item\em The z coordinate of the readout anode (termination of drift volume) \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static {\bf Track\-Fitter\-Base} $\ast$ {\bf get\-Instance} (L\-C\-Parameters const $\ast$parameters)\label{classmarlintpc_1_1TrackFitterSimpleChiSquare_a2349df898f80acb26561a90e9e53f794}

\begin{DoxyCompactList}\small\item\em Well defined interface to create a new instance of the track fitter. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
double {\bf \-\_\-trans\-Defocussing}\label{classmarlintpc_1_1TrackFitterSimpleChiSquare_a4a7f5f0928ba138fb7897586f5081778}

\begin{DoxyCompactList}\small\item\em The defocussing and diffusion coefficients. \end{DoxyCompactList}\item 
double {\bfseries \-\_\-long\-Defocussing}\label{classmarlintpc_1_1TrackFitterSimpleChiSquare_ad26d771e2a035a1cca5d284bf60c55b0}

\item 
double {\bfseries \-\_\-trans\-Diffusion}\label{classmarlintpc_1_1TrackFitterSimpleChiSquare_adf7a4da1c6f2b9e018774704dca8c433}

\item 
double {\bfseries \-\_\-long\-Diffusion}\label{classmarlintpc_1_1TrackFitterSimpleChiSquare_a2acefe36c59b22a6b60648cedc46e7c0}

\item 
double {\bf \-\_\-z\-Anode}\label{classmarlintpc_1_1TrackFitterSimpleChiSquare_afa8bb4d3f7ae8e77c8b6094b0a0bdd81}

\begin{DoxyCompactList}\small\item\em The z coordinate of the readout anode. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Detailed Description}
Simple $\chi^2$ implementation of a track fitter. 

It uses the get\-Residuals functions derrived from \doxyref{Track\-Fitter\-Base}{p.}{classmarlintpc_1_1TrackFitterBase}. The error of each hit are calculated according to\par
 $\displaystyle \sigma_{\mathrm trans} = \sqrt{\sigma_{0,{\mathrm trans}}^2 + (D_{\mathrm trans} \sqrt{z})^2}$ \par
 $\displaystyle \sigma_{\mathrm long} = \sqrt{\sigma_{0,{\mathrm long}}^2 + (D_{\mathrm long} \sqrt{z})^2}$

The function minimised is $\displaystyle \chi^2 = \frac{res_{xy}^2}{\sigma_{\mathrm trans}} + \frac{res_{z}^2}{\sigma_{\mathrm long}}$ 

\subsection{Member Function Documentation}
\index{marlintpc\-::\-Track\-Fitter\-Simple\-Chi\-Square@{marlintpc\-::\-Track\-Fitter\-Simple\-Chi\-Square}!fit\-Track@{fit\-Track}}
\index{fit\-Track@{fit\-Track}!marlintpc::TrackFitterSimpleChiSquare@{marlintpc\-::\-Track\-Fitter\-Simple\-Chi\-Square}}
\subsubsection[{fit\-Track}]{\setlength{\rightskip}{0pt plus 5cm}I\-M\-P\-L\-::\-Track\-Impl $\ast$ marlintpc\-::\-Track\-Fitter\-Simple\-Chi\-Square\-::fit\-Track (
\begin{DoxyParamCaption}
\item[{E\-V\-E\-N\-T\-::\-Track const $\ast$}]{seed\-Track}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{classmarlintpc_1_1TrackFitterSimpleChiSquare_a2233e24d5667f734015ea5cb092f1624}


The actual fitter. Not implemented yet, thows gear\-::\-Not\-Implemented\-Exception. 

!!!\-F\-I\-X\-M\-E!!! don't hardcode these limits 

Implements {\bf marlintpc\-::\-Track\-Fitter\-Base} \doxyref{}{p.}{classmarlintpc_1_1TrackFitterBase_a47515d70f182dd11f6288b350dde851a}.



Reimplemented in {\bf marlintpc\-::\-Track\-Fitter\-Simple\-Chi\-Square\-Pads} \doxyref{}{p.}{classmarlintpc_1_1TrackFitterSimpleChiSquarePads_a4a7a1b9c0818fe96974d43157bae913b}.



References marlintpc\-::\-Track\-Fitter\-Base\-::\-\_\-d0\-Start, marlintpc\-::\-Track\-Fitter\-Base\-::\-\_\-fix\-D0, marlintpc\-::\-Track\-Fitter\-Base\-::\-\_\-no\-Z\-Fit, marlintpc\-::\-Track\-Fitter\-Base\-::\-\_\-omega\-Start, marlintpc\-::\-Track\-Fitter\-Base\-::\-\_\-phi\-Start, marlintpc\-::\-Track\-Fitter\-Base\-::\-\_\-tan\-Lambda\-Start, marlintpc\-::\-Track\-Fitter\-Base\-::\-\_\-z0\-Start, \-\_\-z\-Anode, marlintpc\-::\-Track\-Fitter\-Base\-::\-F\-I\-T\-F\-A\-I\-L\-E\-D\-B\-I\-T, get\-Fitter\-Type(), and marlintpc\-::\-Track\-Fitter\-Base\-::set\-Track\-Fitter\-Type().



Referenced by marlintpc\-::\-Track\-Fitter\-Simple\-Chi\-Square\-Pads\-::fit\-Track().



The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
Track\-Fitter\-Simple\-Chi\-Square.\-h\item 
Track\-Fitter\-Simple\-Chi\-Square.\-cc\end{DoxyCompactItemize}
