Definition at line 32 of file RooAbsMinimizerFcn.h.
Public Member Functions | |
RooAbsMinimizerFcn (RooArgList paramList, RooMinimizer *context) | |
virtual | ~RooAbsMinimizerFcn ()=default |
RooArgList const & | allParams () const |
void | ApplyCovarianceMatrix (TMatrixDSym &V) |
Set different external covariance matrix. | |
void | BackProp () |
Put Minuit results back into RooFit objects. | |
RooMinimizer::Config const & | cfg () const |
RooArgList | constParams () const |
Int_t | evalCounter () const |
RooRealVar & | floatableParam (std::size_t i) const |
RooArgList | floatParams () const |
virtual std::string | getFunctionName () const =0 |
RooMinimizer sometimes needs the name of the minimized function. Implement this in the derived class. | |
virtual std::string | getFunctionTitle () const =0 |
RooMinimizer sometimes needs the title of the minimized function. Implement this in the derived class. | |
std::ofstream * | GetLogFile () |
double & | GetMaxFCN () |
virtual ROOT::Math::IMultiGenFunction * | getMultiGenFcn ()=0 |
unsigned int | getNDim () const |
Int_t | GetNumInvalidNLL () const |
double & | getOffset () const |
Return a possible offset that's applied to the function to separate invalid function values from valid ones. | |
RooArgList | initFloatParams () const |
bool | SetLogFile (const char *inLogfile) |
Change the file name for logging of a RooMinimizer of all MINUIT steppings through the parameter space. | |
virtual void | setOffsetting (bool flag)=0 |
Enable or disable offsetting on the function to be minimized, which enhances numerical precision. | |
void | setOptimizeConst (Int_t flag) |
bool | SetPdfParamVal (int index, double value) const |
Set value of parameter i. | |
virtual bool | Synchronize (std::vector< ROOT::Fit::ParameterSettings > ¶meters) |
Like synchronizeParameterSettings, Synchronize informs Minuit through its parameter_settings vector of RooFit parameter properties, but Synchronize can be overridden to e.g. | |
bool | synchronizeParameterSettings (std::vector< ROOT::Fit::ParameterSettings > ¶meters, bool optConst) |
Informs Minuit through its parameter_settings vector of RooFit parameter properties. | |
void | zeroEvalCount () |
Protected Member Functions | |
double | applyEvalErrorHandling (double fvalue) const |
Apply corrections on the fvalue if errors were signaled. | |
void | finishDoEval () const |
void | optimizeConstantTerms (bool constStatChange, bool constValChange) |
void | printEvalErrors () const |
Print information about why evaluation failed. | |
virtual void | setOptimizeConstOnFunction (RooAbsArg::ConstOpCode opcode, bool doAlsoTrackingOpt)=0 |
This function must be overridden in the derived class to pass on constant term optimization configuration to the function to be minimized. | |
Static Protected Member Functions | |
static bool | canBeFloating (RooAbsArg const &arg) |
static bool | treatAsConstant (RooAbsArg const &arg) |
Protected Attributes | |
RooArgList | _allParams |
RooArgList | _allParamsInit |
RooMinimizer * | _context = nullptr |
int | _evalCounter {0} |
std::vector< std::size_t > | _floatableParamIndices |
double | _funcOffset {0.} |
std::ofstream * | _logfile = nullptr |
double | _maxFCN = -std::numeric_limits<double>::infinity() |
int | _numBadNLL = 0 |
bool | _optConst = false |
#include </github/home/ROOT-CI/src/roofit/roofitcore/src/RooAbsMinimizerFcn.h>
RooAbsMinimizerFcn::RooAbsMinimizerFcn | ( | RooArgList | paramList, |
RooMinimizer * | context ) |
Definition at line 39 of file RooAbsMinimizerFcn.cxx.
|
virtualdefault |
|
inline |
Definition at line 46 of file RooAbsMinimizerFcn.h.
void RooAbsMinimizerFcn::ApplyCovarianceMatrix | ( | TMatrixDSym & | V | ) |
Set different external covariance matrix.
Apply results of given external covariance matrix.
i.e. propagate its errors to all RRV parameter representations and give this matrix instead of the HESSE matrix at the next save() call
Definition at line 219 of file RooAbsMinimizerFcn.cxx.
Apply corrections on the fvalue if errors were signaled.
Two kinds of errors are possible: 1. infinite or nan values (the latter can be a signaling nan, using RooNaNPacker) or 2. logEvalError-type errors. Both are caught here and fvalue is updated so that Minuit in turn is nudged to move the search outside of the problematic parameter space area.
Definition at line 276 of file RooAbsMinimizerFcn.cxx.
void RooAbsMinimizerFcn::BackProp | ( | ) |
Put Minuit results back into RooFit objects.
Transfer MINUIT fit results back into RooFit objects.
Definition at line 166 of file RooAbsMinimizerFcn.cxx.
Definition at line 100 of file RooAbsMinimizerFcn.h.
|
inline |
Definition at line 82 of file RooAbsMinimizerFcn.h.
RooArgList RooAbsMinimizerFcn::constParams | ( | ) | const |
Definition at line 364 of file RooAbsMinimizerFcn.cxx.
|
inline |
Definition at line 53 of file RooAbsMinimizerFcn.h.
|
protected |
Definition at line 300 of file RooAbsMinimizerFcn.cxx.
|
inline |
Definition at line 84 of file RooAbsMinimizerFcn.h.
RooArgList RooAbsMinimizerFcn::floatParams | ( | ) | const |
Definition at line 354 of file RooAbsMinimizerFcn.cxx.
|
pure virtual |
RooMinimizer sometimes needs the name of the minimized function. Implement this in the derived class.
Implemented in RooMinimizerFcn, and RooFit::TestStatistics::MinuitFcnGrad.
|
pure virtual |
RooMinimizer sometimes needs the title of the minimized function. Implement this in the derived class.
Implemented in RooMinimizerFcn, and RooFit::TestStatistics::MinuitFcnGrad.
|
inline |
Definition at line 70 of file RooAbsMinimizerFcn.h.
|
inline |
Definition at line 52 of file RooAbsMinimizerFcn.h.
|
pure virtual |
Implemented in RooMinimizerFcn, and RooFit::TestStatistics::MinuitFcnGrad.
|
inline |
Definition at line 72 of file RooAbsMinimizerFcn.h.
|
inline |
Definition at line 50 of file RooAbsMinimizerFcn.h.
|
inline |
Return a possible offset that's applied to the function to separate invalid function values from valid ones.
Definition at line 56 of file RooAbsMinimizerFcn.h.
RooArgList RooAbsMinimizerFcn::initFloatParams | ( | ) | const |
Definition at line 374 of file RooAbsMinimizerFcn.cxx.
|
protected |
Definition at line 336 of file RooAbsMinimizerFcn.cxx.
|
protected |
Print information about why evaluation failed.
Using _printEvalErrors, the number of errors printed can be steered. Negative values disable printing.
Definition at line 245 of file RooAbsMinimizerFcn.cxx.
Change the file name for logging of a RooMinimizer of all MINUIT steppings through the parameter space.
If inLogfile is null, the current log file is closed and logging is stopped.
Definition at line 197 of file RooAbsMinimizerFcn.cxx.
Enable or disable offsetting on the function to be minimized, which enhances numerical precision.
Implemented in RooMinimizerFcn, and RooFit::TestStatistics::MinuitFcnGrad.
void RooAbsMinimizerFcn::setOptimizeConst | ( | Int_t | flag | ) |
Definition at line 305 of file RooAbsMinimizerFcn.cxx.
|
protectedpure virtual |
This function must be overridden in the derived class to pass on constant term optimization configuration to the function to be minimized.
For a RooAbsArg, this would be RooAbsArg::constOptimizeTestStatistic.
Implemented in RooMinimizerFcn, and RooFit::TestStatistics::MinuitFcnGrad.
Set value of parameter i.
Definition at line 227 of file RooAbsMinimizerFcn.cxx.
|
virtual |
Like synchronizeParameterSettings, Synchronize informs Minuit through its parameter_settings vector of RooFit parameter properties, but Synchronize can be overridden to e.g.
also include gradient strategy synchronization in subclasses.
Reimplemented in RooFit::TestStatistics::MinuitFcnGrad.
Definition at line 160 of file RooAbsMinimizerFcn.cxx.
bool RooAbsMinimizerFcn::synchronizeParameterSettings | ( | std::vector< ROOT::Fit::ParameterSettings > & | parameters, |
bool | optConst ) |
Informs Minuit through its parameter_settings vector of RooFit parameter properties.
Internal function to synchronize TMinimizer with current information in RooAbsReal function parameters.
Definition at line 69 of file RooAbsMinimizerFcn.cxx.
Definition at line 103 of file RooAbsMinimizerFcn.h.
|
inline |
Definition at line 54 of file RooAbsMinimizerFcn.h.
|
protected |
Definition at line 121 of file RooAbsMinimizerFcn.h.
|
protected |
Definition at line 122 of file RooAbsMinimizerFcn.h.
|
protected |
Definition at line 106 of file RooAbsMinimizerFcn.h.
|
mutableprotected |
Definition at line 113 of file RooAbsMinimizerFcn.h.
|
protected |
Definition at line 124 of file RooAbsMinimizerFcn.h.
|
mutableprotected |
Definition at line 111 of file RooAbsMinimizerFcn.h.
|
protected |
Definition at line 126 of file RooAbsMinimizerFcn.h.
Definition at line 110 of file RooAbsMinimizerFcn.h.
|
mutableprotected |
Definition at line 112 of file RooAbsMinimizerFcn.h.
Definition at line 119 of file RooAbsMinimizerFcn.h.