Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
RooTFnPdfBinding.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Project: RooFit *
3  * *
4  * This code was autogenerated by RooClassFactory *
5  *****************************************************************************/
6 
7 #ifndef ROOTFNPDFBINDING
8 #define ROOTFNPDFBINDING
9 
10 #include "RooListProxy.h"
11 #include "RooAbsPdf.h"
12 class TF1 ;
13 class TF2 ;
14 class TF3 ;
15 
16 class RooTFnPdfBinding : public RooAbsPdf {
17 public:
18  RooTFnPdfBinding() : _func(0) {} ;
19  RooTFnPdfBinding(const char *name, const char *title, TF1* func, const RooArgList& list);
20  RooTFnPdfBinding(const RooTFnPdfBinding& other, const char* name=0) ;
21  virtual TObject* clone(const char* newname) const { return new RooTFnPdfBinding(*this,newname); }
22  inline virtual ~RooTFnPdfBinding() { }
23 
24  void printArgs(std::ostream& os) const ;
25 
26 protected:
27 
28  RooListProxy _list ;
29  TF1* _func ;
30 
31  Double_t evaluate() const ;
32 
33 private:
34 
35  ClassDef(RooTFnPdfBinding,1) // RooAbsPdf binding to ROOT TF[123] functions
36 };
37 
38 
39 namespace RooFit {
40 
41 RooAbsPdf* bindPdf(TF1* func,RooAbsReal& x) ;
42 RooAbsPdf* bindPdf(TF2* func,RooAbsReal& x, RooAbsReal& y) ;
43 RooAbsPdf* bindPdf(TF3* func,RooAbsReal& x, RooAbsReal& y, RooAbsReal& z) ;
44 
45 }
46 
47 
48 #endif