Logo ROOT   6.18/05
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"
12#include "RooAbsReal.h"
13class TF1 ;
14class TF2 ;
15class TF3 ;
16
17class RooTFnBinding : public RooAbsReal {
18public:
19 RooTFnBinding() : _func(0) {} ;
20 RooTFnBinding(const char *name, const char *title, TF1* func, const RooArgList& list);
21 RooTFnBinding(const char *name, const char *title, TF1* func, const RooArgList& list, const RooArgList& plist);
22 RooTFnBinding(const RooTFnBinding& other, const char* name=0) ;
23 virtual TObject* clone(const char* newname) const { return new RooTFnBinding(*this,newname); }
24 inline virtual ~RooTFnBinding() { }
25
26 void printArgs(std::ostream& os) const ;
27
28protected:
29
33
34 Double_t evaluate() const ;
35
36private:
37
38 ClassDef(RooTFnBinding,1) // RooAbsReal binding to ROOT TF[123] functions
39};
40
41
42namespace RooFit {
43
47
48RooAbsReal* bindFunction(TF1* func,RooAbsReal& x, const RooArgList& params) ;
49RooAbsReal* bindFunction(TF2* func,RooAbsReal& x, RooAbsReal& y, const RooArgList& params) ;
51
52}
53
54
55#endif
double Double_t
Definition: RtypesCore.h:55
#define ClassDef(name, id)
Definition: Rtypes.h:326
char name[80]
Definition: TGX11.cxx:109
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition: RooAbsReal.h:53
RooArgList is a container object that can hold multiple RooAbsArg objects.
Definition: RooArgList.h:21
RooListProxy is the concrete proxy for RooArgList objects.
Definition: RooListProxy.h:25
Double_t evaluate() const
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
virtual ~RooTFnBinding()
Definition: RooTFnBinding.h:24
RooListProxy _plist
Definition: RooTFnBinding.h:31
void printArgs(std::ostream &os) const
Print object arguments, ie its proxies.
RooListProxy _olist
Definition: RooTFnBinding.h:30
virtual TObject * clone(const char *newname) const
Definition: RooTFnBinding.h:23
1-Dim function class
Definition: TF1.h:211
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
Template specialisation used in RooAbsArg:
RooAbsReal * bindFunction(const char *name, CFUNCD1D func, RooAbsReal &x)