Logo ROOT  
Reference Guide
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)
 
 ~RooGenFunction () override
 
ROOT::Math::IBaseFunctionOneDimClone () const override
 Clone a function. More...
 
virtual TClassIsA () const
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from ROOT::Math::IBaseFunctionOneDim
 IBaseFunctionOneDim ()
 
virtual ~IBaseFunctionOneDim ()
 virtual destructor More...
 
virtual IBaseFunctionOneDimClone () const =0
 Clone a function. More...
 
double operator() (const double *x) const
 Evaluate the function at a point x[]. 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...
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static Version_t Class_Version ()
 
static const char * DeclFileName ()
 

Protected Member Functions

double DoEval (double) const override
 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 46 of file RooGenFunction.cxx.

◆ RooGenFunction() [2/3]

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

Definition at line 54 of file RooGenFunction.cxx.

◆ RooGenFunction() [3/3]

RooGenFunction::RooGenFunction ( const RooGenFunction other)

Definition at line 62 of file RooGenFunction.cxx.

◆ ~RooGenFunction()

RooGenFunction::~RooGenFunction ( )
override

Definition at line 70 of file RooGenFunction.cxx.

Member Function Documentation

◆ Class()

static TClass * RooGenFunction::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * RooGenFunction::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static Version_t RooGenFunction::Class_Version ( )
inlinestatic
Returns
Version of this class

Definition at line 40 of file RooGenFunction.h.

◆ Clone()

ROOT::Math::IBaseFunctionOneDim * RooGenFunction::Clone ( ) const
inlineoverridevirtual

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.

◆ DeclFileName()

static const char * RooGenFunction::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 40 of file RooGenFunction.h.

◆ DoEval()

double RooGenFunction::DoEval ( double  x) const
overrideprotectedvirtual

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

Implements ROOT::Math::IBaseFunctionOneDim.

Definition at line 77 of file RooGenFunction.cxx.

◆ IsA()

virtual TClass * RooGenFunction::IsA ( ) const
inlinevirtual
Returns
TClass describing current object

Definition at line 40 of file RooGenFunction.h.

◆ Streamer()

virtual void RooGenFunction::Streamer ( TBuffer )
virtual

◆ StreamerNVirtual()

void RooGenFunction::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 40 of file RooGenFunction.h.

Member Data Documentation

◆ _ftor

RooFunctor RooGenFunction::_ftor
protected

Definition at line 38 of file RooGenFunction.h.

Libraries for RooGenFunction:
[legend]

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