Class describing the configuration of the fit, options and parameter settings using the ROOT::Fit::ParameterSettings class.
Definition at line 47 of file FitConfig.h.
Public Member Functions | |
FitConfig (const FitConfig &rhs) | |
FitConfig (unsigned int npar=0) | |
Default constructor. | |
~FitConfig () | |
Destructor. | |
ROOT::Math::Minimizer * | CreateMinimizer () |
create a new minimizer according to chosen configuration | |
template<class T > | |
void | CreateParamsSettings (const ROOT::Math::IParamMultiFunctionTempl< T > &func) |
set the parameter settings from a model function. | |
const std::string & | MinimizerAlgoType () const |
return type of minimizer algorithms | |
std::string | MinimizerName () const |
return Minimizer full name (type / algorithm) | |
ROOT::Math::MinimizerOptions & | MinimizerOptions () |
access to the minimizer control parameter (non const method) | |
const std::string & | MinimizerType () const |
return type of minimizer package | |
bool | MinosErrors () const |
do minos errors analysis on the parameters | |
const std::vector< unsigned int > & | MinosParams () const |
return vector of parameter indices for which the Minos Error will be computed | |
bool | NormalizeErrors () const |
flag to check if resulting errors are be normalized according to chi2/ndf | |
unsigned int | NPar () const |
number of parameters settings | |
FitConfig & | operator= (const FitConfig &rhs) |
bool | ParabErrors () const |
do analysis for parabolic errors | |
std::vector< ROOT::Fit::ParameterSettings > & | ParamsSettings () |
get the vector of parameter settings (non-const method) | |
const std::vector< ROOT::Fit::ParameterSettings > & | ParamsSettings () const |
get the vector of parameter settings (const method) | |
std::vector< double > | ParamsValues () const |
return a vector of stored parameter values (i.e initial fit parameters) | |
ParameterSettings & | ParSettings (unsigned int i) |
get the parameter settings for the i-th parameter (non-const method) | |
const ParameterSettings & | ParSettings (unsigned int i) const |
get the parameter settings for the i-th parameter (const method) | |
void | SetFromFitResult (const FitResult &rhs) |
void | SetMinimizer (const char *type, const char *algo=nullptr) |
set minimizer type | |
void | SetMinimizerOptions (const ROOT::Math::MinimizerOptions &minopt) |
set all the minimizer options using class MinimizerOptions | |
void | SetMinosErrors (bool on=true) |
set Minos errors computation to be performed after fitting | |
void | SetMinosErrors (const std::vector< unsigned int > ¶mInd) |
set parameter indices for running Minos this can be used for running Minos on a subset of parameters - otherwise is run on all of them if MinosErrors() is set | |
void | SetNormErrors (bool on=true) |
set the option to normalize the error on the result according to chi2/ndf | |
void | SetParabErrors (bool on=true) |
set parabolic errors | |
void | SetParamsSettings (const std::vector< ROOT::Fit::ParameterSettings > &pars) |
void | SetParamsSettings (unsigned int npar, const double *params, const double *vstep=nullptr) |
set the parameter settings from number of parameters and a vector of values and optionally step values. | |
void | SetUpdateAfterFit (bool on=true) |
Update configuration after a fit using the FitResult. | |
void | SetWeightCorrection (bool on=true) |
apply the weight correction for error matrix computation | |
bool | UpdateAfterFit () const |
Update configuration after a fit using the FitResult. | |
bool | UseWeightCorrection () const |
Apply Weight correction for error matrix computation. | |
Static Public Member Functions | |
static void | SetDefaultMinimizer (const char *type, const char *algo=nullptr) |
static function to control default minimizer type and algorithm | |
Private Attributes | |
ROOT::Math::MinimizerOptions | fMinimizerOpts |
minimizer control parameters including name and algo type | |
bool | fMinosErrors |
do full error analysis using Minos | |
std::vector< unsigned int > | fMinosParams |
vector with the parameter indices for running Minos | |
bool | fNormErrors |
flag for error normalization | |
bool | fParabErrors |
get correct parabolic errors estimate (call Hesse after minimizing) | |
std::vector< ROOT::Fit::ParameterSettings > | fSettings |
vector with the parameter settings | |
bool | fUpdateAfterFit |
update the configuration after a fit using the result | |
bool | fWeightCorr |
apply correction to errors for weights fits | |
#include <Fit/FitConfig.h>
ROOT::Fit::FitConfig::FitConfig | ( | unsigned int | npar = 0 | ) |
Default constructor.
Definition at line 40 of file FitConfig.cxx.
ROOT::Fit::FitConfig::FitConfig | ( | const FitConfig & | rhs | ) |
Definition at line 57 of file FitConfig.cxx.
ROOT::Fit::FitConfig::~FitConfig | ( | ) |
Destructor.
Definition at line 52 of file FitConfig.cxx.
ROOT::Math::Minimizer * ROOT::Fit::FitConfig::CreateMinimizer | ( | ) |
create a new minimizer according to chosen configuration
Definition at line 173 of file FitConfig.cxx.
|
inline |
set the parameter settings from a model function.
Create always new parameter setting list from a given model function
Definition at line 109 of file FitConfig.h.
|
inline |
return type of minimizer algorithms
Definition at line 194 of file FitConfig.h.
std::string ROOT::Fit::FitConfig::MinimizerName | ( | ) | const |
return Minimizer full name (type / algorithm)
Definition at line 239 of file FitConfig.cxx.
|
inline |
access to the minimizer control parameter (non const method)
Definition at line 167 of file FitConfig.h.
|
inline |
return type of minimizer package
Definition at line 189 of file FitConfig.h.
|
inline |
do minos errors analysis on the parameters
Definition at line 210 of file FitConfig.h.
|
inline |
return vector of parameter indices for which the Minos Error will be computed
Definition at line 220 of file FitConfig.h.
|
inline |
flag to check if resulting errors are be normalized according to chi2/ndf
Definition at line 204 of file FitConfig.h.
|
inline |
number of parameters settings
Definition at line 96 of file FitConfig.h.
Definition at line 62 of file FitConfig.cxx.
|
inline |
do analysis for parabolic errors
Definition at line 207 of file FitConfig.h.
|
inline |
get the vector of parameter settings (non-const method)
Definition at line 91 of file FitConfig.h.
|
inline |
get the vector of parameter settings (const method)
Definition at line 86 of file FitConfig.h.
std::vector< double > ROOT::Fit::FitConfig::ParamsValues | ( | ) | const |
return a vector of stored parameter values (i.e initial fit parameters)
Definition at line 262 of file FitConfig.cxx.
|
inline |
get the parameter settings for the i-th parameter (non-const method)
Definition at line 81 of file FitConfig.h.
|
inline |
get the parameter settings for the i-th parameter (const method)
Definition at line 76 of file FitConfig.h.
|
static |
static function to control default minimizer type and algorithm
Definition at line 252 of file FitConfig.cxx.
void ROOT::Fit::FitConfig::SetFromFitResult | ( | const FitResult & | rhs | ) |
Definition at line 80 of file FitConfig.cxx.
|
inline |
set minimizer type
Definition at line 181 of file FitConfig.h.
void ROOT::Fit::FitConfig::SetMinimizerOptions | ( | const ROOT::Math::MinimizerOptions & | minopt | ) |
set all the minimizer options using class MinimizerOptions
Definition at line 257 of file FitConfig.cxx.
|
inline |
set Minos errors computation to be performed after fitting
Definition at line 231 of file FitConfig.h.
|
inline |
set parameter indices for running Minos this can be used for running Minos on a subset of parameters - otherwise is run on all of them if MinosErrors() is set
Definition at line 239 of file FitConfig.h.
|
inline |
set the option to normalize the error on the result according to chi2/ndf
Definition at line 225 of file FitConfig.h.
|
inline |
set parabolic errors
Definition at line 228 of file FitConfig.h.
|
inline |
Definition at line 145 of file FitConfig.h.
void ROOT::Fit::FitConfig::SetParamsSettings | ( | unsigned int | npar, |
const double * | params, | ||
const double * | vstep = nullptr |
||
) |
set the parameter settings from number of parameters and a vector of values and optionally step values.
If there are not existing or number of parameters does not match existing one, create a new parameter setting list.
Definition at line 135 of file FitConfig.cxx.
|
inline |
Update configuration after a fit using the FitResult.
Definition at line 245 of file FitConfig.h.
|
inline |
apply the weight correction for error matrix computation
Definition at line 234 of file FitConfig.h.
|
inline |
Update configuration after a fit using the FitResult.
Definition at line 213 of file FitConfig.h.
|
inline |
Apply Weight correction for error matrix computation.
Definition at line 216 of file FitConfig.h.
|
private |
minimizer control parameters including name and algo type
Definition at line 270 of file FitConfig.h.
|
private |
do full error analysis using Minos
Definition at line 263 of file FitConfig.h.
|
private |
vector with the parameter indices for running Minos
Definition at line 268 of file FitConfig.h.
|
private |
flag for error normalization
Definition at line 261 of file FitConfig.h.
|
private |
get correct parabolic errors estimate (call Hesse after minimizing)
Definition at line 262 of file FitConfig.h.
|
private |
vector with the parameter settings
Definition at line 267 of file FitConfig.h.
|
private |
update the configuration after a fit using the result
Definition at line 264 of file FitConfig.h.
|
private |
apply correction to errors for weights fits
Definition at line 265 of file FitConfig.h.