\section{marlintpc\-:\-:simple\-Fit\-X\-Y Class Reference}
\label{classmarlintpc_1_1simpleFitXY}\index{marlintpc\-::simple\-Fit\-X\-Y@{marlintpc\-::simple\-Fit\-X\-Y}}


Simple fit in X\-Y.  




{\ttfamily \#include $<$Simple\-Helix\-Track\-Model.\-h$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
{\bf simple\-Fit\-X\-Y} (bool, double, double)
\begin{DoxyCompactList}\small\item\em Constructor for simple fit in X\-Y. \end{DoxyCompactList}\item 
void {\bf add\-Point} (double, double, double)
\begin{DoxyCompactList}\small\item\em Add point. \end{DoxyCompactList}\item 
void {\bf add\-Track} (E\-V\-E\-N\-T\-::\-Track const $\ast$)
\begin{DoxyCompactList}\small\item\em add a complete Track. \end{DoxyCompactList}\item 
int {\bf fit} (double \&, int \&)
\begin{DoxyCompactList}\small\item\em Perform fit. \end{DoxyCompactList}\item 
T\-Vector\-D {\bf get\-Par} () const 
\begin{DoxyCompactList}\small\item\em Get parameters vector. \end{DoxyCompactList}\item 
T\-Matrix\-D\-Sym {\bf get\-Cov} () const 
\begin{DoxyCompactList}\small\item\em Get covariance matrix. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Simple fit in X\-Y. 

Fit circle (Karimaki) or straight line. 

\subsection{Constructor \& Destructor Documentation}
\index{marlintpc\-::simple\-Fit\-X\-Y@{marlintpc\-::simple\-Fit\-X\-Y}!simple\-Fit\-X\-Y@{simple\-Fit\-X\-Y}}
\index{simple\-Fit\-X\-Y@{simple\-Fit\-X\-Y}!marlintpc::simpleFitXY@{marlintpc\-::simple\-Fit\-X\-Y}}
\subsubsection[{simple\-Fit\-X\-Y}]{\setlength{\rightskip}{0pt plus 5cm}marlintpc\-::simple\-Fit\-X\-Y\-::simple\-Fit\-X\-Y (
\begin{DoxyParamCaption}
\item[{bool}]{flag, }
\item[{double}]{xr, }
\item[{double}]{yr}
\end{DoxyParamCaption}
)}\label{classmarlintpc_1_1simpleFitXY_a2cc547dae084274ed72d47711437093a}


Constructor for simple fit in X\-Y. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em flag} & curvature flag (true\-: circle, false\-: line) \\
\hline
\mbox{\tt in}  & {\em xr} & X of reference point \\
\hline
\mbox{\tt in}  & {\em yr} & Y of reference point \\
\hline
\end{DoxyParams}


\subsection{Member Function Documentation}
\index{marlintpc\-::simple\-Fit\-X\-Y@{marlintpc\-::simple\-Fit\-X\-Y}!add\-Point@{add\-Point}}
\index{add\-Point@{add\-Point}!marlintpc::simpleFitXY@{marlintpc\-::simple\-Fit\-X\-Y}}
\subsubsection[{add\-Point}]{\setlength{\rightskip}{0pt plus 5cm}void marlintpc\-::simple\-Fit\-X\-Y\-::add\-Point (
\begin{DoxyParamCaption}
\item[{double}]{x, }
\item[{double}]{y, }
\item[{double}]{w}
\end{DoxyParamCaption}
)}\label{classmarlintpc_1_1simpleFitXY_a8a7916de2b9f5730ec011aef13a9d8bb}


Add point. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em x} & X of point \\
\hline
\mbox{\tt in}  & {\em y} & Y of point \\
\hline
\mbox{\tt in}  & {\em w} & weight of point \\
\hline
\end{DoxyParams}


Referenced by add\-Track(), and marlintpc\-::tp\-\_\-\-Pixel\-Segment\-::tp\-\_\-\-Pixel\-Segment().

