13 #ifndef ROOT_Fit_FitConfig
14 #define ROOT_Fit_FitConfig
17 #ifndef ROOT_Fit_ParameterSettings
21 #ifndef ROOT_Math_MinimizerOptions
25 #ifndef ROOT_Math_IParamFunctionfwd
37 class MinimizerOptions;
111 void SetParamsSettings(
unsigned int npar,
const double * params,
const double * vstep = 0);
141 #ifndef __CINT__ // this method fails on Windows
void SetMinosErrors(const std::vector< unsigned int > ¶mInd)
set parameter indeces for running Minos this can be used for running Minos on a subset of parameters ...
FitConfig(unsigned int npar=0)
Default constructor.
const std::string & MinimizerType() const
return type of minimizer package
Namespace for new ROOT classes and functions.
void SetMinimizerType(const char *type)
set minimizer type
ROOT::Math::Minimizer * CreateMinimizer()
create a new minimizer according to chosen configuration
void SetUpdateAfterFit(bool on=true)
Update configuration after a fit using the FitResult.
Class, describing value, limits and step size of the parameters Provides functionality also to set/re...
bool ParabErrors() const
do analysis for parabolic errors
const std::vector< unsigned int > & MinosParams() const
return vector of parameter indeces for which the Minos Error will be computed
ROOT::Math::MinimizerOptions fMinimizerOpts
ROOT::Math::MinimizerOptions & MinimizerOptions()
access to the minimizer control parameter (non const method)
FitConfig & operator=(const FitConfig &rhs)
void CreateParamsSettings(const ROOT::Math::IParamMultiFunction &func)
set the parameter settings from a model function.
bool UpdateAfterFit() const
Update configuration after a fit using the FitResult.
Abstract Minimizer class, defining the interface for the various minimizer (like Minuit2, Minuit, GSL, etc..) Plug-in's exist in ROOT to be able to instantiate the derived classes like ROOT::Math::GSLMinimizer or ROOT::Math::Minuit2Minimizer via the plug-in manager.
static void SetDefaultMinimizer(const char *type, const char *algo=0)
static function to control default minimizer type and algorithm
const std::vector< ROOT::Fit::ParameterSettings > & ParamsSettings() const
get the vector of parameter settings (const method)
const std::string & MinimizerAlgorithm() const
type of algorithm
bool NormalizeErrors() const
flag to check if resulting errors are be normalized according to chi2/ndf
ParameterSettings & ParSettings(unsigned int i)
get the parameter settings for the i-th parameter (non-const method)
void SetMinosErrors(bool on=true)
set Minos erros computation to be performed after fitting
void SetMinimizer(const char *type, const char *algo=0)
set minimizer type
IParamFunction interface (abstract class) describing multi-dimensional parameteric functions It is a ...
RooCmdArg Minimizer(const char *type, const char *alg=0)
const ParameterSettings & ParSettings(unsigned int i) const
get the parameter settings for the i-th parameter (const method)
unsigned int NPar() const
number of parameters settings
bool UseWeightCorrection() const
Apply Weight correction for error matrix computation.
void SetMinimizerOptions(const ROOT::Math::MinimizerOptions &minopt)
set all the minimizer options using class MinimizerOptions
class containg the result of the fit and all the related information (fitted parameter values...
TFitResultPtr Fit(FitObject *h1, TF1 *f1, Foption_t &option, const ROOT::Math::MinimizerOptions &moption, const char *goption, ROOT::Fit::DataRange &range)
void SetWeightCorrection(bool on=true)
apply the weight correction for error matric computation
double func(double *x, double *p)
std::vector< ROOT::Fit::ParameterSettings > & ParamsSettings()
get the vector of parameter settings (non-const method)
Namespace for new Math classes and functions.
void SetParamsSettings(const std::vector< ROOT::Fit::ParameterSettings > &pars)
void SetParamsSettings(unsigned int npar, const double *params, const double *vstep=0)
set the parameter settings from number of parameters and a vector of values and optionally step value...
void SetNormErrors(bool on=true)
set the option to normalize the error on the result according to chi2/ndf
const std::string & MinimizerType() const
type of minimizer
const std::string & MinimizerAlgoType() const
return type of minimizer algorithms
void SetFromFitResult(const FitResult &rhs)
std::vector< ROOT::Fit::ParameterSettings > fSettings
void SetParabErrors(bool on=true)
set parabolic erros
bool MinosErrors() const
do minos errros analysis on the parameters
void SetMinimizerAlgorithm(const char *type)
set minimizer algorithm
std::vector< unsigned int > fMinosParams
Class describing the configuration of the fit, options and parameter settings using the ROOT::Fit::Pa...