<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\section{Newton\-Fitter\-G\-S\-L Class Reference}
\label{classNewtonFitterGSL}\index{Newton\-Fitter\-G\-S\-L@{Newton\-Fitter\-G\-S\-L}}


A kinematic fitter using the Newton-\/\-Raphson method to solve the equations.  




{\ttfamily \#include $&lt;$Newton\-Fitter\-G\-S\-L.\-h$&gt;$}

Inheritance diagram for Newton\-Fitter\-G\-S\-L\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classNewtonFitterGSL}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
{\bf Newton\-Fitter\-G\-S\-L} ()\label{classNewtonFitterGSL_af69b28587a132e76cade09744408054e}

\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
virtual {\bf $\sim$\-Newton\-Fitter\-G\-S\-L} ()\label{classNewtonFitterGSL_acce81d0eb100aa7ae9bbe11c110bac41}

\begin{DoxyCompactList}\small\item\em Virtual destructor. \end{DoxyCompactList}\item 
virtual double {\bf fit} ()\label{classNewtonFitterGSL_aa21e5f09c2253d419d86dcef16923155}

\begin{DoxyCompactList}\small\item\em The fit method, returns the fit probability. \end{DoxyCompactList}\item 
virtual int {\bf get\-Error} () const \label{classNewtonFitterGSL_abbb7c32cc75922fbb8453905ebbdce8e}

\begin{DoxyCompactList}\small\item\em Get the error code of the last fit\-: 0=O\-K, 1=failed. \end{DoxyCompactList}\item 
virtual double {\bf get\-Probability} () const \label{classNewtonFitterGSL_a458e35af02bbc7188508cd2fed164db7}

\begin{DoxyCompactList}\small\item\em Get the fit probability of the last fit. \end{DoxyCompactList}\item 
virtual double {\bf get\-Chi2} () const \label{classNewtonFitterGSL_a05cb2c648b3268dd356e56c735eabbe0}

\begin{DoxyCompactList}\small\item\em Get the chi$\ast$$\ast$2 of the last fit. \end{DoxyCompactList}\item 
virtual int {\bf get\-Do\-F} () const \label{classNewtonFitterGSL_aba160ab64d249299c034480f3716d792}

\begin{DoxyCompactList}\small\item\em Get the number of degrees of freedom of the last fit. \end{DoxyCompactList}\item 
virtual int {\bf get\-Iterations} () const \label{classNewtonFitterGSL_a46cc701a7e2f2a65df1de6242863d179}

\begin{DoxyCompactList}\small\item\em Get the number of iterations of the last fit. \end{DoxyCompactList}\item 
virtual int {\bf get\-Ncon} () const \label{classNewtonFitterGSL_af527f7285ab9a8d1fda33a7c08aee809}

\begin{DoxyCompactList}\small\item\em Get the number of hard constraints of the last fit. \end{DoxyCompactList}\item 
virtual int {\bf get\-Nsoft} () const \label{classNewtonFitterGSL_ab245d49a58b88ef97eb4b19b37fbe8ad}

\begin{DoxyCompactList}\small\item\em Get the number of soft constraints of the last fit. \end{DoxyCompactList}\item 
virtual int {\bf get\-Npar} () const \label{classNewtonFitterGSL_aaa5e99a24fe0ed2ec12aa9813fc8b285}

\begin{DoxyCompactList}\small\item\em Get the number of all parameters of the last fit. \end{DoxyCompactList}\item 
virtual int {\bf get\-Nunm} () const \label{classNewtonFitterGSL_abf07a91bd097656ca193ca7bcb9d6167}

\begin{DoxyCompactList}\small\item\em Get the number of unmeasured parameters of the last fit. \end{DoxyCompactList}\item 
virtual bool {\bf initialize} ()\label{classNewtonFitterGSL_a46bba6e65d9688d03404320c794ed833}

\begin{DoxyCompactList}\small\item\em Initialize the fitter. \end{DoxyCompactList}\item 
virtual void {\bf set\-Debug} (int debuglevel)\label{classNewtonFitterGSL_a8c176dc416e945ca0f2352ec74b60fd6}

\begin{DoxyCompactList}\small\item\em Set the Debug Level. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Types}
\begin{DoxyCompactItemize}
\item 
enum \{ {\bfseries N\-P\-A\-R\-M\-A\-X} =50, 
{\bfseries N\-C\-O\-N\-M\-A\-X} =10, 
{\bfseries N\-U\-N\-M\-M\-A\-X} =10
 \}
\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual double {\bf calc\-Chi2} ()\label{classNewtonFitterGSL_a2fe94b8cb8ccfeabd144f90e2bfb2d2f}

\begin{DoxyCompactList}\small\item\em Calculate the chi2. \end{DoxyCompactList}\item 
int {\bf calc\-Dx} ()\label{classNewtonFitterGSL_a6f37d33703ab220bc9f6c7cc4a3da246}

\begin{DoxyCompactList}\small\item\em Calculate the vector dx to update the parameters; returns fail code, 0=O\-K. \end{DoxyCompactList}\item 
int {\bf calc\-Dx\-S\-V\-D} ()\label{classNewtonFitterGSL_a2f3a0eafafa07d390151ee5f1415a9f1}