\index{marlintpc\-::simple\-Fit\-X\-Y@{marlintpc\-::simple\-Fit\-X\-Y}!add\-Track@{add\-Track}}
\index{add\-Track@{add\-Track}!marlintpc::simpleFitXY@{marlintpc\-::simple\-Fit\-X\-Y}}
\subsubsection[{add\-Track}]{\setlength{\rightskip}{0pt plus 5cm}void marlintpc\-::simple\-Fit\-X\-Y\-::add\-Track (
\begin{DoxyParamCaption}
\item[{E\-V\-E\-N\-T\-::\-Track const $\ast$}]{seed\-Track}
\end{DoxyParamCaption}
)}\label{classmarlintpc_1_1simpleFitXY_a441f460f58d03a84d67648a5ae5a0cb9}


add a complete Track. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em seed\-Track} & input seed Track \\
\hline
\end{DoxyParams}


References add\-Point().

\index{marlintpc\-::simple\-Fit\-X\-Y@{marlintpc\-::simple\-Fit\-X\-Y}!fit@{fit}}
\index{fit@{fit}!marlintpc::simpleFitXY@{marlintpc\-::simple\-Fit\-X\-Y}}
\subsubsection[{fit}]{\setlength{\rightskip}{0pt plus 5cm}int marlintpc\-::simple\-Fit\-X\-Y\-::fit (
\begin{DoxyParamCaption}
\item[{double \&}]{Chi2, }
\item[{int \&}]{n\-Points}
\end{DoxyParamCaption}
)}\label{classmarlintpc_1_1simpleFitXY_aedd37339cfc4e8b6a1dd8eb2ecb4354f}


Perform fit. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt out}  & {\em Chi2} & chi2 of fit \\
\hline
\mbox{\tt out}  & {\em n\-Points} & number of points \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
number of fit parameters (2 or 3) 
\end{DoxyReturn}


Referenced by marlintpc\-::tp\-\_\-\-Pixel\-Segment\-::tp\-\_\-\-Pixel\-Segment().

\index{marlintpc\-::simple\-Fit\-X\-Y@{marlintpc\-::simple\-Fit\-X\-Y}!get\-Cov@{get\-Cov}}
\index{get\-Cov@{get\-Cov}!marlintpc::simpleFitXY@{marlintpc\-::simple\-Fit\-X\-Y}}
\subsubsection[{get\-Cov}]{\setlength{\rightskip}{0pt plus 5cm}T\-Matrix\-D\-Sym marlintpc\-::simple\-Fit\-X\-Y\-::get\-Cov (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}\label{classmarlintpc_1_1simpleFitXY_a18dcf55ebbc4ca4c5741c8a2099913f7}


Get covariance matrix. 

\begin{DoxyReturn}{Returns}
covariance matrix 
\end{DoxyReturn}


Referenced by marlintpc\-::tp\-\_\-\-Pixel\-Segment\-::tp\-\_\-\-Pixel\-Segment().

\index{marlintpc\-::simple\-Fit\-X\-Y@{marlintpc\-::simple\-Fit\-X\-Y}!get\-Par@{get\-Par}}
\index{get\-Par@{get\-Par}!marlintpc::simpleFitXY@{marlintpc\-::simple\-Fit\-X\-Y}}
\subsubsection[{get\-Par}]{\setlength{\rightskip}{0pt plus 5cm}T\-Vector\-D marlintpc\-::simple\-Fit\-X\-Y\-::get\-Par (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}\label{classmarlintpc_1_1simpleFitXY_a440ed4e2fcbcff69d30eb8290fe3d13c}


Get parameters vector. 

\begin{DoxyReturn}{Returns}
parameter vector 
\end{DoxyReturn}


Referenced by marlintpc\-::tp\-\_\-\-Pixel\-Segment\-::tp\-\_\-\-Pixel\-Segment().



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