\section{A\-I\-D\-A\-:\-:I\-Fitter\-R\-O\-O\-T Class Reference}
\label{classAIDA_1_1IFitterROOT}\index{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T@{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T}}


Dummy implementation of the class \char`\"{}\-I\-Fitter\char`\"{}.  




{\ttfamily \#include $<$I\-Fitter\-R\-O\-O\-T.\-h$>$}

Inheritance diagram for A\-I\-D\-A\-:\-:I\-Fitter\-R\-O\-O\-T\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classAIDA_1_1IFitterROOT}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual {\bf $\sim$\-I\-Fitter\-R\-O\-O\-T} ()\label{classAIDA_1_1IFitterROOT_a3a47c7993f8a54c57ff84eb1c7839e7f}

\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
virtual {\bf I\-Fit\-Result} $\ast$ {\bf fit} ({\bf I\-Fit\-Data} \&fit\-Data, {\bf I\-Function} \&func)
\begin{DoxyCompactList}\small\item\em Fit an \doxyref{I\-Function}{p.}{classAIDA_1_1IFunction} to an \doxyref{I\-Fit\-Data}{p.}{classAIDA_1_1IFitData}. \end{DoxyCompactList}\item 
virtual {\bf I\-Fit\-Result} $\ast$ {\bf fit} ({\bf I\-Base\-Histogram} \&hist, {\bf I\-Function} \&func)
\begin{DoxyCompactList}\small\item\em Shortcut to fit an \doxyref{I\-Base\-Histogram}{p.}{classAIDA_1_1IBaseHistogram} directly with an \doxyref{I\-Function}{p.}{classAIDA_1_1IFunction}. \end{DoxyCompactList}\item 
virtual {\bf I\-Fit\-Result} $\ast$ {\bf fit} ({\bf I\-Base\-Histogram} \&hist, const std\-::string \&model)
\begin{DoxyCompactList}\small\item\em Shortcut to fit an \doxyref{I\-Base\-Histogram}{p.}{classAIDA_1_1IBaseHistogram} directly with an \doxyref{I\-Function}{p.}{classAIDA_1_1IFunction}. \end{DoxyCompactList}\item 
virtual {\bf I\-Fit\-Result} $\ast$ {\bf fit} ({\bf I\-Base\-Histogram} \&hist, const std\-::string \&model, const std\-::vector$<$ double $>$ \&initial\-Parameters)
\begin{DoxyCompactList}\small\item\em Shortcut to fit an \doxyref{I\-Base\-Histogram}{p.}{classAIDA_1_1IBaseHistogram} directly with an \doxyref{I\-Function}{p.}{classAIDA_1_1IFunction}. \end{DoxyCompactList}\item 
virtual {\bf I\-Fit\-Result} $\ast$ {\bf fit} ({\bf I\-Data\-Point\-Set} \&data\-Point\-Set, {\bf I\-Function} \&f)
\begin{DoxyCompactList}\small\item\em Shortcut to fit an \doxyref{I\-Data\-Point\-Set}{p.}{classAIDA_1_1IDataPointSet} directly with an \doxyref{I\-Function}{p.}{classAIDA_1_1IFunction}. \end{DoxyCompactList}\item 
virtual {\bf I\-Fit\-Result} $\ast$ {\bf fit} ({\bf I\-Data\-Point\-Set} \&data\-Point\-Set, const std\-::string \&model)
\begin{DoxyCompactList}\small\item\em Shortcut to fit an \doxyref{I\-Data\-Point\-Set}{p.}{classAIDA_1_1IDataPointSet} directly with an \doxyref{I\-Function}{p.}{classAIDA_1_1IFunction}. \end{DoxyCompactList}\item 
virtual {\bf I\-Fit\-Result} $\ast$ {\bf fit} ({\bf I\-Data\-Point\-Set} \&data\-Point\-Set, const std\-::string \&model, const std\-::vector$<$ double $>$ \&initial\-Parameters)
\begin{DoxyCompactList}\small\item\em Shortcut to fit an \doxyref{I\-Data\-Point\-Set}{p.}{classAIDA_1_1IDataPointSet} directly with an \doxyref{I\-Function}{p.}{classAIDA_1_1IFunction}. \end{DoxyCompactList}\item 
virtual {\bf I\-Fit\-Result} $\ast$ {\bf fit} ({\bf I\-Fit\-Data} \&d, const std\-::string \&model)\label{classAIDA_1_1IFitterROOT_a999a6d35cf17694c59d19161a5a02b47}

\begin{DoxyCompactList}\small\item\em Shortcut for the predefined models. \end{DoxyCompactList}\item 
virtual {\bf I\-Fit\-Result} $\ast$ {\bfseries fit} ({\bf I\-Fit\-Data} \&d, const std\-::string \&model, const std\-::vector$<$ double $>$ \&initial\-Parameters)\label{classAIDA_1_1IFitterROOT_a3c96e063f5278ed387b99e45bba29f60}

\item 
virtual bool {\bf set\-Engine} (const std\-::string \&name)
\begin{DoxyCompactList}\small\item\em Set the optimization engine which is used internally for fitting. \end{DoxyCompactList}\item 
virtual std\-::string {\bf engine\-Name} ()
\begin{DoxyCompactList}\small\item\em Get the name of the engine currently in use. \end{DoxyCompactList}\item 
virtual {\bf I\-Fit\-Parameter\-Settings} \& {\bf fit\-Parameter\-Settings} (const std\-::string \&name)
\begin{DoxyCompactList}\small\item\em Access to fit parameter settings. \end{DoxyCompactList}\item 
virtual std\-::vector$<$ std\-::string $>$ {\bf list\-Parameter\-Settings} ()\label{classAIDA_1_1IFitterROOT_a8f49b3761dfd8b0a31a1eea61fe51283}

\begin{DoxyCompactList}\small\item\em Get a vector of names of all parameter settings defined in the fitter. \end{DoxyCompactList}\item 
virtual void {\bf reset\-Parameter\-Settings} ()\label{classAIDA_1_1IFitterROOT_acfe7312effa0c809761574ad6f8dd592}

\begin{DoxyCompactList}\small\item\em Reset all parameter settings which fitter remebers. \end{DoxyCompactList}\item 
virtual bool {\bf set\-Constraint} (const std\-::string \&expr)
\begin{DoxyCompactList}\small\item\em Set a general constraint in the parameter space. \end{DoxyCompactList}\item 
virtual std\-::vector$<$ std\-::string $>$ {\bf constraints} ()\label{classAIDA_1_1IFitterROOT_aedc71d82c6c666039ea4c5e5f7d5a610}

\begin{DoxyCompactList}\small\item\em Get the list of all constraints. \end{DoxyCompactList}\item 
virtual void {\bf reset\-Constraints} ()\label{classAIDA_1_1IFitterROOT_a06dda45754dd8dd2bfdb32dc47559cbe}

\begin{DoxyCompactList}\small\item\em Reset all the constraints. \end{DoxyCompactList}\item 
virtual bool {\bf set\-Fit\-Method} (const std\-::string \&name)
\begin{DoxyCompactList}\small\item\em Set the fit method type. \end{DoxyCompactList}\item 
virtual std\-::string {\bf fit\-Method\-Name} ()
\begin{DoxyCompactList}\small\item\em Get the name of the fit method currently in use. \end{DoxyCompactList}\item 
virtual {\bf I\-Data\-Point\-Set} $\ast$ {\bf create\-Scan1\-D} ({\bf I\-Fit\-Data} \&d, {\bf I\-Function} \&f, const std\-::string \&par, int npts, double pmin, double pmax)
\begin{DoxyCompactList}\small\item\em Create a 1\-D scan of the fit quality for given parameter 'par' of the function. \end{DoxyCompactList}\item 
virtual {\bf I\-Data\-Point\-Set} $\ast$ {\bf create\-Contour} ({\bf I\-Fit\-Data} \&d, {\bf I\-Fit\-Result} \&r, const std\-::string \&par1, const std\-::string \&par2, int npts, double up)
\begin{DoxyCompactList}\small\item\em Create a 2\-D contour spanned on 'par1' and 'par2', with given number of npts points. \end{DoxyCompactList}\item 
virtual void {\bf set\-Use\-Function\-Gradient} (bool use\-Grad)
\begin{DoxyCompactList}\small\item\em Choose between using or not using the analytical derivatives if provided by the function. \end{DoxyCompactList}\item 
virtual bool {\bf use\-Function\-Gradient} ()
\begin{DoxyCompactList}\small\item\em Check if the \doxyref{I\-Fitter}{p.}{classAIDA_1_1IFitter} is set to use the analytical derivatives provided by the \doxyref{I\-Function}{p.}{classAIDA_1_1IFunction}. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Dummy implementation of the class \char`\"{}\-I\-Fitter\char`\"{}. 

