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() = default;
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
24 void printArgs(std::ostream& os) const override ;
25
26 const RooArgList& observables() const { return _olist;}
27 const RooArgList& parameters() const { return _plist; }
28 const TF1& function() const { return *_func; }
29
30protected:
31
34 TF1* _func = nullptr;
35
36 double evaluate() const override ;
37
38private:
39
40 ClassDefOverride(RooTFnBinding,1) // RooAbsReal binding to ROOT TF[123] functions
41};
42
43
44namespace RooFit {
45
49
50RooAbsReal* bindFunction(TF1* func,RooAbsReal& x, const RooArgList& params) ;
51RooAbsReal* bindFunction(TF2* func,RooAbsReal& x, RooAbsReal& y, const RooArgList& params) ;
53
54}
55
56
57#endif
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
char name[80]
Definition TGX11.cxx:110
Abstract base class for objects that represent a real value and implements functionality common to al...
Definition RooAbsReal.h:59
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
RooTFnBinding()=default
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
1-Dim function class
Definition TF1.h:214
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 JSONIO.h:26
RooAbsReal * bindFunction(const char *name, CFUNCD1D func, RooAbsReal &x)