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(0) {} ;
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=0) ;
22 virtual TObject* clone(const char* newname) const { return new RooTFnBinding(*this,newname); }
23 inline virtual ~RooTFnBinding() { }
24
25 void printArgs(std::ostream& os) const ;
26
27protected:
28
32
33 Double_t evaluate() const ;
34
35private:
36
37 ClassDef(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
double Double_t
Definition RtypesCore.h:59
#define ClassDef(name, id)
Definition Rtypes.h:325
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:64
RooArgList is a container object that can hold multiple RooAbsArg objects.
Definition RooArgList.h:22
RooListProxy is the concrete proxy for RooArgList objects.
Use TF1, TF2, TF3 functions as RooFit objects.
Double_t evaluate() const
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
virtual ~RooTFnBinding()
RooListProxy _plist
void printArgs(std::ostream &os) const
Print object arguments, ie its proxies.
RooListProxy _olist
virtual TObject * clone(const char *newname) const
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)