Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

When a function is provided to the fitter the user has to be aware that the AIDA prescription is to leave the input function unchanged, create a clone, perfom the fit on the clone and return the clone in the fit result. There are two advantages to this approach, advantage to this approach is that the input function can be reused as is for multiple identical fits while the fitted-cloned function is left unchanged in the fit result.
To override the above behavior the user can create a fitter by setting the noClone option to true in the options:

Code Block
borderStylesolid

// Create a fitter that does not clone the input function
IFitter fitter = af.createFitFactory().createFitter("chi2","minuit","noClone=true");

Fit Result

The outcome of a fit is an IFitResult. It contains the fitted function (see Cloning When Fitting), the error on the parameters, the covariance matrix etc.
The advantage of putting the result of the fit into a result object is that additional fits, error analysis, contours or scans can be easily calculated by using the information stored in it.