class ROOT::Fit::FitConfig


   Class describing the configuration of the fit, options and parameter settings
   using the ROOT::Fit::ParameterSettings class

   @ingroup FitMain

Function Members (Methods)

public:
~FitConfig()
ROOT::Math::Minimizer*CreateMinimizer()
ROOT::Fit::FitConfigFitConfig(unsigned int npar = 0)
ROOT::Fit::FitConfigFitConfig(const ROOT::Fit::FitConfig&)
const string&MinimizerAlgoType() const
const ROOT::Fit::MinimizerControlParams&MinimizerOptions() const
ROOT::Fit::MinimizerControlParams&MinimizerOptions()
const string&MinimizerType() const
boolNormalizeErrors()
ROOT::Fit::FitConfig&operator=(const ROOT::Fit::FitConfig&)
const vector<ROOT::Fit::ParameterSettings>&ParamsSettings() const
vector<ROOT::Fit::ParameterSettings>&ParamsSettings()
const ROOT::Fit::ParameterSettings&ParSettings(unsigned int i) const
ROOT::Fit::ParameterSettings&ParSettings(unsigned int i)
static voidSetDefaultMinimizer(const string& type, const string& algo = "")
voidSetMinimizer(const string& type, string algo = "")
voidSetNormErrors(bool on)
voidSetParamsSettings(const ROOT::Math::IParamMultiFunction& func)
voidSetParamsSettings(unsigned int npar, const double* params = 0)

Data Members

private:
stringfMinimAlgoTypealgorithm type (MIGRAD, SIMPLEX, etc..)
ROOT::Fit::MinimizerControlParamsfMinimizerOptsminimizer control parameters
stringfMinimizerTypeminimizer type (MINUIT, MINUIT2, etc..)
boolfNormErrorsflag for error normalization
vector<ROOT::Fit::ParameterSettings>fSettingsvector with the parameter settings

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

FitConfig(unsigned int npar = 0)
      Default constructor

~FitConfig()
      Destructor

const ParameterSettings & ParSettings(unsigned int i)
      get the parameter settings for the i-th parameter (const method)

{ return fSettings[i]; }
ParameterSettings & ParSettings(unsigned int i)
      get the parameter settings for the i-th parameter (non-const method)

{ return fSettings[i]; }
const std::vector<ROOT::Fit::ParameterSettings> & ParamsSettings()
      get the vector of parameter settings  (const method)

{ return fSettings; }
std::vector<ROOT::Fit::ParameterSettings> & ParamsSettings()
      get the vector of parameter settings  (non-const method)

{ return fSettings; }
void SetParamsSettings(unsigned int npar, const double* params = 0)
      set the parameter settings from number of params and optionally a vector of values (otherwise are set to zero)

void SetParamsSettings(const ROOT::Math::IParamMultiFunction& func)
      set the parameter settings from a function

ROOT::Math::Minimizer * CreateMinimizer()
      create a new minimizer according to chosen configuration

const MinimizerControlParams & MinimizerOptions()
      access to the minimizer  control parameter (const method)

{ return fMinimizerOpts; }
MinimizerControlParams & MinimizerOptions()
      access to the minimizer  control parameter (non const method)

{ return fMinimizerOpts; }
void SetMinimizer(const string& type, string algo = "")
      set minimizer type

const std::string & MinimizerType()
      return type of minimizer package

{ return fMinimizerType; }
const std::string & MinimizerAlgoType()
      return type of minimizer algorithms

{ return fMinimAlgoType; }
bool NormalizeErrors()
      flag to check if resulting errors are be normalized according to chi2/ndf

{ return fNormErrors; }
void SetNormErrors(bool on)
      set the option to normalize the error on the result  according to chi2/ndf

{ fNormErrors= on; }
void SetDefaultMinimizer(const string& type, const string& algo = "")
      static function to control default minimizer type and algorithm


Author: L. Moneta Thu Sep 21 16:21:29 2006
Last change: root/mathcore:$Id: FitConfig.h 24477 2008-06-23 12:58:47Z moneta $
Last generated: 2008-06-25 08:29
Copyright (c) 2006 LCG ROOT Math Team, CERN/PH-SFT *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.