\section{marlintpc\-:\-:simple\-Fit\-Z\-S Class Reference}
\label{classmarlintpc_1_1simpleFitZS}\index{marlintpc\-::simple\-Fit\-Z\-S@{marlintpc\-::simple\-Fit\-Z\-S}}


Simple fit in Z\-S.  




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

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
{\bf simple\-Fit\-Z\-S} ()\label{classmarlintpc_1_1simpleFitZS_a65de9595a1a8b846d46283548515d376}

\begin{DoxyCompactList}\small\item\em Constructor for simple fit in Z\-S. \end{DoxyCompactList}\item 
void {\bf add\-Point} (double, double, double)
\begin{DoxyCompactList}\small\item\em Add point. \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 Z\-S. 

Fit straight line. 

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


Add point. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em x} & arc-\/length S of point \\
\hline
\mbox{\tt in}  & {\em y} & Z of point \\
\hline
\mbox{\tt in}  & {\em w} & weight of point \\
\hline
\end{DoxyParams}


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

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


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) 
\end{DoxyReturn}


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

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


Get covariance matrix. 

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


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

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


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}
