RooMinimizerFcn is an interface to the ROOT::Math::IBaseFunctionMultiDim, a function that ROOT's minimisers use to carry out minimisations.
Definition at line 37 of file RooMinimizerFcn.h.
Public Member Functions | |
RooMinimizerFcn (RooAbsReal *funct, RooMinimizer *context) | |
void | evaluateGradient (const double *x, double *out) const |
std::string | getFunctionName () const override |
RooMinimizer sometimes needs the name of the minimized function. Implement this in the derived class. | |
std::string | getFunctionTitle () const override |
RooMinimizer sometimes needs the title of the minimized function. Implement this in the derived class. | |
ROOT::Math::IMultiGenFunction * | getMultiGenFcn () override |
double | operator() (const double *x) const |
Evaluate function given the parameters in x . | |
void | setOffsetting (bool flag) override |
Enable or disable offsetting on the function to be minimized, which enhances numerical precision. | |
void | setOptimizeConstOnFunction (RooAbsArg::ConstOpCode opcode, bool doAlsoTrackingOpt) override |
This function must be overridden in the derived class to pass on constant term optimization configuration to the function to be minimized. | |
![]() | |
RooAbsMinimizerFcn (const RooAbsMinimizerFcn &other) | |
RooAbsMinimizerFcn (RooArgList paramList, RooMinimizer *context) | |
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. | |
RooMinimizer::Config const & | cfg () const |
Int_t | evalCounter () const |
RooArgList * | GetConstParamList () |
RooArgList * | GetFloatParamList () |
RooArgList * | GetInitConstParamList () |
RooArgList * | GetInitFloatParamList () |
std::ofstream * | GetLogFile () |
double & | 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. | |
std::vector< double > | getParameterValues () const |
unsigned int | NDim () const |
bool | SetLogFile (const char *inLogfile) |
Change the file name for logging of a RooMinimizer of all MINUIT steppings through the parameter space. | |
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 () |
Private Attributes | |
RooAbsReal * | _funct |
std::unique_ptr< ROOT::Math::IBaseFunctionMultiDim > | _multiGenFcn |
Additional Inherited Members | |
![]() | |
double | applyEvalErrorHandling (double fvalue) const |
Apply corrections on the fvalue if errors were signaled. | |
void | ClearPdfParamAsymErr (Int_t index) |
Modify PDF parameter error by ordinal index (needed by MINUIT) | |
void | finishDoEval () const |
void | optimizeConstantTerms (bool constStatChange, bool constValChange) |
void | printEvalErrors () const |
Print information about why evaluation failed. | |
void | SetPdfParamErr (Int_t index, double loVal, double hiVal) |
Modify PDF parameter error by ordinal index (needed by MINUIT) | |
void | SetPdfParamErr (Int_t index, double value) |
Modify PDF parameter error by ordinal index (needed by MINUIT) | |
![]() | |
std::unique_ptr< RooArgList > | _constParamList |
RooMinimizer * | _context |
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 | _optConst = false |
RooMinimizerFcn::RooMinimizerFcn | ( | RooAbsReal * | funct, |
RooMinimizer * | context | ||
) |
Definition at line 54 of file RooMinimizerFcn.cxx.
Definition at line 101 of file RooMinimizerFcn.cxx.
|
overridevirtual |
RooMinimizer sometimes needs the name of the minimized function. Implement this in the derived class.
Implements RooAbsMinimizerFcn.
Definition at line 121 of file RooMinimizerFcn.cxx.
|
overridevirtual |
RooMinimizer sometimes needs the title of the minimized function. Implement this in the derived class.
Implements RooAbsMinimizerFcn.
Definition at line 126 of file RooMinimizerFcn.cxx.
|
inlineoverridevirtual |
Implements RooAbsMinimizerFcn.
Definition at line 48 of file RooMinimizerFcn.h.
Evaluate function given the parameters in x
.
Definition at line 71 of file RooMinimizerFcn.cxx.
|
overridevirtual |
Enable or disable offsetting on the function to be minimized, which enhances numerical precision.
Implements RooAbsMinimizerFcn.
Definition at line 131 of file RooMinimizerFcn.cxx.
|
overridevirtual |
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.
Implements RooAbsMinimizerFcn.
Definition at line 65 of file RooMinimizerFcn.cxx.
|
private |
Definition at line 54 of file RooMinimizerFcn.h.
|
private |
Definition at line 55 of file RooMinimizerFcn.h.