RooMinimizerFcn is an interface to the ROOT::Math::IBaseFunctionMultiDim, a function that ROOT's minimisers use to carry out minimisations.
Definition at line 33 of file RooMinimizerFcn.h.
Public Member Functions | |
RooMinimizerFcn (const RooMinimizerFcn &other) | |
RooMinimizerFcn (RooAbsReal *funct, RooMinimizer *context, bool verbose=false) | |
virtual | ~RooMinimizerFcn () |
void | ApplyCovarianceMatrix (TMatrixDSym &V) |
Apply results of given external covariance matrix. | |
void | BackProp (const ROOT::Fit::FitResult &results) |
Transfer MINUIT fit results back into RooFit objects. | |
virtual ROOT::Math::IBaseFunctionMultiDim * | Clone () const |
Clone a function. | |
Int_t | evalCounter () const |
RooArgList * | GetConstParamList () |
RooArgList * | GetFloatParamList () |
RooArgList * | GetInitConstParamList () |
RooArgList * | GetInitFloatParamList () |
std::ofstream * | GetLogFile () |
Double_t & | GetMaxFCN () |
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. | |
virtual unsigned int | NDim () const |
Retrieve the dimension of the function. | |
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. | |
void | SetPrintEvalErrors (Int_t numEvalErrors) |
void | SetRecoverFromNaNStrength (double strength) |
Try to recover from invalid function values. | |
void | SetVerbose (Bool_t flag=kTRUE) |
Bool_t | Synchronize (std::vector< ROOT::Fit::ParameterSettings > ¶meters, Bool_t optConst, Bool_t verbose) |
Internal function to synchronize TMinimizer with current information in RooAbsReal function parameters. | |
void | zeroEvalCount () |
Public Member Functions inherited from ROOT::Math::IBaseFunctionMultiDimTempl< double > | |
IBaseFunctionMultiDimTempl () | |
virtual | ~IBaseFunctionMultiDimTempl () |
virtual destructor | |
double | operator() (const double *x) const |
Evaluate the function at a point x[]. | |
Private Member Functions | |
void | ClearPdfParamAsymErr (Int_t index) |
Modify PDF parameter error by ordinal index (needed by MINUIT) | |
virtual double | DoEval (const double *x) const |
Evaluate function given the parameters in x . | |
void | printEvalErrors () const |
Print information about why evaluation failed. | |
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) | |
Bool_t | SetPdfParamVal (int index, double value) const |
Set value of parameter i. | |
Private Attributes | |
RooArgList * | _constParamList |
const RooMinimizer * | _context |
bool | _doEvalErrorWall {true} |
int | _evalCounter {0} |
RooArgList * | _floatParamList |
double | _funcOffset {0.} |
RooAbsReal * | _funct |
RooArgList * | _initConstParamList |
RooArgList * | _initFloatParamList |
std::ofstream * | _logfile |
double | _maxFCN |
int | _nDim |
int | _numBadNLL |
int | _printEvalErrors |
double | _recoverFromNaNStrength {10.} |
bool | _verbose |
Additional Inherited Members | |
Public Types inherited from ROOT::Math::IBaseFunctionMultiDimTempl< double > | |
typedef double | BackendType |
typedef IBaseFunctionMultiDimTempl< double > | BaseFunc |
#include <RooMinimizerFcn.h>
RooMinimizerFcn::RooMinimizerFcn | ( | RooAbsReal * | funct, |
RooMinimizer * | context, | ||
bool | verbose = false |
||
) |
Definition at line 41 of file RooMinimizerFcn.cxx.
RooMinimizerFcn::RooMinimizerFcn | ( | const RooMinimizerFcn & | other | ) |
Definition at line 90 of file RooMinimizerFcn.cxx.
|
virtual |
Definition at line 111 of file RooMinimizerFcn.cxx.
void RooMinimizerFcn::ApplyCovarianceMatrix | ( | TMatrixDSym & | V | ) |
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 436 of file RooMinimizerFcn.cxx.
void RooMinimizerFcn::BackProp | ( | const ROOT::Fit::FitResult & | results | ) |
Transfer MINUIT fit results back into RooFit objects.
Definition at line 388 of file RooMinimizerFcn.cxx.
Modify PDF parameter error by ordinal index (needed by MINUIT)
Definition at line 376 of file RooMinimizerFcn.cxx.
|
virtual |
Clone a function.
Each derived class must implement their version of the Clone method
Implements ROOT::Math::IBaseFunctionMultiDimTempl< double >.
Definition at line 120 of file RooMinimizerFcn.cxx.
Evaluate function given the parameters in x
.
Implements ROOT::Math::IBaseFunctionMultiDimTempl< double >.
Definition at line 493 of file RooMinimizerFcn.cxx.
|
inline |
Definition at line 70 of file RooMinimizerFcn.h.
|
inline |
Definition at line 46 of file RooMinimizerFcn.h.
|
inline |
Definition at line 45 of file RooMinimizerFcn.h.
|
inline |
Definition at line 48 of file RooMinimizerFcn.h.
|
inline |
Definition at line 47 of file RooMinimizerFcn.h.
|
inline |
Definition at line 59 of file RooMinimizerFcn.h.
|
inline |
Definition at line 62 of file RooMinimizerFcn.h.
|
inline |
Definition at line 63 of file RooMinimizerFcn.h.
|
inline |
Return a possible offset that's applied to the function to separate invalid function values from valid ones.
Definition at line 73 of file RooMinimizerFcn.h.
|
inlinevirtual |
Retrieve the dimension of the function.
Implements ROOT::Math::IBaseFunctionMultiDimTempl< double >.
Definition at line 43 of file RooMinimizerFcn.h.
|
private |
Print information about why evaluation failed.
Using _printEvalErrors, the number of errors printed can be steered. Negative values disable printing.
Definition at line 467 of file RooMinimizerFcn.cxx.
Definition at line 50 of file RooMinimizerFcn.h.
Bool_t RooMinimizerFcn::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 414 of file RooMinimizerFcn.cxx.
Modify PDF parameter error by ordinal index (needed by MINUIT)
Definition at line 382 of file RooMinimizerFcn.cxx.
Modify PDF parameter error by ordinal index (needed by MINUIT)
Definition at line 370 of file RooMinimizerFcn.cxx.
Set value of parameter i.
Definition at line 449 of file RooMinimizerFcn.cxx.
Definition at line 57 of file RooMinimizerFcn.h.
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 56 of file RooMinimizerFcn.h.
Definition at line 60 of file RooMinimizerFcn.h.
Bool_t RooMinimizerFcn::Synchronize | ( | std::vector< ROOT::Fit::ParameterSettings > & | parameters, |
Bool_t | optConst, | ||
Bool_t | verbose | ||
) |
Internal function to synchronize TMinimizer with current information in RooAbsReal function parameters.
Definition at line 128 of file RooMinimizerFcn.cxx.
|
inline |
Definition at line 71 of file RooMinimizerFcn.h.
|
private |
Definition at line 98 of file RooMinimizerFcn.h.
|
private |
Definition at line 87 of file RooMinimizerFcn.h.
|
private |
Definition at line 103 of file RooMinimizerFcn.h.
|
mutableprivate |
Definition at line 94 of file RooMinimizerFcn.h.
|
private |
Definition at line 97 of file RooMinimizerFcn.h.
|
mutableprivate |
Definition at line 90 of file RooMinimizerFcn.h.
|
private |
Definition at line 86 of file RooMinimizerFcn.h.
|
private |
Definition at line 100 of file RooMinimizerFcn.h.
|
private |
Definition at line 99 of file RooMinimizerFcn.h.
|
private |
Definition at line 102 of file RooMinimizerFcn.h.
|
mutableprivate |
Definition at line 89 of file RooMinimizerFcn.h.
|
private |
Definition at line 95 of file RooMinimizerFcn.h.
|
mutableprivate |
Definition at line 92 of file RooMinimizerFcn.h.
|
mutableprivate |
Definition at line 93 of file RooMinimizerFcn.h.
|
private |
Definition at line 91 of file RooMinimizerFcn.h.
|
private |
Definition at line 104 of file RooMinimizerFcn.h.