Logo ROOT  
Reference Guide
RooDataProjBinding Class Reference

adaptor that projects a real function via summation of states provided in a dataset.

The real function must be attached to the dataset before creating this binding object.

If the dataset only contains category variables, the summation is optimized performing a weighted sum over the states of a RooSuperCategory that is constructed from all the categories in the dataset

Definition at line 25 of file RooDataProjBinding.h.

Public Member Functions

 RooDataProjBinding (const RooAbsReal &real, const RooAbsData &data, const RooArgSet &vars, const RooArgSet *normSet=0)
 Constructor of a data weighted average function binding with variables 'vars' for function 'real' and dataset 'data' with weights. More...
 
virtual ~RooDataProjBinding ()
 Destructor, delete owned objects. More...
 
RooSpan< const doublegetValues (std::vector< RooSpan< const double >> coordinates) const
 Evaluate the function at the specified values of the dependents. More...
 
virtual Double_t operator() (const Double_t xvector[]) const
 Evaluate data-projected values of the bound real function. More...
 
- Public Member Functions inherited from 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'. 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 std::list< Double_t > * binBoundaries (Int_t) const
  More...
 
virtual Double_t getMaxLimit (UInt_t dimension) const
 Return upper limit on i-th variable. More...
 
virtual Double_t getMinLimit (UInt_t dimension) const
 Return lower limit on i-th variable. More...
 
virtual const char * getName () const
 Return name of function. More...
 
RooSpan< const doublegetValuesOfBoundFunction (RooBatchCompute::RunContext &evalData) const
 Evaluate the bound object at all locations indicated by the data in evalData. More...
 
RooAbsRealLValueobservable (unsigned int i) const
 Return a pointer to the observable that defines the i-th dimension of the function. More...
 
virtual std::list< Double_t > * plotSamplingHint (RooAbsRealLValue &, Double_t, Double_t) const
 Interface for returning an optional hint for initial sampling points when constructing a curve projected on observable. More...
 
virtual void restoreXVec () const
 Restore value of all variables to previously saved values by saveXVec() More...
 
virtual void saveXVec () const
 Save value of all variables. More...
 
- Public Member Functions inherited from RooAbsFunc
 RooAbsFunc (const RooAbsFunc &other)
  More...
 
 RooAbsFunc (UInt_t dimension)
  More...
 
virtual ~RooAbsFunc ()
  More...
 
UInt_t getDimension () const
  More...
 
Bool_t isValid () const
  More...
 
Int_t numCall () const
  More...
 
void resetNumCall () const
  More...
 

Protected Attributes

std::unique_ptr< std::vector< double > > _batchBuffer
  More...
 
Roo1DTable_catTable
  More...
 
const RooAbsData_data
  More...
 
Bool_t _first
  More...
 
const RooArgSet_nset
  More...
 
const RooAbsReal_real
  More...
 
RooSuperCategory_superCat
  More...
 
- Protected Attributes inherited from RooRealBinding
Bool_t _clipInvalid
  More...
 
std::vector< RooAbsReal * > _compList
  More...
 
std::vector< Double_t_compSave
  More...
 
std::unique_ptr< RooBatchCompute::RunContext_evalData
  More...
 
const RooAbsReal_func
  More...
 
Double_t _funcSave
  More...
 
const RooArgSet_nset
  More...
 
const TNamed_rangeName
  More...
 
std::vector< RooAbsRealLValue * > _vars
  More...
 
Double_t_xsave
  More...
 
Bool_t _xvecValid
  More...
 
- Protected Attributes inherited from RooAbsFunc
UInt_t _dimension
  More...
 
Int_t _ncall
  More...
 
Bool_t _valid
  More...
 

Additional Inherited Members

- Protected Member Functions inherited from RooRealBinding
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...
 

#include <RooDataProjBinding.h>

Inheritance diagram for RooDataProjBinding:
[legend]

Constructor & Destructor Documentation

◆ RooDataProjBinding()

RooDataProjBinding::RooDataProjBinding ( const RooAbsReal real,
const RooAbsData data,
const RooArgSet vars,
const RooArgSet normSet = 0 
)

Constructor of a data weighted average function binding with variables 'vars' for function 'real' and dataset 'data' with weights.

Definition at line 57 of file RooDataProjBinding.cxx.

◆ ~RooDataProjBinding()

RooDataProjBinding::~RooDataProjBinding ( )
virtual

Destructor, delete owned objects.

Definition at line 83 of file RooDataProjBinding.cxx.

Member Function Documentation

◆ getValues()

RooSpan< const double > RooDataProjBinding::getValues ( std::vector< RooSpan< const double >>  coordinates) const
virtual

Evaluate the function at the specified values of the dependents.

Reimplemented from RooRealBinding.

Definition at line 165 of file RooDataProjBinding.cxx.

◆ operator()()

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

Evaluate data-projected values of the bound real function.

Reimplemented from RooRealBinding.

Definition at line 94 of file RooDataProjBinding.cxx.

Member Data Documentation

◆ _batchBuffer

std::unique_ptr<std::vector<double> > RooDataProjBinding::_batchBuffer
mutableprotected

Definition at line 43 of file RooDataProjBinding.h.

◆ _catTable

Roo1DTable* RooDataProjBinding::_catTable
protected

Definition at line 42 of file RooDataProjBinding.h.

◆ _data

const RooAbsData* RooDataProjBinding::_data
protected

Definition at line 38 of file RooDataProjBinding.h.

◆ _first

Bool_t RooDataProjBinding::_first
mutableprotected

Definition at line 36 of file RooDataProjBinding.h.

◆ _nset

const RooArgSet* RooDataProjBinding::_nset
protected

Definition at line 39 of file RooDataProjBinding.h.

◆ _real

const RooAbsReal* RooDataProjBinding::_real
protected

Definition at line 37 of file RooDataProjBinding.h.

◆ _superCat

RooSuperCategory* RooDataProjBinding::_superCat
protected

Definition at line 41 of file RooDataProjBinding.h.

Libraries for RooDataProjBinding:
[legend]

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