Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooMinimizerFcn.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Project: RooFit *
3 * Package: RooFitCore *
4 * @(#)root/roofitcore:$Id$
5 * Authors: *
6 * AL, Alfio Lazzaro, INFN Milan, alfio.lazzaro@mi.infn.it *
7 * PB, Patrick Bos, Netherlands eScience Center, p.bos@esciencecenter.nl *
8 * *
9 * *
10 * Redistribution and use in source and binary forms, *
11 * with or without modification, are permitted according to the terms *
12 * listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
13 *****************************************************************************/
14
15#ifndef ROO_MINIMIZER_FCN
16#define ROO_MINIMIZER_FCN
17
18#include "Math/IFunction.h"
20#include "Fit/FitResult.h"
21
22#include "RooAbsReal.h"
23#include "RooArgList.h"
24
25#include <fstream>
26#include <vector>
27
28#include "RooAbsMinimizerFcn.h"
29
30template <typename T>
31class TMatrixTSym;
33
34// forward declaration
35class RooMinimizer;
36
38
39public:
40 RooMinimizerFcn(RooAbsReal *funct, RooMinimizer *context);
41
42 std::string getFunctionName() const override;
43 std::string getFunctionTitle() const override;
44
45 void setOptimizeConstOnFunction(RooAbsArg::ConstOpCode opcode, bool doAlsoTrackingOpt) override;
46
47 void setOffsetting(bool flag) override;
49
50 double operator()(const double *x) const;
51 void evaluateGradient(const double *x, double *out) const;
52
53private:
55 std::unique_ptr<ROOT::Math::IBaseFunctionMultiDim> _multiGenFcn;
56};
57
58#endif
Documentation for the abstract class IBaseFunctionMultiDim.
Definition IFunction.h:61
Abstract base class for objects that represent a real value and implements functionality common to al...
Definition RooAbsReal.h:59
RooMinimizerFcn is an interface to the ROOT::Math::IBaseFunctionMultiDim, a function that ROOT's mini...
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.
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 configura...
std::unique_ptr< ROOT::Math::IBaseFunctionMultiDim > _multiGenFcn
RooAbsReal * _funct
double operator()(const double *x) const
Evaluate function given the parameters in x.
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
RooMinimizer is a wrapper class around ROOT::Fit:Fitter that provides a seamless interface between th...
TMatrixTSym.
Definition TMatrixTSym.h:34
Double_t x[n]
Definition legend1.C:17