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 "Math/IFunction.h"
25
26
27namespace RooFit {
28
30RooAbsPdf* bindPdf(const char* name, const ROOT::Math::IBaseFunctionOneDim& ftor, RooAbsReal& vars) ;
31
32}
33
34
36public:
38 // Default constructor
39 } ;
40 RooFunctor1DBinding(const char *name, const char *title, const ROOT::Math::IBaseFunctionOneDim& ftor, RooAbsReal& var);
41 RooFunctor1DBinding(const RooFunctor1DBinding& other, const char* name=0) ;
42 virtual TObject* clone(const char* newname) const { return new RooFunctor1DBinding(*this,newname); }
43 inline virtual ~RooFunctor1DBinding() {}
44 void printArgs(std::ostream& os) const ;
45
46protected:
47
48 Double_t evaluate() const ;
49
51 RooRealProxy var ; // Argument reference
52
53
54private:
55
56 ClassDef(RooFunctor1DBinding,1) // RooAbsReal binding to a ROOT::Math::IBaseFunctionOneDim
57};
58
59
60
62public:
64 // Default constructor
65 } ;
66 RooFunctor1DPdfBinding(const char *name, const char *title, const ROOT::Math::IBaseFunctionOneDim& ftor, RooAbsReal& vars);
67 RooFunctor1DPdfBinding(const RooFunctor1DPdfBinding& other, const char* name=0) ;
68 virtual TObject* clone(const char* newname) const { return new RooFunctor1DPdfBinding(*this,newname); }
69 inline virtual ~RooFunctor1DPdfBinding() {}
70 void printArgs(std::ostream& os) const ;
71
72protected:
73
74 Double_t evaluate() const ;
75
77 RooRealProxy var ; // Argument reference
78
79
80private:
81
82 ClassDef(RooFunctor1DPdfBinding,1) // RooAbsPdf binding to a ROOT::Math::IBaseFunctionOneDim
83};
84
85
86#endif
double Double_t
Definition: RtypesCore.h:57
#define ClassDef(name, id)
Definition: Rtypes.h:322
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:60
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)