ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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::IBaseFunctionOneDim
Clone () 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::RooGenFunction ( const RooAbsReal func,
const RooArgList observables,
const RooArgList parameters 
)

Definition at line 47 of file RooGenFunction.cxx.

Referenced by Clone().

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

Definition at line 55 of file RooGenFunction.cxx.

RooGenFunction::RooGenFunction ( const RooGenFunction other)

Definition at line 63 of file RooGenFunction.cxx.

RooGenFunction::~RooGenFunction ( )
virtual

Definition at line 71 of file RooGenFunction.cxx.

Member Function Documentation

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.

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

RooFunctor RooGenFunction::_ftor
protected

Definition at line 41 of file RooGenFunction.h.

Referenced by DoEval().

Collaboration diagram for RooGenFunction:
[legend]

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