Logo ROOT  
Reference Guide
RooTFnBinding.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Project: RooFit *
3 * *
4 * This code was autogenerated by RooClassFactory *
5 *****************************************************************************/
6
7#ifndef ROOTFNBINDING
8#define ROOTFNBINDING
9
10#include "RooAbsReal.h"
11#include "RooListProxy.h"
12class TF1 ;
13class TF2 ;
14class TF3 ;
15
16class RooTFnBinding : public RooAbsReal {
17public:
18 RooTFnBinding() : _func(nullptr) {}
19 RooTFnBinding(const char *name, const char *title, TF1* func, const RooArgList& list);
20 RooTFnBinding(const char *name, const char *title, TF1* func, const RooArgList& list, const RooArgList& plist);
21 RooTFnBinding(const RooTFnBinding& other, const char* name=nullptr) ;
22 TObject* clone(const char* newname) const override { return new RooTFnBinding(*this,newname); }
23 inline ~RooTFnBinding() override { }
24
25 void printArgs(std::ostream& os) const override ;
26
27protected:
28
32
33 double evaluate() const override ;
34
35private:
36
37 ClassDefOverride(RooTFnBinding,1) // RooAbsReal binding to ROOT TF[123] functions
38};
39
40
41namespace RooFit {
42
46
47RooAbsReal* bindFunction(TF1* func,RooAbsReal& x, const RooArgList& params) ;
48RooAbsReal* bindFunction(TF2* func,RooAbsReal& x, RooAbsReal& y, const RooArgList& params) ;
50
51}
52
53
54#endif
#define ClassDefOverride(name, id)
Definition: Rtypes.h:339
char name[80]
Definition: TGX11.cxx:110
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition: RooAbsReal.h:62
RooArgList is a container object that can hold multiple RooAbsArg objects.
Definition: RooArgList.h:22
Use TF1, TF2, TF3 functions as RooFit objects.
Definition: RooTFnBinding.h:16
double evaluate() const override
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
RooListProxy _plist
Definition: RooTFnBinding.h:30
void printArgs(std::ostream &os) const override
Interface for printing of object arguments.
TObject * clone(const char *newname) const override
Definition: RooTFnBinding.h:22
RooListProxy _olist
Definition: RooTFnBinding.h:29
~RooTFnBinding() override
Definition: RooTFnBinding.h:23
1-Dim function class
Definition: TF1.h:213
A 2-Dim function with parameters.
Definition: TF2.h:29
A 3-Dim function with parameters.
Definition: TF3.h:28
Mother of all ROOT objects.
Definition: TObject.h:37
Double_t y[n]
Definition: legend1.C:17
Double_t x[n]
Definition: legend1.C:17
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
Definition: Common.h:18
RooAbsReal * bindFunction(const char *name, CFUNCD1D func, RooAbsReal &x)