Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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 "RooAbsReal.h"
17#include "RooArgList.h"
18#include "RooListProxy.h"
19#include "RooAbsPdf.h"
20#include "RooRealProxy.h"
21#include "RooMsgService.h"
22#include "Math/IFunction.h"
23
24
25namespace RooFit {
26
28RooAbsPdf* bindPdf(const char* name, const ROOT::Math::IBaseFunctionOneDim& ftor, RooAbsReal& vars) ;
29
30}
31
32
34public:
36 // Default constructor
37 } ;
38 RooFunctor1DBinding(const char *name, const char *title, const ROOT::Math::IBaseFunctionOneDim& ftor, RooAbsReal& var);
39 RooFunctor1DBinding(const RooFunctor1DBinding& other, const char* name=nullptr) ;
40 TObject* clone(const char* newname) const override { return new RooFunctor1DBinding(*this,newname); }
41 inline ~RooFunctor1DBinding() override {}
42 void printArgs(std::ostream& os) const override ;
43
44protected:
45
46 double evaluate() const override ;
47
49 RooRealProxy var ; // Argument reference
50
51
52private:
53
54 ClassDefOverride(RooFunctor1DBinding,1) // RooAbsReal binding to a ROOT::Math::IBaseFunctionOneDim
55};
56
57
58
60public:
62 // Default constructor
63 } ;
64 RooFunctor1DPdfBinding(const char *name, const char *title, const ROOT::Math::IBaseFunctionOneDim& ftor, RooAbsReal& vars);
65 RooFunctor1DPdfBinding(const RooFunctor1DPdfBinding& other, const char* name=nullptr) ;
66 TObject* clone(const char* newname) const override { return new RooFunctor1DPdfBinding(*this,newname); }
67 inline ~RooFunctor1DPdfBinding() override {}
68 void printArgs(std::ostream& os) const override ;
69
70protected:
71
72 double evaluate() const override ;
73
75 RooRealProxy var ; // Argument reference
76
77
78private:
79
80 ClassDefOverride(RooFunctor1DPdfBinding,1) // RooAbsPdf binding to a ROOT::Math::IBaseFunctionOneDim
81};
82
83
84#endif
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
char name[80]
Definition TGX11.cxx:110
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:62
RooCFunction1Binding is a templated implementation of class RooAbsReal that binds generic C(++) funct...
double evaluate() const override
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
void printArgs(std::ostream &os) const override
Print object arguments, ie its proxies.
const ROOT::Math::IBaseFunctionOneDim * func
TObject * clone(const char *newname) const override
TObject * clone(const char *newname) const override
const ROOT::Math::IBaseFunctionOneDim * func
double evaluate() const override
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
void printArgs(std::ostream &os) const override
Print object arguments, ie its proxies.
Mother of all ROOT objects.
Definition TObject.h:41
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
Definition Common.h:18
RooAbsPdf * bindPdf(const char *name, CFUNCD1D func, RooAbsReal &x)
RooAbsReal * bindFunction(const char *name, CFUNCD1D func, RooAbsReal &x)