Logo ROOT   6.16/01
Reference Guide
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...
 
RooAbsFuncbinding ()
 
Double_t eval (const Double_t *) const
 
Double_t eval (const Double_t *, const Double_t *) const
 
Double_t eval (Double_t) const
 
Int_t nObs () const
 
Int_t nPar () const
 
Double_t operator() (const Double_t *x) const
 
Double_t operator() (const Double_t *x, const Double_t *p) const
 
Double_t operator() (Double_t x) const
 

Protected Attributes

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

#include <RooFunctor.h>

Constructor & Destructor Documentation

◆ RooFunctor() [1/4]

RooFunctor::RooFunctor ( const RooAbsFunc func)

Definition at line 48 of file RooFunctor.cxx.

◆ RooFunctor() [2/4]

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

Store list of observables.

Definition at line 64 of file RooFunctor.cxx.

◆ RooFunctor() [3/4]

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() [4/4]

RooFunctor::RooFunctor ( const RooFunctor other)

Definition at line 108 of file RooFunctor.cxx.

◆ ~RooFunctor()

RooFunctor::~RooFunctor ( )
virtual

Destructor.

Definition at line 129 of file RooFunctor.cxx.

Member Function Documentation

◆ binding()

RooAbsFunc & RooFunctor::binding ( )
inline

Definition at line 55 of file RooFunctor.h.

◆ eval() [1/3]

Double_t RooFunctor::eval ( const Double_t x) const

Definition at line 139 of file RooFunctor.cxx.

◆ eval() [2/3]

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

Definition at line 153 of file RooFunctor.cxx.

◆ eval() [3/3]

Double_t RooFunctor::eval ( Double_t  x) const

Definition at line 146 of file RooFunctor.cxx.

◆ nObs()

Int_t RooFunctor::nObs ( ) const
inline

Definition at line 34 of file RooFunctor.h.

◆ nPar()

Int_t RooFunctor::nPar ( ) const
inline

Definition at line 38 of file RooFunctor.h.

◆ operator()() [1/3]

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

Definition at line 49 of file RooFunctor.h.

◆ operator()() [2/3]

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

Definition at line 48 of file RooFunctor.h.

◆ operator()() [3/3]

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

Definition at line 47 of file RooFunctor.h.

Member Data Documentation

◆ _binding

RooAbsFunc* RooFunctor::_binding
protected

Definition at line 61 of file RooFunctor.h.

◆ _nobs

Int_t RooFunctor::_nobs
protected

Number of parameters ;.

Definition at line 64 of file RooFunctor.h.

◆ _npar

Int_t RooFunctor::_npar
protected

Transfer array ;.

Definition at line 63 of file RooFunctor.h.

◆ _nset

RooArgSet RooFunctor::_nset
protected

Definition at line 60 of file RooFunctor.h.

◆ _ownBinding

Bool_t RooFunctor::_ownBinding
protected

Definition at line 59 of file RooFunctor.h.

◆ _x

Double_t* RooFunctor::_x
protected

Definition at line 62 of file RooFunctor.h.

Libraries for RooFunctor:
[legend]

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