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 Attributes | List of all members
RooFunctor Class Reference

Lightweight interface adaptor that exports a RooAbsPdf as a functor.

Definition at line 25 of file RooFunctor.h.

Public Member Functions

 RooFunctor (const RooAbsFunc &func)
 
 RooFunctor (const RooAbsReal &func, const RooArgList &observables, const RooArgList &parameters)
 Store list of observables. More...
 
 RooFunctor (const RooAbsReal &func, const RooArgList &observables, const RooArgList &parameters, const RooArgSet &nset)
 Store normalization set. More...
 
 RooFunctor (const RooFunctor &)
 
virtual ~RooFunctor ()
 Destructor. More...
 
Int_t nObs () const
 
Int_t nPar () const
 
Double_t operator() (Double_t x) const
 
Double_t operator() (const Double_t *x, const Double_t *p) const
 
Double_t operator() (const Double_t *x) const
 
Double_t eval (const Double_t *, const Double_t *) const
 
Double_t eval (const Double_t *) const
 
Double_t eval (Double_t) const
 
RooAbsFuncbinding ()
 

Protected Attributes

Bool_t _ownBinding
 
RooArgSet _nset
 
RooAbsFunc_binding
 
Double_t_x
 
Int_t _npar
 Transfer array ;. More...
 
Int_t _nobs
 Number of parameters ;. More...
 

#include <RooFunctor.h>

Constructor & Destructor Documentation

RooFunctor::RooFunctor ( const RooAbsFunc func)

Definition at line 48 of file RooFunctor.cxx.

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

Store list of observables.

Definition at line 64 of file RooFunctor.cxx.

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

Store normalization set.

Definition at line 86 of file RooFunctor.cxx.

RooFunctor::RooFunctor ( const RooFunctor other)

Definition at line 108 of file RooFunctor.cxx.

RooFunctor::~RooFunctor ( )
virtual

Destructor.

Definition at line 129 of file RooFunctor.cxx.

Member Function Documentation

RooAbsFunc& RooFunctor::binding ( )
inline

Definition at line 55 of file RooFunctor.h.

Double_t RooFunctor::eval ( const Double_t x,
const Double_t p 
) const

Definition at line 153 of file RooFunctor.cxx.

Referenced by operator()().

Double_t RooFunctor::eval ( const Double_t x) const

Definition at line 139 of file RooFunctor.cxx.

Double_t RooFunctor::eval ( Double_t  x) const

Definition at line 146 of file RooFunctor.cxx.

Int_t RooFunctor::nObs ( ) const
inline

Definition at line 34 of file RooFunctor.h.

Referenced by RooMultiGenFunction::NDim().

Int_t RooFunctor::nPar ( ) const
inline

Definition at line 38 of file RooFunctor.h.

Double_t RooFunctor::operator() ( Double_t  x) const
inline

Definition at line 47 of file RooFunctor.h.

Double_t RooFunctor::operator() ( const Double_t x,
const Double_t p 
) const
inline

Definition at line 48 of file RooFunctor.h.

Double_t RooFunctor::operator() ( const Double_t x) const
inline

Definition at line 49 of file RooFunctor.h.

Member Data Documentation

RooAbsFunc* RooFunctor::_binding
protected

Definition at line 61 of file RooFunctor.h.

Referenced by binding(), eval(), RooFunctor(), and ~RooFunctor().

Int_t RooFunctor::_nobs
protected

Number of parameters ;.

Definition at line 64 of file RooFunctor.h.

Referenced by eval(), nObs(), and RooFunctor().

Int_t RooFunctor::_npar
protected

Transfer array ;.

Definition at line 63 of file RooFunctor.h.

Referenced by eval(), nPar(), and RooFunctor().

RooArgSet RooFunctor::_nset
protected

Definition at line 60 of file RooFunctor.h.

Referenced by RooFunctor().

Bool_t RooFunctor::_ownBinding
protected

Definition at line 59 of file RooFunctor.h.

Referenced by RooFunctor(), and ~RooFunctor().

Double_t* RooFunctor::_x
protected

Definition at line 62 of file RooFunctor.h.

Referenced by eval(), RooFunctor(), and ~RooFunctor().

Collaboration diagram for RooFunctor:
[legend]

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