Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
27 const RooArgList& observables() const { return _olist;}
28 const RooArgList& parameters() const { return _plist; }
29 const TF1& function() const { return *_func; }
30
31protected:
32
36
37 double evaluate() const override ;
38
39private:
40
41 ClassDefOverride(RooTFnBinding,1) // RooAbsReal binding to ROOT TF[123] functions
42};
43
44
45namespace RooFit {
46
50
51RooAbsReal* bindFunction(TF1* func,RooAbsReal& x, const RooArgList& params) ;
52RooAbsReal* bindFunction(TF2* func,RooAbsReal& x, RooAbsReal& y, const RooArgList& params) ;
54
55}
56
57
58#endif
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
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.
double evaluate() const override
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
const TF1 & function() const
RooListProxy _plist
const RooArgList & parameters() const
void printArgs(std::ostream &os) const override
Print object arguments, ie its proxies.
TObject * clone(const char *newname) const override
RooListProxy _olist
const RooArgList & observables() const
~RooTFnBinding() override
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:41
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)