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"
12 class TF1 ;
13 class TF2 ;
14 class TF3 ;
15 
16 class RooTFnBinding : public RooAbsReal {
17 public:
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 
27 protected:
28 
32 
33  Double_t evaluate() const ;
34 
35 private:
36 
37  ClassDef(RooTFnBinding,1) // RooAbsReal binding to ROOT TF[123] functions
38 };
39 
40 
41 namespace RooFit {
42 
46 
47 RooAbsReal* bindFunction(TF1* func,RooAbsReal& x, const RooArgList& params) ;
48 RooAbsReal* bindFunction(TF2* func,RooAbsReal& x, RooAbsReal& y, const RooArgList& params) ;
49 RooAbsReal* bindFunction(TF3* func,RooAbsReal& x, RooAbsReal& y, RooAbsReal& z, const RooArgList& params) ;
50 
51 }
52 
53 
54 #endif
RooTFnBinding::RooTFnBinding
RooTFnBinding()
Definition: RooTFnBinding.h:18
RooAbsReal.h
RooTFnBinding::clone
virtual TObject * clone(const char *newname) const
Definition: RooTFnBinding.h:22
RooArgList
Definition: RooArgList.h:21
RooTFnBinding::~RooTFnBinding
virtual ~RooTFnBinding()
Definition: RooTFnBinding.h:23
x
Double_t x[n]
Definition: legend1.C:17
RooAbsReal
Definition: RooAbsReal.h:61
RooTFnBinding::_plist
RooListProxy _plist
Definition: RooTFnBinding.h:30
RooFit::bindFunction
RooAbsReal * bindFunction(const char *name, CFUNCD1D func, RooAbsReal &x)
Definition: RooCFunction1Binding.cxx:59
RooFit
Definition: RooCFunction1Binding.h:29
RooTFnBinding
Definition: RooTFnBinding.h:16
TF3
Definition: TF3.h:28
y
Double_t y[n]
Definition: legend1.C:17
RooListProxy
Definition: RooListProxy.h:24
RooTFnBinding::evaluate
Double_t evaluate() const
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
Definition: RooTFnBinding.cxx:59
TF2
Definition: TF2.h:29
RooTFnBinding::_olist
RooListProxy _olist
Definition: RooTFnBinding.h:29
RooListProxy.h
Double_t
double Double_t
Definition: RtypesCore.h:59
TObject
Definition: TObject.h:37
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
name
char name[80]
Definition: TGX11.cxx:110
TF1
1-Dim function class
Definition: TF1.h:212
RooTFnBinding::printArgs
void printArgs(std::ostream &os) const
Print object arguments, ie its proxies.
Definition: RooTFnBinding.cxx:72
RooTFnBinding::_func
TF1 * _func
Definition: RooTFnBinding.h:31