2 #ifndef AIDA_IFITTERROOT_H
3 #define AIDA_IFITTERROOT_H 1
5 #include <AIDA/IFitter.h>
14 class IFitParameterSettings;
39 virtual IFitResult *
fit(IFitData & fitData, IFunction & func) ;
49 virtual IFitResult *
fit(IBaseHistogram & hist, IFunction & func) ;
59 virtual IFitResult *
fit(IBaseHistogram & hist,
60 const std::string & model) ;
72 virtual IFitResult *
fit(IBaseHistogram & hist,
73 const std::string & model,
74 const std::vector<double> & initialParameters) ;
85 virtual IFitResult *
fit(IDataPointSet & dataPointSet,
97 virtual IFitResult *
fit(IDataPointSet & dataPointSet,
98 const std::string & model) ;
111 virtual IFitResult *
fit(IDataPointSet & dataPointSet,
112 const std::string & model,
113 const std::vector<double> & initialParameters) ;
116 virtual IFitResult *
fit(IFitData & d,
const std::string & model) ;
118 virtual IFitResult *
fit(IFitData & d,
119 const std::string & model,
120 const std::vector<double> & initialParameters) ;
129 virtual bool setEngine(
const std::string & name) ;
196 const std::string & par,
197 int npts,
double pmin,
double pmax) ;
205 const std::string & par1,
206 const std::string & par2,
207 int npts,
double up) ;
virtual bool setEngine(const std::string &name)
Set the optimization engine which is used internally for fitting.
Definition: IFitterROOT.cc:95
virtual void resetConstraints()
Reset all the constraints.
Definition: IFitterROOT.cc:139
virtual std::string fitMethodName()
Get the name of the fit method currently in use.
Definition: IFitterROOT.cc:150
virtual IFitResult * fit(IFitData &fitData, IFunction &func)
Fit an IFunction to an IFitData.
Definition: IFitterROOT.cc:23
virtual void setUseFunctionGradient(bool useGrad)
Choose between using or not using the analytical derivatives if provided by the function.
Definition: IFitterROOT.cc:177
virtual void resetParameterSettings()
Reset all parameter settings which fitter remebers.
Definition: IFitterROOT.cc:121
virtual IDataPointSet * createScan1D(IFitData &d, IFunction &f, const std::string &par, int npts, double pmin, double pmax)
Create a 1D scan of the fit quality for given parameter 'par' of the function.
Definition: IFitterROOT.cc:156
virtual std::vector< std::string > constraints()
Get the list of all constraints.
Definition: IFitterROOT.cc:132
virtual bool setConstraint(const std::string &expr)
Set a general constraint in the parameter space.
Definition: IFitterROOT.cc:126
virtual std::vector< std::string > listParameterSettings()
Get a vector of names of all parameter settings defined in the fitter.
Definition: IFitterROOT.cc:114
virtual ~IFitterROOT()
Destructor.
Definition: IFitterROOT.h:28
virtual IDataPointSet * createContour(IFitData &d, IFitResult &r, const std::string &par1, const std::string &par2, int npts, double up)
Create a 2D contour spanned on 'par1' and 'par2', with given number of npts points.
Definition: IFitterROOT.cc:166
virtual bool setFitMethod(const std::string &name)
Set the fit method type.
Definition: IFitterROOT.cc:144
virtual bool useFunctionGradient()
Check if the IFitter is set to use the analytical derivatives provided by the IFunction.
Definition: IFitterROOT.cc:182
virtual IFitParameterSettings & fitParameterSettings(const std::string &name)
Access to fit parameter settings.
Definition: IFitterROOT.cc:107
Dummy implementation of the class "IFitter".
Definition: IFitterROOT.h:24
Fitter performs fits, scans and computes contours.
Definition: IFitter.h:39
virtual std::string engineName()
Get the name of the engine currently in use.
Definition: IFitterROOT.cc:101