Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
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=nullptr)
 Constructor of a data weighted average function binding with variables 'vars' for function 'real' and dataset 'data' with weights.
 ~RooDataProjBinding () override
std::list< double > * binBoundaries (Int_t) const override
UInt_t getDimension () const
double getMaxLimit (UInt_t dimension) const override
 Return upper limit on i-th variable.
double getMinLimit (UInt_t dimension) const override
 Return lower limit on i-th variable.
const char * getName () const override
 Return name of function.
TClassIsA () const override
bool isValid () const
Int_t numCall () const
 Return number of function calls since last reset.
RooAbsRealLValueobservable (unsigned int i) const
 Return a pointer to the observable that defines the i-th dimension of the function.
double operator() (const double xvector[]) const override
 Evaluate data-projected values of the bound real function.
std::list< double > * plotSamplingHint (RooAbsRealLValue &, double, double) const override
 Interface for returning an optional hint for initial sampling points when constructing a curve projected on observable.
void resetNumCall () const
 Reset function call counter.
void restoreXVec () const override
 Restore value of all variables to previously saved values by saveXVec().
void saveXVec () const override
 Save value of all variables.
void Streamer (TBuffer &) override
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 Member Functions

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

Protected Attributes

std::unique_ptr< Roo1DTable_catTable
 Supercategory table generated from _data.
bool _clipInvalid
std::vector< RooAbsReal * > _compList
 !
std::vector< double_compSave
 !
const RooAbsData_data
 Dataset used for projection.
UInt_t _dimension
 Number of observables.
bool _first
 Bit indicating if operator() has been called yet.
const RooAbsReal_func
double _funcSave
 !
Int_t _ncall
 Function call counter.
const RooArgSet_nset
 Normalization set for real function.
const TNamed_rangeName
 !
const RooAbsReal_real
 Real function to be projected.
std::unique_ptr< RooSuperCategory_superCat
 Supercategory constructed from _data's category variables.
bool _valid
 Is binding in valid state?
std::vector< RooAbsRealLValue * > _vars
 Non-owned pointers to variables.
std::vector< double_xsave
bool _xvecValid

#include <RooDataProjBinding.h>

Inheritance diagram for RooDataProjBinding:
RooRealBinding RooAbsFunc

Constructor & Destructor Documentation

◆ RooDataProjBinding()

RooDataProjBinding::RooDataProjBinding ( const RooAbsReal & real,
const RooAbsData & data,
const RooArgSet & vars,
const RooArgSet * normSet = nullptr )

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

Definition at line 50 of file RooDataProjBinding.cxx.

◆ ~RooDataProjBinding()

RooDataProjBinding::~RooDataProjBinding ( )
overridedefault

Member Function Documentation

◆ binBoundaries()

std::list< double > * RooRealBinding::binBoundaries ( Int_t index) const
overridevirtualinherited

Reimplemented from RooAbsFunc.

Definition at line 224 of file RooRealBinding.cxx.

◆ Class()

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

◆ Class_Name()

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

◆ Class_Version()

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

Definition at line 42 of file RooDataProjBinding.h.

◆ DeclFileName()

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

Definition at line 42 of file RooDataProjBinding.h.

◆ getDimension()

UInt_t RooAbsFunc::getDimension ( ) const
inlineinherited

Definition at line 33 of file RooAbsFunc.h.

◆ getMaxLimit()

double RooRealBinding::getMaxLimit ( UInt_t dimension) const
overridevirtualinherited

Return upper limit on i-th variable.

Implements RooAbsFunc.

Definition at line 198 of file RooRealBinding.cxx.

◆ getMinLimit()

double RooRealBinding::getMinLimit ( UInt_t dimension) const
overridevirtualinherited

Return lower limit on i-th variable.

Implements RooAbsFunc.

Definition at line 187 of file RooRealBinding.cxx.

◆ getName()

const char * RooRealBinding::getName ( ) const
overridevirtualinherited

Return name of function.

Reimplemented from RooAbsFunc.

Definition at line 208 of file RooRealBinding.cxx.

◆ IsA()

TClass * RooDataProjBinding::IsA ( ) const
inlineoverridevirtual
Returns
TClass describing current object

Reimplemented from RooAbsFunc.

Definition at line 42 of file RooDataProjBinding.h.

◆ isValid()

bool RooAbsFunc::isValid ( ) const
inlineinherited

Definition at line 37 of file RooAbsFunc.h.

◆ loadValues()

void RooRealBinding::loadValues ( const double xvector[]) const
protectedinherited

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

Warning
This will load as many values as the dimensionality of the function requires. The size of xvector is not checked.

Definition at line 157 of file RooRealBinding.cxx.

◆ numCall()

Int_t RooAbsFunc::numCall ( ) const
inlineinherited

Return number of function calls since last reset.

Definition at line 47 of file RooAbsFunc.h.

◆ observable()

RooAbsRealLValue * RooRealBinding::observable ( unsigned int i) const
inlineinherited

Return a pointer to the observable that defines the i-th dimension of the function.

Definition at line 47 of file RooRealBinding.h.

◆ operator()()

double RooDataProjBinding::operator() ( const double xvector[]) const
overridevirtual

Evaluate data-projected values of the bound real function.

Implements RooAbsFunc.

Definition at line 72 of file RooDataProjBinding.cxx.

◆ plotSamplingHint()

std::list< double > * RooRealBinding::plotSamplingHint ( RooAbsRealLValue & ,
double ,
double  ) const
overridevirtualinherited

Interface for returning an optional hint for initial sampling points when constructing a curve projected on observable.

Reimplemented from RooAbsFunc.

Definition at line 216 of file RooRealBinding.cxx.

◆ resetNumCall()

void RooAbsFunc::resetNumCall ( ) const
inlineinherited

Reset function call counter.

Definition at line 52 of file RooAbsFunc.h.

◆ restoreXVec()

void RooRealBinding::restoreXVec ( ) const
overridevirtualinherited

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

Reimplemented from RooAbsFunc.

Definition at line 129 of file RooRealBinding.cxx.

◆ saveXVec()

void RooRealBinding::saveXVec ( ) const
overridevirtualinherited

Save value of all variables.

Reimplemented from RooAbsFunc.

Definition at line 97 of file RooRealBinding.cxx.

◆ Streamer()

void RooDataProjBinding::Streamer ( TBuffer & )
overridevirtual

Reimplemented from RooAbsFunc.

◆ StreamerNVirtual()

void RooDataProjBinding::StreamerNVirtual ( TBuffer & ClassDef_StreamerNVirtual_b)
inline

Definition at line 42 of file RooDataProjBinding.h.

Member Data Documentation

◆ _catTable

std::unique_ptr<Roo1DTable> RooDataProjBinding::_catTable
protected

Supercategory table generated from _data.

Definition at line 40 of file RooDataProjBinding.h.

◆ _clipInvalid

bool RooRealBinding::_clipInvalid
protectedinherited

Definition at line 57 of file RooRealBinding.h.

◆ _compList

std::vector<RooAbsReal*> RooRealBinding::_compList
mutableprotectedinherited

!

Definition at line 61 of file RooRealBinding.h.

◆ _compSave

std::vector<double> RooRealBinding::_compSave
mutableprotectedinherited

!

Definition at line 62 of file RooRealBinding.h.

◆ _data

const RooAbsData* RooDataProjBinding::_data
protected

Dataset used for projection.

Definition at line 36 of file RooDataProjBinding.h.

◆ _dimension

UInt_t RooAbsFunc::_dimension
protectedinherited

Number of observables.

Definition at line 79 of file RooAbsFunc.h.

◆ _first

bool RooDataProjBinding::_first
mutableprotected

Bit indicating if operator() has been called yet.

Definition at line 34 of file RooDataProjBinding.h.

◆ _func

const RooAbsReal* RooRealBinding::_func
protectedinherited

Definition at line 53 of file RooRealBinding.h.

◆ _funcSave

double RooRealBinding::_funcSave
mutableprotectedinherited

!

Definition at line 63 of file RooRealBinding.h.

◆ _ncall

Int_t RooAbsFunc::_ncall
mutableprotectedinherited

Function call counter.

Definition at line 78 of file RooAbsFunc.h.

◆ _nset

const RooArgSet* RooDataProjBinding::_nset
protected

Normalization set for real function.

Definition at line 37 of file RooDataProjBinding.h.

◆ _rangeName

const TNamed* RooRealBinding::_rangeName
protectedinherited

!

Definition at line 59 of file RooRealBinding.h.

◆ _real

const RooAbsReal* RooDataProjBinding::_real
protected

Real function to be projected.

Definition at line 35 of file RooDataProjBinding.h.

◆ _superCat

std::unique_ptr<RooSuperCategory> RooDataProjBinding::_superCat
protected

Supercategory constructed from _data's category variables.

Definition at line 39 of file RooDataProjBinding.h.

◆ _valid

bool RooAbsFunc::_valid
protectedinherited

Is binding in valid state?

Definition at line 80 of file RooAbsFunc.h.

◆ _vars

std::vector<RooAbsRealLValue*> RooRealBinding::_vars
protectedinherited

Non-owned pointers to variables.

Definition at line 54 of file RooRealBinding.h.

◆ _xsave

std::vector<double> RooRealBinding::_xsave
mutableprotectedinherited

Definition at line 58 of file RooRealBinding.h.

◆ _xvecValid

bool RooRealBinding::_xvecValid
mutableprotectedinherited

Definition at line 56 of file RooRealBinding.h.


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