Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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.
 
 RooFunctor (const RooAbsReal &func, const RooArgList &observables, const RooArgList &parameters, const RooArgSet &nset)
 Store normalization set.
 
 RooFunctor (const RooFunctor &)
 
virtual ~RooFunctor ()
 Destructor.
 
RooAbsFuncbinding ()
 
double eval (const double *) const
 
double eval (const double *, const double *) const
 
double eval (double) const
 
virtual TClassIsA () const
 
Int_t nObs () const
 
Int_t nPar () const
 
double operator() (const double *x) const
 
double operator() (const double *x, const double *p) const
 
double operator() (double x) const
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Static Public Member Functions

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

Protected Attributes

RooAbsFunc_binding
 Function binding.
 
Int_t _nobs
 ! Number of observables ;
 
Int_t _npar
 ! Number of parameters ;
 
RooArgSet _nset
 Normalization observables.
 
bool _ownBinding
 Do we own the binding function.
 
double_x
 ! Transfer array ;
 

#include <RooFunctor.h>

Constructor & Destructor Documentation

◆ RooFunctor() [1/4]

RooFunctor::RooFunctor ( const RooAbsFunc func)

Definition at line 46 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 62 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 84 of file RooFunctor.cxx.

◆ RooFunctor() [4/4]

RooFunctor::RooFunctor ( const RooFunctor other)

Definition at line 106 of file RooFunctor.cxx.

◆ ~RooFunctor()

RooFunctor::~RooFunctor ( )
virtual

Destructor.

Definition at line 127 of file RooFunctor.cxx.

Member Function Documentation

◆ binding()

RooAbsFunc & RooFunctor::binding ( )
inline

Definition at line 51 of file RooFunctor.h.

◆ Class()

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

◆ Class_Name()

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

◆ Class_Version()

static constexpr Version_t RooFunctor::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 62 of file RooFunctor.h.

◆ DeclFileName()

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

Definition at line 62 of file RooFunctor.h.

◆ eval() [1/3]

double RooFunctor::eval ( const double x) const

Definition at line 137 of file RooFunctor.cxx.

◆ eval() [2/3]

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

Definition at line 151 of file RooFunctor.cxx.

◆ eval() [3/3]

double RooFunctor::eval ( double  x) const

Definition at line 144 of file RooFunctor.cxx.

◆ IsA()

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

Definition at line 62 of file RooFunctor.h.

◆ 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 RooFunctor::operator() ( const double x) const
inline

Definition at line 45 of file RooFunctor.h.

◆ operator()() [2/3]

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

Definition at line 44 of file RooFunctor.h.

◆ operator()() [3/3]

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

Definition at line 43 of file RooFunctor.h.

◆ Streamer()

virtual void RooFunctor::Streamer ( TBuffer )
virtual

◆ StreamerNVirtual()

void RooFunctor::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 62 of file RooFunctor.h.

Member Data Documentation

◆ _binding

RooAbsFunc* RooFunctor::_binding
protected

Function binding.

Definition at line 57 of file RooFunctor.h.

◆ _nobs

Int_t RooFunctor::_nobs
protected

! Number of observables ;

Definition at line 60 of file RooFunctor.h.

◆ _npar

Int_t RooFunctor::_npar
protected

! Number of parameters ;

Definition at line 59 of file RooFunctor.h.

◆ _nset

RooArgSet RooFunctor::_nset
protected

Normalization observables.

Definition at line 56 of file RooFunctor.h.

◆ _ownBinding

bool RooFunctor::_ownBinding
protected

Do we own the binding function.

Definition at line 55 of file RooFunctor.h.

◆ _x

double* RooFunctor::_x
protected

! Transfer array ;

Definition at line 58 of file RooFunctor.h.

Libraries for RooFunctor:

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