\begin{DoxyAuthor}{Author}
T. Kraemer, D\-E\-S\-Y 
\end{DoxyAuthor}
\begin{DoxyVersion}{Version}

\end{DoxyVersion}
\begin{DoxyParagraph}{Id\-:}
\doxyref{I\-Fitter\-R\-O\-O\-T.\-h}{p.}{IFitterROOT_8h_source},v 1.\-1 2007-\/01-\/03 17\-:03\-:20 tkraemer Exp 
\end{DoxyParagraph}


\subsection{Member Function Documentation}
\index{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T@{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T}!create\-Contour@{create\-Contour}}
\index{create\-Contour@{create\-Contour}!AIDA::IFitterROOT@{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T}}
\subsubsection[{create\-Contour}]{\setlength{\rightskip}{0pt plus 5cm}{\bf I\-Data\-Point\-Set} $\ast$ I\-Fitter\-R\-O\-O\-T\-::create\-Contour (
\begin{DoxyParamCaption}
\item[{{\bf I\-Fit\-Data} \&}]{d, }
\item[{{\bf I\-Fit\-Result} \&}]{r, }
\item[{const std\-::string \&}]{par1, }
\item[{const std\-::string \&}]{par2, }
\item[{int}]{npts, }
\item[{double}]{up}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{classAIDA_1_1IFitterROOT_a9c29f05dd14498cde880c6193b2d11b5}


Create a 2\-D contour spanned on 'par1' and 'par2', with given number of npts points. 

Contour is create using previously obtained fit results. Argument 'up' tells the vertical distance of the contour plane above the minimal fit quality value. 

Implements {\bf A\-I\-D\-A\-::\-I\-Fitter} \doxyref{}{p.}{classAIDA_1_1IFitter_ab2d1d606f6bd6ce9b5211bf96eab9e38}.

\index{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T@{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T}!create\-Scan1\-D@{create\-Scan1\-D}}
\index{create\-Scan1\-D@{create\-Scan1\-D}!AIDA::IFitterROOT@{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T}}
\subsubsection[{create\-Scan1\-D}]{\setlength{\rightskip}{0pt plus 5cm}{\bf I\-Data\-Point\-Set} $\ast$ I\-Fitter\-R\-O\-O\-T\-::create\-Scan1\-D (
\begin{DoxyParamCaption}
\item[{{\bf I\-Fit\-Data} \&}]{d, }
\item[{{\bf I\-Function} \&}]{f, }
\item[{const std\-::string \&}]{par, }
\item[{int}]{npts, }
\item[{double}]{pmin, }
\item[{double}]{pmax}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{classAIDA_1_1IFitterROOT_ad30b29ab15b1a28e8b40a775dd5bf3f2}


Create a 1\-D scan of the fit quality for given parameter 'par' of the function. 

User must make sure that the returned vector is properly deleted after use. The vector containes 'npts' points which are evenly sampled in the interval ('pmin','pmax'). 

Implements {\bf A\-I\-D\-A\-::\-I\-Fitter} \doxyref{}{p.}{classAIDA_1_1IFitter_a47bde6340f7a95cde481264e630d8490}.

\index{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T@{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T}!engine\-Name@{engine\-Name}}
\index{engine\-Name@{engine\-Name}!AIDA::IFitterROOT@{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T}}
\subsubsection[{engine\-Name}]{\setlength{\rightskip}{0pt plus 5cm}std\-::string I\-Fitter\-R\-O\-O\-T\-::engine\-Name (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{classAIDA_1_1IFitterROOT_aeeccd89ee44a51db95717f59fda794ae}


Get the name of the engine currently in use. 

\begin{DoxyReturn}{Returns}
The name of the optimizer engine used by the \doxyref{I\-Fitter}{p.}{classAIDA_1_1IFitter}. 
\end{DoxyReturn}


Implements {\bf A\-I\-D\-A\-::\-I\-Fitter} \doxyref{}{p.}{classAIDA_1_1IFitter_a874264c5d10100cdd15cbdbe7c2f0019}.

\index{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T@{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T}!fit@{fit}}
\index{fit@{fit}!AIDA::IFitterROOT@{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T}}
\subsubsection[{fit}]{\setlength{\rightskip}{0pt plus 5cm}{\bf I\-Fit\-Result} $\ast$ I\-Fitter\-R\-O\-O\-T\-::fit (
\begin{DoxyParamCaption}
\item[{{\bf I\-Fit\-Data} \&}]{fit\-Data, }
\item[{{\bf I\-Function} \&}]{func}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{classAIDA_1_1IFitterROOT_a7f8035ca1d3e498fd072d9acdc4cbf52}


Fit an \doxyref{I\-Function}{p.}{classAIDA_1_1IFunction} to an \doxyref{I\-Fit\-Data}{p.}{classAIDA_1_1IFitData}. 

The result of the fit is an \doxyref{I\-Fit\-Result}{p.}{classAIDA_1_1IFitResult}. 
\begin{DoxyParams}{Parameters}
{\em fit\-Data} & The \doxyref{I\-Fit\-Data}{p.}{classAIDA_1_1IFitData} to be fitted. \\
\hline
{\em func} & The \doxyref{I\-Function}{p.}{classAIDA_1_1IFunction} to fit on the data. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The \doxyref{I\-Fit\-Result}{p.}{classAIDA_1_1IFitResult} containing the results of the fit. 
\end{DoxyReturn}


Implements {\bf A\-I\-D\-A\-::\-I\-Fitter} \doxyref{}{p.}{classAIDA_1_1IFitter_a80411c81ac17d1a378b94187c374e687}.

\index{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T@{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T}!fit@{fit}}
\index{fit@{fit}!AIDA::IFitterROOT@{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T}}
\subsubsection[{fit}]{\setlength{\rightskip}{0pt plus 5cm}{\bf I\-Fit\-Result} $\ast$ I\-Fitter\-R\-O\-O\-T\-::fit (
\begin{DoxyParamCaption}
\item[{{\bf I\-Base\-Histogram} \&}]{hist, }
\item[{{\bf I\-Function} \&}]{func}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{classAIDA_1_1IFitterROOT_ac9c51b7d4a4194e845be486f756a635b}


Shortcut to fit an \doxyref{I\-Base\-Histogram}{p.}{classAIDA_1_1IBaseHistogram} directly with an \doxyref{I\-Function}{p.}{classAIDA_1_1IFunction}. 

The dimension of the \doxyref{I\-Base\-Histogram}{p.}{classAIDA_1_1IBaseHistogram} must match the dimension of the \doxyref{I\-Function}{p.}{classAIDA_1_1IFunction}. I\-Histograms and I\-Profiles are for binned fits only, I\-Clouds only for unbinned fits. 
\begin{DoxyParams}{Parameters}
{\em hist} & The \doxyref{I\-Base\-Histogram}{p.}{classAIDA_1_1IBaseHistogram} to be fitted. \\
\hline
{\em func} & The \doxyref{I\-Function}{p.}{classAIDA_1_1IFunction} to fit on the data. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The \doxyref{I\-Fit\-Result}{p.}{classAIDA_1_1IFitResult} containing the result of the fit. 
\end{DoxyReturn}


Implements {\bf A\-I\-D\-A\-::\-I\-Fitter} \doxyref{}{p.}{classAIDA_1_1IFitter_a214e4959b5a41ca21750cfab287f6d55}.

\index{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T@{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T}!fit@{fit}}
\index{fit@{fit}!AIDA::IFitterROOT@{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T}}
\subsubsection[{fit}]{\setlength{\rightskip}{0pt plus 5cm}{\bf I\-Fit\-Result} $\ast$ I\-Fitter\-R\-O\-O\-T\-::fit (
\begin{DoxyParamCaption}
\item[{{\bf I\-Base\-Histogram} \&}]{hist, }
\item[{const std\-::string \&}]{model}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{classAIDA_1_1IFitterROOT_aba10b6b0f5b5ad3a59311ff80fb09298}


Shortcut to fit an \doxyref{I\-Base\-Histogram}{p.}{classAIDA_1_1IBaseHistogram} directly with an \doxyref{I\-Function}{p.}{classAIDA_1_1IFunction}. 

The dimension of the \doxyref{I\-Base\-Histogram}{p.}{classAIDA_1_1IBaseHistogram} must match the dimension of the \doxyref{I\-Function}{p.}{classAIDA_1_1IFunction}. I\-Histograms and I\-Profiles are for binned fits only, I\-Clouds only for unbinned fits. 
\begin{DoxyParams}{Parameters}
{\em hist} & The \doxyref{I\-Base\-Histogram}{p.}{classAIDA_1_1IBaseHistogram} to be fitted. \\
\hline
{\em model} & The string defining the function to be used. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The \doxyref{I\-Fit\-Result}{p.}{classAIDA_1_1IFitResult} containing the result of the fit. 
\end{DoxyReturn}


Implements {\bf A\-I\-D\-A\-::\-I\-Fitter} \doxyref{}{p.}{classAIDA_1_1IFitter_aa97c4d7e704e6af836a61cc80507db02}.

\index{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T@{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T}!fit@{fit}}
\index{fit@{fit}!AIDA::IFitterROOT@{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T}}
\subsubsection[{fit}]{\setlength{\rightskip}{0pt plus 5cm}{\bf I\-Fit\-Result} $\ast$ I\-Fitter\-R\-O\-O\-T\-::fit (
\begin{DoxyParamCaption}
\item[{{\bf I\-Base\-Histogram} \&}]{hist, }
\item[{const std\-::string \&}]{model, }
\item[{const std\-::vector$<$ double $>$ \&}]{initial\-Parameters}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{classAIDA_1_1IFitterROOT_a7e0fe30dd6b082c547b461ff5c521ac4}


Shortcut to fit an \doxyref{I\-Base\-Histogram}{p.}{classAIDA_1_1IBaseHistogram} directly with an \doxyref{I\-Function}{p.}{classAIDA_1_1IFunction}. 

The dimension of the \doxyref{I\-Base\-Histogram}{p.}{classAIDA_1_1IBaseHistogram} must match the dimension of the \doxyref{I\-Function}{p.}{classAIDA_1_1IFunction}. I\-Histograms and I\-Profiles are for binned fits only, I\-Clouds only for unbinned fits. 
\begin{DoxyParams}{Parameters}
{\em hist} & The \doxyref{I\-Base\-Histogram}{p.}{classAIDA_1_1IBaseHistogram} to be fitted. \\
\hline
{\em model} & The string defining the function to be used. \\
\hline
{\em initial\-Parameters} & The array of the initial parameter values; its size must match the number of parameters in the function. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The \doxyref{I\-Fit\-Result}{p.}{classAIDA_1_1IFitResult} containing the result of the fit. 
\end{DoxyReturn}


Implements {\bf A\-I\-D\-A\-::\-I\-Fitter} \doxyref{}{p.}{classAIDA_1_1IFitter_a3ec23adc2836c0d6c6892d0adbdb0742}.

\index{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T@{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T}!fit@{fit}}
\index{fit@{fit}!AIDA::IFitterROOT@{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T}}
\subsubsection[{fit}]{\setlength{\rightskip}{0pt plus 5cm}{\bf I\-Fit\-Result} $\ast$ I\-Fitter\-R\-O\-O\-T\-::fit (
\begin{DoxyParamCaption}
\item[{{\bf I\-Data\-Point\-Set} \&}]{data\-Point\-Set, }
\item[{{\bf I\-Function} \&}]{f}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{classAIDA_1_1IFitterROOT_a6e9ed9e681623c6220a92c8ccf38f4e7}


Shortcut to fit an \doxyref{I\-Data\-Point\-Set}{p.}{classAIDA_1_1IDataPointSet} directly with an \doxyref{I\-Function}{p.}{classAIDA_1_1IFunction}. 

The dimension of the \doxyref{I\-Data\-Point\-Set}{p.}{classAIDA_1_1IDataPointSet} must be equal the dimension of the \doxyref{I\-Function}{p.}{classAIDA_1_1IFunction} + 1. This are binned fits only; the last coordinate of the \doxyref{I\-Data\-Point\-Set}{p.}{classAIDA_1_1IDataPointSet} is used as the \char`\"{}height\char`\"{} in a fit to an \doxyref{I\-Base\-Histogram}{p.}{classAIDA_1_1IBaseHistogram}. 
\begin{DoxyParams}{Parameters}
{\em data\-Point\-Set} & The \doxyref{I\-Data\-Point\-Set}{p.}{classAIDA_1_1IDataPointSet} to be fitted. \\
\hline
{\em func} & The \doxyref{I\-Function}{p.}{classAIDA_1_1IFunction} to fit on the data. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The \doxyref{I\-Fit\-Result}{p.}{classAIDA_1_1IFitResult} containing the result of the fit. 
\end{DoxyReturn}


Implements {\bf A\-I\-D\-A\-::\-I\-Fitter} \doxyref{}{p.}{classAIDA_1_1IFitter_ab6676537bd5b07c194d0e1bfa2520c24}.

\index{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T@{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T}!fit@{fit}}
\index{fit@{fit}!AIDA::IFitterROOT@{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T}}
\subsubsection[{fit}]{\setlength{\rightskip}{0pt plus 5cm}{\bf I\-Fit\-Result} $\ast$ I\-Fitter\-R\-O\-O\-T\-::fit (
\begin{DoxyParamCaption}
\item[{{\bf I\-Data\-Point\-Set} \&}]{data\-Point\-Set, }
\item[{const std\-::string \&}]{model}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{classAIDA_1_1IFitterROOT_aa16ab4314728f9800c3d3dd360aec398}


Shortcut to fit an \doxyref{I\-Data\-Point\-Set}{p.}{classAIDA_1_1IDataPointSet} directly with an \doxyref{I\-Function}{p.}{classAIDA_1_1IFunction}. 

The dimension of the \doxyref{I\-Data\-Point\-Set}{p.}{classAIDA_1_1IDataPointSet} must be equal the dimension of the \doxyref{I\-Function}{p.}{classAIDA_1_1IFunction} + 1. This are binned fits only; the last coordinate of the \doxyref{I\-Data\-Point\-Set}{p.}{classAIDA_1_1IDataPointSet} is used as the \char`\"{}height\char`\"{} in a fit to an \doxyref{I\-Base\-Histogram}{p.}{classAIDA_1_1IBaseHistogram}. 
\begin{DoxyParams}{Parameters}
{\em data\-Point\-Set} & The \doxyref{I\-Data\-Point\-Set}{p.}{classAIDA_1_1IDataPointSet} to be fitted. \\
\hline
{\em model} & The string defining the function to be used. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The \doxyref{I\-Fit\-Result}{p.}{classAIDA_1_1IFitResult} containing the result of the fit. 
\end{DoxyReturn}


Implements {\bf A\-I\-D\-A\-::\-I\-Fitter} \doxyref{}{p.}{classAIDA_1_1IFitter_a04bc16487c742a4b5bc84ca4ad5a89ed}.

\index{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T@{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T}!fit@{fit}}
\index{fit@{fit}!AIDA::IFitterROOT@{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T}}
\subsubsection[{fit}]{\setlength{\rightskip}{0pt plus 5cm}{\bf I\-Fit\-Result} $\ast$ I\-Fitter\-R\-O\-O\-T\-::fit (
\begin{DoxyParamCaption}
\item[{{\bf I\-Data\-Point\-Set} \&}]{data\-Point\-Set, }
\item[{const std\-::string \&}]{model, }
\item[{const std\-::vector$<$ double $>$ \&}]{initial\-Parameters}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{classAIDA_1_1IFitterROOT_aaf3559a2247519f443f594be1856abed}


Shortcut to fit an \doxyref{I\-Data\-Point\-Set}{p.}{classAIDA_1_1IDataPointSet} directly with an \doxyref{I\-Function}{p.}{classAIDA_1_1IFunction}. 

The dimension of the \doxyref{I\-Data\-Point\-Set}{p.}{classAIDA_1_1IDataPointSet} must be equal the dimension of the \doxyref{I\-Function}{p.}{classAIDA_1_1IFunction} + 1. This are binned fits only; the last coordinate of the \doxyref{I\-Data\-Point\-Set}{p.}{classAIDA_1_1IDataPointSet} is used as the \char`\"{}height\char`\"{} in a fit to an \doxyref{I\-Base\-Histogram}{p.}{classAIDA_1_1IBaseHistogram}. 
\begin{DoxyParams}{Parameters}
{\em data\-Point\-Set} & The \doxyref{I\-Data\-Point\-Set}{p.}{classAIDA_1_1IDataPointSet} to be fitted. \\
\hline
{\em model} & The string defining the function to be used. \\
\hline
{\em initial\-Parameters} & The array of the initial parameter values; its size must match the number of parameters in the function. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The \doxyref{I\-Fit\-Result}{p.}{classAIDA_1_1IFitResult} containing the result of the fit. 
\end{DoxyReturn}


Implements {\bf A\-I\-D\-A\-::\-I\-Fitter} \doxyref{}{p.}{classAIDA_1_1IFitter_a8474d396a9c650802ceacd099e2dcafd}.

\index{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T@{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T}!fit\-Method\-Name@{fit\-Method\-Name}}
\index{fit\-Method\-Name@{fit\-Method\-Name}!AIDA::IFitterROOT@{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T}}
\subsubsection[{fit\-Method\-Name}]{\setlength{\rightskip}{0pt plus 5cm}std\-::string I\-Fitter\-R\-O\-O\-T\-::fit\-Method\-Name (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{classAIDA_1_1IFitterROOT_ac3ee6b94ebec1969b5273d4a599cb2ac}


Get the name of the fit method currently in use. 

\begin{DoxyReturn}{Returns}
The name of the fit method. 
\end{DoxyReturn}


Implements {\bf A\-I\-D\-A\-::\-I\-Fitter} \doxyref{}{p.}{classAIDA_1_1IFitter_a8343bb9e639276a5164bdfbb5e0ce977}.

\index{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T@{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T}!fit\-Parameter\-Settings@{fit\-Parameter\-Settings}}
\index{fit\-Parameter\-Settings@{fit\-Parameter\-Settings}!AIDA::IFitterROOT@{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T}}
\subsubsection[{fit\-Parameter\-Settings}]{\setlength{\rightskip}{0pt plus 5cm}{\bf I\-Fit\-Parameter\-Settings} \& I\-Fitter\-R\-O\-O\-T\-::fit\-Parameter\-Settings (
\begin{DoxyParamCaption}
\item[{const std\-::string \&}]{name}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{classAIDA_1_1IFitterROOT_ae597b16620666196e12598f21655910e}


Access to fit parameter settings. 

Fit\-Parameter\-Settings object belongs to and is managed by the fitter. Fitter implementation takes care that the returned reference is valid thru the lifetime of fitter. User can set the settings of the parameters independently of the parameters of the fitted function. Setting for parameters unknown in the function and set in the fitter are ignored in the fit. If settings are not explicitly set in the fitter, their default values are attached to function parameters during the fit. 

Implements {\bf A\-I\-D\-A\-::\-I\-Fitter} \doxyref{}{p.}{classAIDA_1_1IFitter_a28e033afb6e44821f2a00b87305816b4}.

\index{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T@{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T}!set\-Constraint@{set\-Constraint}}
\index{set\-Constraint@{set\-Constraint}!AIDA::IFitterROOT@{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T}}
\subsubsection[{set\-Constraint}]{\setlength{\rightskip}{0pt plus 5cm}bool I\-Fitter\-R\-O\-O\-T\-::set\-Constraint (
\begin{DoxyParamCaption}
\item[{const std\-::string \&}]{expr}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{classAIDA_1_1IFitterROOT_a3a512c533beb964b31a6d5c124943cfe}


Set a general constraint in the parameter space. 

The constraint is a parsed expression. P\-E\-N\-D\-I\-N\-G\-: The syntax to be fixed. 

Implements {\bf A\-I\-D\-A\-::\-I\-Fitter} \doxyref{}{p.}{classAIDA_1_1IFitter_aa3484833e3cef9e3d0810378a5c0e959}.

\index{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T@{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T}!set\-Engine@{set\-Engine}}
\index{set\-Engine@{set\-Engine}!AIDA::IFitterROOT@{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T}}
\subsubsection[{set\-Engine}]{\setlength{\rightskip}{0pt plus 5cm}bool I\-Fitter\-R\-O\-O\-T\-::set\-Engine (
\begin{DoxyParamCaption}
\item[{const std\-::string \&}]{name}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{classAIDA_1_1IFitterROOT_a16b1a1aea1160c67e35ccb34ad3aa2e1}


Set the optimization engine which is used internally for fitting. 


\begin{DoxyParams}{Parameters}
{\em name} & The name of the optimizer engine. Examples of predefined engines\-: \char`\"{}minuit\char`\"{}. The engine name is case-\/insensitive. Different engines are provided by different implementations. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
false If the name does not correspond to a valid engine. 
\end{DoxyReturn}


Implements {\bf A\-I\-D\-A\-::\-I\-Fitter} \doxyref{}{p.}{classAIDA_1_1IFitter_adc6273e54bd68f6c4419ea695a944f44}.

\index{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T@{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T}!set\-Fit\-Method@{set\-Fit\-Method}}
\index{set\-Fit\-Method@{set\-Fit\-Method}!AIDA::IFitterROOT@{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T}}
\subsubsection[{set\-Fit\-Method}]{\setlength{\rightskip}{0pt plus 5cm}bool I\-Fitter\-R\-O\-O\-T\-::set\-Fit\-Method (
\begin{DoxyParamCaption}
\item[{const std\-::string \&}]{name}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{classAIDA_1_1IFitterROOT_abc15ea586f1a7a59e13f71490f13e515}


Set the fit method type. 

Examples of pre-\/defined methods\-: \char`\"{}chi2\char`\"{}, \char`\"{}ml\char`\"{}. The method names are case-\/insensitive. 
\begin{DoxyParams}{Parameters}
{\em name} & The name of the fit method. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
false If the name does not correspond to a valid fit method. 
\end{DoxyReturn}


Implements {\bf A\-I\-D\-A\-::\-I\-Fitter} \doxyref{}{p.}{classAIDA_1_1IFitter_aaa2593593cc5a0434473897c8a5a3297}.

\index{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T@{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T}!set\-Use\-Function\-Gradient@{set\-Use\-Function\-Gradient}}
\index{set\-Use\-Function\-Gradient@{set\-Use\-Function\-Gradient}!AIDA::IFitterROOT@{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T}}
\subsubsection[{set\-Use\-Function\-Gradient}]{\setlength{\rightskip}{0pt plus 5cm}void I\-Fitter\-R\-O\-O\-T\-::set\-Use\-Function\-Gradient (
\begin{DoxyParamCaption}
\item[{bool}]{use\-Grad}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{classAIDA_1_1IFitterROOT_ac05978dce3cb816783540b10971bf673}


Choose between using or not using the analytical derivatives if provided by the function. 


\begin{DoxyParams}{Parameters}
{\em use\-Grad} & If {\ttfamily true} the \doxyref{I\-Fitter}{p.}{classAIDA_1_1IFitter} will use the analytical derivatives if provided by the \doxyref{I\-Function}{p.}{classAIDA_1_1IFunction}. \\
\hline
\end{DoxyParams}


Implements {\bf A\-I\-D\-A\-::\-I\-Fitter} \doxyref{}{p.}{classAIDA_1_1IFitter_a5959ca4867d707afbf4c338361573fff}.

\index{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T@{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T}!use\-Function\-Gradient@{use\-Function\-Gradient}}
\index{use\-Function\-Gradient@{use\-Function\-Gradient}!AIDA::IFitterROOT@{A\-I\-D\-A\-::\-I\-Fitter\-R\-O\-O\-T}}
\subsubsection[{use\-Function\-Gradient}]{\setlength{\rightskip}{0pt plus 5cm}bool I\-Fitter\-R\-O\-O\-T\-::use\-Function\-Gradient (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{classAIDA_1_1IFitterROOT_a59b2b35d6420743b77440f5ade45f8e5}


Check if the \doxyref{I\-Fitter}{p.}{classAIDA_1_1IFitter} is set to use the analytical derivatives provided by the \doxyref{I\-Function}{p.}{classAIDA_1_1IFunction}. 

\begin{DoxyReturn}{Returns}
{\ttfamily true} if the \doxyref{I\-Fitter}{p.}{classAIDA_1_1IFitter} uses the analytical derivatives. 
\end{DoxyReturn}


Implements {\bf A\-I\-D\-A\-::\-I\-Fitter} \doxyref{}{p.}{classAIDA_1_1IFitter_afd5152939476dd43fd82fa3d07680fdd}.



The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
I\-Fitter\-R\-O\-O\-T.\-h\item 
I\-Fitter\-R\-O\-O\-T.\-cc\end{DoxyCompactItemize}
