Logo ROOT   6.10/09
Reference Guide
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
RooGenFunction Class Reference

Lightweight interface adaptor that exports a RooAbsReal as a ROOT::Math::IGenFunction.

Definition at line 22 of file RooGenFunction.h.

Public Member Functions

 RooGenFunction (const RooAbsReal &func, const RooArgList &observables, const RooArgList &parameters)
 
 RooGenFunction (const RooAbsReal &func, const RooArgList &observables, const RooArgList &parameters, const RooArgSet &nset)
 
 RooGenFunction (const RooGenFunction &other)
 
virtual ~RooGenFunction ()
 
virtual ROOT::Math::IBaseFunctionOneDimClone () const
 Clone a function. More...
 
- Public Member Functions inherited from ROOT::Math::IBaseFunctionOneDim
 IBaseFunctionOneDim ()
 
virtual ~IBaseFunctionOneDim ()
 virtual destructor More...
 
double operator() (double x) const
 Evaluate the function at a point x Use the a pure virtual private method DoEval which must be implemented by sub-classes. More...
 
double operator() (const double *x) const
 Evaluate the function at a point x[]. More...
 

Protected Member Functions

double DoEval (double) const
 implementation of the evaluation function. Must be implemented by derived classes More...
 

Protected Attributes

RooFunctor _ftor
 

Additional Inherited Members

- Public Types inherited from ROOT::Math::IBaseFunctionOneDim
typedef IBaseFunctionOneDim BaseFunc
 

#include <RooGenFunction.h>

Inheritance diagram for RooGenFunction:
[legend]

Constructor & Destructor Documentation

◆ RooGenFunction() [1/3]

RooGenFunction::RooGenFunction ( const RooAbsReal func,
const RooArgList observables,
const RooArgList parameters 
)

Definition at line 47 of file RooGenFunction.cxx.

◆ RooGenFunction() [2/3]

RooGenFunction::RooGenFunction ( const RooAbsReal func,
const RooArgList observables,
const RooArgList parameters,
const RooArgSet nset 
)

Definition at line 55 of file RooGenFunction.cxx.

◆ RooGenFunction() [3/3]

RooGenFunction::RooGenFunction ( const RooGenFunction other)

Definition at line 63 of file RooGenFunction.cxx.

◆ ~RooGenFunction()

RooGenFunction::~RooGenFunction ( )
virtual

Definition at line 71 of file RooGenFunction.cxx.

Member Function Documentation

◆ Clone()

virtual ROOT::Math::IBaseFunctionOneDim* RooGenFunction::Clone ( ) const
inlinevirtual

Clone a function.

Each derived class will implement their version of the provate DoClone method

Implements ROOT::Math::IBaseFunctionOneDim.

Definition at line 30 of file RooGenFunction.h.

◆ DoEval()

double RooGenFunction::DoEval ( double  x) const
protectedvirtual

implementation of the evaluation function. Must be implemented by derived classes

Implements ROOT::Math::IBaseFunctionOneDim.

Definition at line 78 of file RooGenFunction.cxx.

Member Data Documentation

◆ _ftor

RooFunctor RooGenFunction::_ftor
protected

Definition at line 41 of file RooGenFunction.h.


The documentation for this class was generated from the following files: