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> class TMatrixTSym;
32
33// forward declaration
34class RooMinimizer;
35
37
38public:
39 RooMinimizerFcn(RooAbsReal *funct, RooMinimizer *context, bool verbose = false);
40 RooMinimizerFcn(const RooMinimizerFcn &other);
41 virtual ~RooMinimizerFcn();
42
44 unsigned int NDim() const override { return getNDim(); }
45
46 std::string getFunctionName() const override;
47 std::string getFunctionTitle() const override;
48
49 void setOptimizeConstOnFunction(RooAbsArg::ConstOpCode opcode, Bool_t doAlsoTrackingOpt) override;
50
51 void setOffsetting(Bool_t flag) override;
52
53private:
54 double DoEval(const double *x) const override;
55
57};
58
59#endif
unsigned int getNDim() const
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition RooAbsReal.h:64
RooMinimizerFcn is an interface to the ROOT::Math::IBaseFunctionMultiDim, a function that ROOT's mini...
std::string getFunctionName() const override
RooMinimizer sometimes needs the name of the minimized function. Implement this in the derived class.
unsigned int NDim() const override
Retrieve the dimension of the function.
void setOffsetting(Bool_t flag) override
Enable or disable offsetting on the function to be minimized, which enhances numerical precision.
ROOT::Math::IBaseFunctionMultiDim * Clone() const override
Clone a function.
virtual ~RooMinimizerFcn()
double DoEval(const double *x) const override
Evaluate function given the parameters in x.
void setOptimizeConstOnFunction(RooAbsArg::ConstOpCode opcode, Bool_t doAlsoTrackingOpt) override
This function must be overridden in the derived class to pass on constant term optimization configura...
RooAbsReal * _funct
std::string getFunctionTitle() const override
RooMinimizer sometimes needs the title of the minimized function. Implement this in the derived class...
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