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. | |
| TClass * | IsA () const override |
| bool | isValid () const |
| Int_t | numCall () const |
| Return number of function calls since last reset. | |
| RooAbsRealLValue * | observable (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 TClass * | Class () |
| 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>
| 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.
|
overridedefault |
Reimplemented from RooAbsFunc.
Definition at line 224 of file RooRealBinding.cxx.
Definition at line 42 of file RooDataProjBinding.h.
Definition at line 42 of file RooDataProjBinding.h.
|
inlineinherited |
Definition at line 33 of file RooAbsFunc.h.
Return upper limit on i-th variable.
Implements RooAbsFunc.
Definition at line 198 of file RooRealBinding.cxx.
Return lower limit on i-th variable.
Implements RooAbsFunc.
Definition at line 187 of file RooRealBinding.cxx.
|
overridevirtualinherited |
Return name of function.
Reimplemented from RooAbsFunc.
Definition at line 208 of file RooRealBinding.cxx.
|
inlineoverridevirtual |
Reimplemented from RooAbsFunc.
Definition at line 42 of file RooDataProjBinding.h.
|
inlineinherited |
Definition at line 37 of file RooAbsFunc.h.
Load the vector of variable values into the RooRealVars associated as variables with the bound RooAbsReal function.
xvector is not checked. Definition at line 157 of file RooRealBinding.cxx.
|
inlineinherited |
Return number of function calls since last reset.
Definition at line 47 of file RooAbsFunc.h.
|
inlineinherited |
Return a pointer to the observable that defines the i-th dimension of the function.
Definition at line 47 of file RooRealBinding.h.
Evaluate data-projected values of the bound real function.
Implements RooAbsFunc.
Definition at line 72 of file RooDataProjBinding.cxx.
|
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.
|
inlineinherited |
Reset function call counter.
Definition at line 52 of file RooAbsFunc.h.
|
overridevirtualinherited |
Restore value of all variables to previously saved values by saveXVec()
Reimplemented from RooAbsFunc.
Definition at line 129 of file RooRealBinding.cxx.
|
overridevirtualinherited |
Save value of all variables.
Reimplemented from RooAbsFunc.
Definition at line 97 of file RooRealBinding.cxx.
|
overridevirtual |
Reimplemented from RooAbsFunc.
|
inline |
Definition at line 42 of file RooDataProjBinding.h.
|
protected |
Supercategory table generated from _data.
Definition at line 40 of file RooDataProjBinding.h.
|
protectedinherited |
Definition at line 57 of file RooRealBinding.h.
|
mutableprotectedinherited |
!
Definition at line 61 of file RooRealBinding.h.
|
mutableprotectedinherited |
!
Definition at line 62 of file RooRealBinding.h.
|
protected |
Dataset used for projection.
Definition at line 36 of file RooDataProjBinding.h.
|
protectedinherited |
Number of observables.
Definition at line 79 of file RooAbsFunc.h.
|
mutableprotected |
Bit indicating if operator() has been called yet.
Definition at line 34 of file RooDataProjBinding.h.
|
protectedinherited |
Definition at line 53 of file RooRealBinding.h.
|
mutableprotectedinherited |
!
Definition at line 63 of file RooRealBinding.h.
|
mutableprotectedinherited |
Function call counter.
Definition at line 78 of file RooAbsFunc.h.
Normalization set for real function.
Definition at line 37 of file RooDataProjBinding.h.
!
Definition at line 59 of file RooRealBinding.h.
|
protected |
Real function to be projected.
Definition at line 35 of file RooDataProjBinding.h.
|
protected |
Supercategory constructed from _data's category variables.
Definition at line 39 of file RooDataProjBinding.h.
|
protectedinherited |
Is binding in valid state?
Definition at line 80 of file RooAbsFunc.h.
|
protectedinherited |
Non-owned pointers to variables.
Definition at line 54 of file RooRealBinding.h.
|
mutableprotectedinherited |
Definition at line 58 of file RooRealBinding.h.
|
mutableprotectedinherited |
Definition at line 56 of file RooRealBinding.h.