Logo ROOT  
Reference Guide
RooFunctor1DBinding.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Project: RooFit *
3 * Package: RooFitCore *
4 * File: $Id$
5 * Authors: *
6 * WV, Wouter Verkerke, NIKHEF, verkerke@nikhef.nl *
7 * *
8 * Copyright (c) 2000-2008, NIKHEF, Regents of the University of California *
9 * and Stanford University. All rights reserved. *
10 * *
11 *****************************************************************************/
12
13#ifndef ROOFUNCTOR1DBINDING
14#define ROOFUNCTOR1DBINDING
15
16#include "TString.h"
17#include "RooAbsReal.h"
18#include "RooArgList.h"
19#include "RooListProxy.h"
20#include "RooAbsPdf.h"
21#include "RooRealProxy.h"
22#include "RooMsgService.h"
23#include <string>
24#include <map>
25#include <vector>
26#include "Math/IFunction.h"
27
28
29namespace RooFit {
30
32RooAbsPdf* bindPdf(const char* name, const ROOT::Math::IBaseFunctionOneDim& ftor, RooAbsReal& vars) ;
33
34}
35
36
38public:
40 // Default constructor
41 } ;
42 RooFunctor1DBinding(const char *name, const char *title, const ROOT::Math::IBaseFunctionOneDim& ftor, RooAbsReal& var);
43 RooFunctor1DBinding(const RooFunctor1DBinding& other, const char* name=0) ;
44 virtual TObject* clone(const char* newname) const { return new RooFunctor1DBinding(*this,newname); }
45 inline virtual ~RooFunctor1DBinding() {}
46 void printArgs(std::ostream& os) const ;
47
48protected:
49
50 Double_t evaluate() const ;
51
53 RooRealProxy var ; // Argument reference
54
55
56private:
57
58 ClassDef(RooFunctor1DBinding,1) // RooAbsReal binding to a ROOT::Math::IBaseFunctionOneDim
59};
60
61
62
64public:
66 // Default constructor
67 } ;
68 RooFunctor1DPdfBinding(const char *name, const char *title, const ROOT::Math::IBaseFunctionOneDim& ftor, RooAbsReal& vars);
69 RooFunctor1DPdfBinding(const RooFunctor1DPdfBinding& other, const char* name=0) ;
70 virtual TObject* clone(const char* newname) const { return new RooFunctor1DPdfBinding(*this,newname); }
71 inline virtual ~RooFunctor1DPdfBinding() {}
72 void printArgs(std::ostream& os) const ;
73
74protected:
75
76 Double_t evaluate() const ;
77
79 RooRealProxy var ; // Argument reference
80
81
82private:
83
84 ClassDef(RooFunctor1DPdfBinding,1) // RooAbsPdf binding to a ROOT::Math::IBaseFunctionOneDim
85};
86
87
88#endif
double Double_t
Definition: RtypesCore.h:55
#define ClassDef(name, id)
Definition: Rtypes.h:326
char name[80]
Definition: TGX11.cxx:109
Interface (abstract class) for generic functions objects of one-dimension Provides a method to evalua...
Definition: IFunction.h:135
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition: RooAbsReal.h:59
RooCFunction1Binding is a templated implementation of class RooAbsReal that binds generic C(++) funct...
void printArgs(std::ostream &os) const
Print object arguments, ie its proxies.
const ROOT::Math::IBaseFunctionOneDim * func
Double_t evaluate() const
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
virtual TObject * clone(const char *newname) const
virtual TObject * clone(const char *newname) const
const ROOT::Math::IBaseFunctionOneDim * func
Double_t evaluate() const
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
void printArgs(std::ostream &os) const
Print object arguments, ie its proxies.
Mother of all ROOT objects.
Definition: TObject.h:37
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
RooAbsPdf * bindPdf(const char *name, CFUNCD1D func, RooAbsReal &x)
RooAbsReal * bindFunction(const char *name, CFUNCD1D func, RooAbsReal &x)