\begin{DoxyCompactList}\small\item\em Calculate the vector dx to update the parameters; returns fail code, 0=O\-K. \end{DoxyCompactList}\item 
void {\bf print\-My} (double M[$\,$], double y[$\,$], int idim)\label{classNewtonFitterGSL_adfec287c81962bf86931a68ed378e6b6}

\begin{DoxyCompactList}\small\item\em Print a Matrix M and a vector y of dimension idim. \end{DoxyCompactList}\item 
bool {\bfseries update\-Params} (gsl\-\_\-vector $\ast$xnew)\label{classNewtonFitterGSL_abe5771f88466bbf0aff6af6b9727e2f7}

\item 
void {\bfseries fillxold} ()\label{classNewtonFitterGSL_a48e03b269c0700155a9f552ad440527c}

\item 
void {\bfseries fillperr} ()\label{classNewtonFitterGSL_a8868cdc3ab4b13d78c5dc4b98dd2aab1}

\item 
int {\bfseries calc\-M} (bool errorpropagation=false)\label{classNewtonFitterGSL_a751505b2772fec9c83e83add36a96fb2}

\item 
int {\bfseries calcy} ()\label{classNewtonFitterGSL_ae2313d0b57e89c5d111a5e5401f9c459}

\item 
int {\bfseries optimize\-Scale} ()\label{classNewtonFitterGSL_a7d796b0d5f2872b0d62f0d71e8019c60}

\item 
int {\bfseries invert\-M} ()\label{classNewtonFitterGSL_afa4d7886f4cc8896b66bbb25ebeccced}

\item 
void {\bfseries calc\-Cov\-Matrix} ()\label{classNewtonFitterGSL_afc32ab48b9c96dcbdd6c352e8ea7da13}

\item 
double {\bfseries merit\-Function} (double mu)\label{classNewtonFitterGSL_aa0aa80ef24e1f86927107d5a14d14a9e}

\item 
double {\bfseries merit\-Function\-Deriv} (double mu)\label{classNewtonFitterGSL_ab9fbff0aec9f9b90392518142c481253}

\end{DoxyCompactItemize}
\subsection*{Static Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
static void {\bfseries ini\-\_\-gsl\-\_\-permutation} (gsl\-\_\-permutation $\ast$\&amp;p, unsigned int size)\label{classNewtonFitterGSL_a689c8f289f8695014307cae91bce9ab9}

\item 
static void {\bfseries ini\-\_\-gsl\-\_\-vector} (gsl\-\_\-vector $\ast$\&amp;v, int unsigned size)\label{classNewtonFitterGSL_a7a504fafbd9a5c0c835baace5bbcdb72}

\item 
static void {\bfseries ini\-\_\-gsl\-\_\-matrix} (gsl\-\_\-matrix $\ast$\&amp;m, int unsigned size1, unsigned int size2)\label{classNewtonFitterGSL_a209d65352e698b8ffa2cdad49e002301}

\item 
static void {\bfseries debug\-\_\-print} (gsl\-\_\-matrix $\ast$m, const char $\ast$name)\label{classNewtonFitterGSL_a0c67cb1014dabc0d532ae7a111986ba3}

\item 
static void {\bfseries debug\-\_\-print} (gsl\-\_\-vector $\ast$v, const char $\ast$name)\label{classNewtonFitterGSL_a9fc3e8718e8ca6e51d5e157f8f96938c}

\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
int {\bf npar}\label{classNewtonFitterGSL_ac7ca1c6dc100719ebe02abfb4e5f8776}

\begin{DoxyCompactList}\small\item\em total number of parameters \end{DoxyCompactList}\item 
int {\bf ncon}\label{classNewtonFitterGSL_afa005bedd9d3ff25889a97de6e5e6f07}

\begin{DoxyCompactList}\small\item\em total number of hard constraints \end{DoxyCompactList}\item 
int {\bf nsoft}\label{classNewtonFitterGSL_ad25775d7ae7b1d4c0bd71b1a3350fe69}

\begin{DoxyCompactList}\small\item\em total number of soft constraints \end{DoxyCompactList}\item 
int {\bf nunm}\label{classNewtonFitterGSL_a1c45ae974f0bf023002662d2ad6f105c}

\begin{DoxyCompactList}\small\item\em total number of unmeasured parameters \end{DoxyCompactList}\item 
int {\bf ierr}\label{classNewtonFitterGSL_a895a4f66856f04a24fe538d72486b837}

\begin{DoxyCompactList}\small\item\em Error status. \end{DoxyCompactList}\item 
int {\bf nit}\label{classNewtonFitterGSL_a958bb1a92b850cf8e05e5b4441e43786}

\begin{DoxyCompactList}\small\item\em Number of iterations. \end{DoxyCompactList}\item 
double {\bf fitprob}\label{classNewtonFitterGSL_a246f6e27be58209d63cfa9191e851cc7}

\begin{DoxyCompactList}\small\item\em fit probability \end{DoxyCompactList}\item 
double {\bf chi2}\label{classNewtonFitterGSL_aba45e4105115bf3b9c13df8cf0091218}

\begin{DoxyCompactList}\small\item\em final chi2 \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Detailed Description}
A kinematic fitter using the Newton-\/\-Raphson method to solve the equations. 

The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
{\bf Newton\-Fitter\-G\-S\-L.\-h}\item 
{\bf Newton\-Fitter\-G\-S\-L.\-cc}\end{DoxyCompactItemize}
</pre></body></html>