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
RooRealBinding Class Reference

Lightweight interface adaptor that binds a RooAbsReal object to a subset of its servers and present it as a simple array oriented interface.

Definition at line 26 of file RooRealBinding.h.

Public Member Functions

 RooRealBinding (const RooAbsReal &func, const RooArgSet &vars, const RooArgSet *nset=0, Bool_t clipInvalid=kFALSE, const TNamed *rangeName=0)
 Construct a lightweight function binding of RooAbsReal func to variables 'vars'. More...
 
 RooRealBinding (const RooRealBinding &other, const RooArgSet *nset=0)
 Construct a lightweight function binding of RooAbsReal func to variables 'vars'. More...
 
virtual ~RooRealBinding ()
 Destructor. More...
 
virtual Double_t operator() (const Double_t xvector[]) const
 Evaluate the bound RooAbsReal at the variable values provided in xvector. More...
 
virtual Double_t getMinLimit (UInt_t dimension) const
 Return lower limit on i-th variable. More...
 
virtual Double_t getMaxLimit (UInt_t dimension) const
 Return upper limit on i-th variable. More...
 
virtual void saveXVec () const
 Save value of all variables. More...
 
virtual void restoreXVec () const
 Restore value of all variables to previously saved values by saveXVec() More...
 
virtual const char * getName () const
 Return name of function. More...
 
virtual std::list< Double_t > * binBoundaries (Int_t) const
 
virtual std::list< Double_t > * plotSamplingHint (RooAbsRealLValue &, Double_t, Double_t) const
 
- Public Member Functions inherited from RooAbsFunc
 RooAbsFunc (UInt_t dimension)
 
 RooAbsFunc (const RooAbsFunc &other)
 
virtual ~RooAbsFunc ()
 
UInt_t getDimension () const
 
Bool_t isValid () const
 
Int_t numCall () const
 
void resetNumCall () const
 

Protected Member Functions

void loadValues (const Double_t xvector[]) const
 Load the vector of variable values into the RooRealVars associated as variables with the bound RooAbsReal function. More...
 

Protected Attributes

const RooAbsReal_func
 
RooAbsRealLValue ** _vars
 
const RooArgSet_nset
 
Bool_t _xvecValid
 
Bool_t _clipInvalid
 
Double_t_xsave
 
const TNamed_rangeName
 
std::list< RooAbsReal * > _compList
 
std::list< Double_t_compSave
 
Double_t _funcSave
 
- Protected Attributes inherited from RooAbsFunc
Int_t _ncall
 
UInt_t _dimension
 
Bool_t _valid
 

#include <RooRealBinding.h>

Inheritance diagram for RooRealBinding:
[legend]

Constructor & Destructor Documentation

RooRealBinding::RooRealBinding ( const RooAbsReal func,
const RooArgSet vars,
const RooArgSet nset = 0,
Bool_t  clipInvalid = kFALSE,
const TNamed rangeName = 0 
)

Construct a lightweight function binding of RooAbsReal func to variables 'vars'.

Use the provided nset as normalization set to be passed to RooAbsReal::getVal() If rangeName is not null, use the range of with that name as range associated with the variables of this function binding. If clipInvalid is true, values requested to the function binding that are outside the defined range of the variables are clipped to fit in the defined range.

Definition at line 57 of file RooRealBinding.cxx.

RooRealBinding::RooRealBinding ( const RooRealBinding other,
const RooArgSet nset = 0 
)

Construct a lightweight function binding of RooAbsReal func to variables 'vars'.

Use the provided nset as normalization set to be passed to RooAbsReal::getVal() If rangeName is not null, use the range of with that name as range associated with the variables of this function binding. If clipInvalid is true, values requested to the function binding that are outside the defined range of the variables are clipped to fit in the defined range.

Definition at line 93 of file RooRealBinding.cxx.

RooRealBinding::~RooRealBinding ( )
virtual

Destructor.

Definition at line 109 of file RooRealBinding.cxx.

Member Function Documentation

std::list< Double_t > * RooRealBinding::binBoundaries ( Int_t  index) const
virtual

Reimplemented from RooAbsFunc.

Definition at line 248 of file RooRealBinding.cxx.

Double_t RooRealBinding::getMaxLimit ( UInt_t  dimension) const
virtual

Return upper limit on i-th variable.

Implements RooAbsFunc.

Definition at line 222 of file RooRealBinding.cxx.

Referenced by binBoundaries().

Double_t RooRealBinding::getMinLimit ( UInt_t  dimension) const
virtual

Return lower limit on i-th variable.

Implements RooAbsFunc.

Definition at line 211 of file RooRealBinding.cxx.

Referenced by binBoundaries().

const char * RooRealBinding::getName ( ) const
virtual

Return name of function.

Reimplemented from RooAbsFunc.

Definition at line 232 of file RooRealBinding.cxx.

void RooRealBinding::loadValues ( const Double_t  xvector[]) const
protected

Load the vector of variable values into the RooRealVars associated as variables with the bound RooAbsReal function.

Definition at line 180 of file RooRealBinding.cxx.

Referenced by RooDataProjBinding::operator()(), and operator()().

Double_t RooRealBinding::operator() ( const Double_t  xvector[]) const
virtual

Evaluate the bound RooAbsReal at the variable values provided in xvector.

Implements RooAbsFunc.

Reimplemented in RooDataProjBinding, and RooRealAnalytic.

Definition at line 198 of file RooRealBinding.cxx.

std::list< Double_t > * RooRealBinding::plotSamplingHint ( RooAbsRealLValue obs,
Double_t  xlo,
Double_t  xhi 
) const
virtual

Reimplemented from RooAbsFunc.

Definition at line 240 of file RooRealBinding.cxx.

void RooRealBinding::restoreXVec ( ) const
virtual

Restore value of all variables to previously saved values by saveXVec()

Reimplemented from RooAbsFunc.

Definition at line 154 of file RooRealBinding.cxx.

void RooRealBinding::saveXVec ( ) const
virtual

Save value of all variables.

Reimplemented from RooAbsFunc.

Definition at line 120 of file RooRealBinding.cxx.

Member Data Documentation

Bool_t RooRealBinding::_clipInvalid
protected

Definition at line 51 of file RooRealBinding.h.

Referenced by loadValues().

std::list<RooAbsReal*> RooRealBinding::_compList
mutableprotected

Definition at line 55 of file RooRealBinding.h.

Referenced by restoreXVec(), and saveXVec().

std::list<Double_t> RooRealBinding::_compSave
mutableprotected

Definition at line 56 of file RooRealBinding.h.

Referenced by restoreXVec(), and saveXVec().

const RooAbsReal* RooRealBinding::_func
protected
Double_t RooRealBinding::_funcSave
mutableprotected

Definition at line 57 of file RooRealBinding.h.

Referenced by restoreXVec(), and saveXVec().

const RooArgSet* RooRealBinding::_nset
protected

Definition at line 49 of file RooRealBinding.h.

Referenced by operator()().

const TNamed* RooRealBinding::_rangeName
protected

Definition at line 53 of file RooRealBinding.h.

Referenced by getMaxLimit(), getMinLimit(), and loadValues().

RooAbsRealLValue** RooRealBinding::_vars
protected
Double_t* RooRealBinding::_xsave
mutableprotected

Definition at line 52 of file RooRealBinding.h.

Referenced by restoreXVec(), saveXVec(), and ~RooRealBinding().

Bool_t RooRealBinding::_xvecValid
mutableprotected

Definition at line 50 of file RooRealBinding.h.

Referenced by loadValues(), operator()(), and RooRealBinding().

Collaboration diagram for RooRealBinding:
[legend]

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