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;
90 const std::vector<ROOT::Fit::ParameterSettings> &
ParamsSettings()
const {
return fSettings; }
95 std::vector<ROOT::Fit::ParameterSettings> &
ParamsSettings() {
return fSettings; }
100 unsigned int NPar()
const {
return fSettings.size(); }
111 void SetParamsSettings(
unsigned int npar,
const double * params,
const double * vstep = 0);
124 void SetFromFitResult (
const FitResult & rhs);
141 #ifndef __CINT__ // this method fails on Windows 153 if (type) fMinimizerOpts.SetMinimizerType(type);
154 if (algo) fMinimizerOpts.SetMinimizerAlgorithm(algo);
160 const std::string &
MinimizerType()
const {
return fMinimizerOpts.MinimizerType(); }
187 const std::vector<unsigned int> &
MinosParams()
const {
return fMinosParams; }
208 fMinosParams = paramInd;
218 static void SetDefaultMinimizer(
const char *
type,
const char * algo = 0);
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 ...
const std::string & MinimizerType() const
return type of minimizer package
This namespace contains pre-defined functions to be used in conjuction with TExecutor::Map and TExecu...
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)
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.
const std::vector< ROOT::Fit::ParameterSettings > & ParamsSettings() const
get the vector of parameter settings (const method)
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.
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 SetNormErrors(bool on=true)
set the option to normalize the error on the result according to chi2/ndf
const std::string & MinimizerAlgoType() const
return type of minimizer algorithms
std::vector< ROOT::Fit::ParameterSettings > fSettings
void SetParabErrors(bool on=true)
set parabolic erros
bool MinosErrors() const
do minos errros analysis on the parameters
std::vector< unsigned int > fMinosParams
Class describing the configuration of the fit, options and parameter settings using the ROOT::Fit::Pa...