Definition at line 36 of file RooAbsMinimizerFcn.h.
Public Member Functions | |
RooAbsMinimizerFcn (const RooAbsMinimizerFcn &other) | |
RooAbsMinimizerFcn (RooArgList paramList, RooMinimizer *context, bool verbose=false) | |
virtual | ~RooAbsMinimizerFcn ()=default |
void | ApplyCovarianceMatrix (TMatrixDSym &V) |
Set different external covariance matrix. | |
void | BackProp (const ROOT::Fit::FitResult &results) |
Put Minuit results back into RooFit objects. | |
Int_t | evalCounter () const |
RooArgList * | GetConstParamList () |
RooArgList * | GetFloatParamList () |
Logistics. | |
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. | |
RooArgList * | GetInitConstParamList () |
RooArgList * | GetInitFloatParamList () |
std::ofstream * | GetLogFile () |
Double_t & | GetMaxFCN () |
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. | |
bool | getOptConst () |
std::vector< double > | getParameterValues () const |
unsigned int | NDim () const |
void | SetEvalErrorWall (Bool_t flag) |
Bool_t | 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_t flag)=0 |
Enable or disable offsetting on the function to be minimized, which enhances numerical precision. | |
void | setOptimizeConst (Int_t flag) |
Bool_t | SetPdfParamVal (int index, double value) const |
Set value of parameter i. | |
void | SetPrintEvalErrors (Int_t numEvalErrors) |
void | SetRecoverFromNaNStrength (double strength) |
Try to recover from invalid function values. | |
void | SetVerbose (Bool_t flag=kTRUE) |
virtual Bool_t | Synchronize (std::vector< ROOT::Fit::ParameterSettings > ¶meters, Bool_t optConst, Bool_t verbose) |
Like synchronizeParameterSettings, Synchronize informs Minuit through its parameter_settings vector of RooFit parameter properties, but Synchronize can be overridden to e.g. | |
Bool_t | synchronizeParameterSettings (std::vector< ROOT::Fit::ParameterSettings > ¶meters, Bool_t optConst, Bool_t verbose) |
Informs Minuit through its parameter_settings vector of RooFit parameter properties. | |
void | zeroEvalCount () |
Protected Member Functions | |
void | ClearPdfParamAsymErr (Int_t index) |
Modify PDF parameter error by ordinal index (needed by MINUIT) | |
void | optimizeConstantTerms (bool constStatChange, bool constValChange) |
void | printEvalErrors () const |
Print information about why evaluation failed. | |
virtual void | setOptimizeConstOnFunction (RooAbsArg::ConstOpCode opcode, Bool_t doAlsoTrackingOpt)=0 |
This function must be overridden in the derived class to pass on constant term optimization configuration to the function to be minimized. | |
void | SetPdfParamErr (Int_t index, Double_t loVal, Double_t hiVal) |
Modify PDF parameter error by ordinal index (needed by MINUIT) | |
void | SetPdfParamErr (Int_t index, Double_t value) |
Modify PDF parameter error by ordinal index (needed by MINUIT) | |
Protected Attributes | |
std::unique_ptr< RooArgList > | _constParamList |
RooMinimizer * | _context |
bool | _doEvalErrorWall {true} |
int | _evalCounter {0} |
std::unique_ptr< RooArgList > | _floatParamList |
double | _funcOffset {0.} |
std::unique_ptr< RooArgList > | _initConstParamList |
std::unique_ptr< RooArgList > | _initFloatParamList |
std::ofstream * | _logfile = nullptr |
double | _maxFCN = -std::numeric_limits<double>::infinity() |
unsigned int | _nDim = 0 |
int | _numBadNLL = 0 |
Bool_t | _optConst = kFALSE |
int | _printEvalErrors = 10 |
double | _recoverFromNaNStrength {10.} |
bool | _verbose |
#include <RooAbsMinimizerFcn.h>
RooAbsMinimizerFcn::RooAbsMinimizerFcn | ( | RooArgList | paramList, |
RooMinimizer * | context, | ||
bool | verbose = false |
||
) |
Definition at line 42 of file RooAbsMinimizerFcn.cxx.
RooAbsMinimizerFcn::RooAbsMinimizerFcn | ( | const RooAbsMinimizerFcn & | other | ) |
Definition at line 77 of file RooAbsMinimizerFcn.cxx.
|
virtualdefault |
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 391 of file RooAbsMinimizerFcn.cxx.
void RooAbsMinimizerFcn::BackProp | ( | const ROOT::Fit::FitResult & | results | ) |
Put Minuit results back into RooFit objects.
Transfer MINUIT fit results back into RooFit objects.
Definition at line 343 of file RooAbsMinimizerFcn.cxx.
Modify PDF parameter error by ordinal index (needed by MINUIT)
Definition at line 331 of file RooAbsMinimizerFcn.cxx.
Int_t RooAbsMinimizerFcn::evalCounter | ( | ) | const |
Definition at line 484 of file RooAbsMinimizerFcn.cxx.
RooArgList * RooAbsMinimizerFcn::GetConstParamList | ( | ) |
Definition at line 453 of file RooAbsMinimizerFcn.cxx.
RooArgList * RooAbsMinimizerFcn::GetFloatParamList | ( | ) |
Logistics.
Definition at line 449 of file RooAbsMinimizerFcn.cxx.
|
pure virtual |
RooMinimizer sometimes needs the name of the minimized function. Implement this in the derived class.
Implemented in RooMinimizerFcn, RooGradMinimizerFcn, and RooFit::TestStatistics::MinuitFcnGrad.
|
pure virtual |
RooMinimizer sometimes needs the title of the minimized function. Implement this in the derived class.
Implemented in RooMinimizerFcn, RooGradMinimizerFcn, and RooFit::TestStatistics::MinuitFcnGrad.
RooArgList * RooAbsMinimizerFcn::GetInitConstParamList | ( | ) |
Definition at line 461 of file RooAbsMinimizerFcn.cxx.
RooArgList * RooAbsMinimizerFcn::GetInitFloatParamList | ( | ) |
Definition at line 457 of file RooAbsMinimizerFcn.cxx.
|
inline |
Definition at line 83 of file RooAbsMinimizerFcn.h.
Double_t & RooAbsMinimizerFcn::GetMaxFCN | ( | ) |
Definition at line 475 of file RooAbsMinimizerFcn.cxx.
|
inline |
Definition at line 85 of file RooAbsMinimizerFcn.h.
Int_t RooAbsMinimizerFcn::GetNumInvalidNLL | ( | ) | const |
Definition at line 479 of file RooAbsMinimizerFcn.cxx.
|
inline |
Return a possible offset that's applied to the function to separate invalid function values from valid ones.
Definition at line 68 of file RooAbsMinimizerFcn.h.
bool RooAbsMinimizerFcn::getOptConst | ( | ) |
Definition at line 538 of file RooAbsMinimizerFcn.cxx.
std::vector< double > RooAbsMinimizerFcn::getParameterValues | ( | ) | const |
Definition at line 543 of file RooAbsMinimizerFcn.cxx.
|
inline |
Definition at line 91 of file RooAbsMinimizerFcn.h.
|
protected |
Definition at line 523 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 421 of file RooAbsMinimizerFcn.cxx.
Definition at line 466 of file RooAbsMinimizerFcn.cxx.
Bool_t RooAbsMinimizerFcn::SetLogFile | ( | const char * | inLogfile | ) |
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 369 of file RooAbsMinimizerFcn.cxx.
Enable or disable offsetting on the function to be minimized, which enhances numerical precision.
Implemented in RooMinimizerFcn, RooGradMinimizerFcn, and RooFit::TestStatistics::MinuitFcnGrad.
Definition at line 498 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, RooGradMinimizerFcn, and RooFit::TestStatistics::MinuitFcnGrad.
Modify PDF parameter error by ordinal index (needed by MINUIT)
Definition at line 337 of file RooAbsMinimizerFcn.cxx.
Modify PDF parameter error by ordinal index (needed by MINUIT)
Definition at line 325 of file RooAbsMinimizerFcn.cxx.
Set value of parameter i.
Definition at line 403 of file RooAbsMinimizerFcn.cxx.
Definition at line 470 of file RooAbsMinimizerFcn.cxx.
Try to recover from invalid function values.
When invalid function values are encountered, a penalty term is returned to the minimiser to make it back off. This sets the strength of this penalty.
Definition at line 62 of file RooAbsMinimizerFcn.h.
Definition at line 493 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 RooGradMinimizerFcn, and RooFit::TestStatistics::MinuitFcnGrad.
Definition at line 320 of file RooAbsMinimizerFcn.cxx.
Bool_t RooAbsMinimizerFcn::synchronizeParameterSettings | ( | std::vector< ROOT::Fit::ParameterSettings > & | parameters, |
Bool_t | optConst, | ||
Bool_t | verbose | ||
) |
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 93 of file RooAbsMinimizerFcn.cxx.
void RooAbsMinimizerFcn::zeroEvalCount | ( | ) |
Definition at line 488 of file RooAbsMinimizerFcn.cxx.
|
protected |
Definition at line 133 of file RooAbsMinimizerFcn.h.
|
protected |
Definition at line 117 of file RooAbsMinimizerFcn.h.
|
protected |
Definition at line 138 of file RooAbsMinimizerFcn.h.
|
mutableprotected |
Definition at line 126 of file RooAbsMinimizerFcn.h.
|
protected |
Definition at line 132 of file RooAbsMinimizerFcn.h.
|
mutableprotected |
Definition at line 122 of file RooAbsMinimizerFcn.h.
|
protected |
Definition at line 135 of file RooAbsMinimizerFcn.h.
|
protected |
Definition at line 134 of file RooAbsMinimizerFcn.h.
|
protected |
Definition at line 137 of file RooAbsMinimizerFcn.h.
Definition at line 121 of file RooAbsMinimizerFcn.h.
|
protected |
Definition at line 128 of file RooAbsMinimizerFcn.h.
|
mutableprotected |
Definition at line 124 of file RooAbsMinimizerFcn.h.
Definition at line 130 of file RooAbsMinimizerFcn.h.
|
mutableprotected |
Definition at line 125 of file RooAbsMinimizerFcn.h.
|
protected |
Definition at line 123 of file RooAbsMinimizerFcn.h.
|
protected |
Definition at line 139 of file RooAbsMinimizerFcn.h.