62 _superCat(0), _catTable(0)
69 if (!dynamic_cast<RooCategory*>(arg)) allCat =
kFALSE ;
132 oocoutW(
_real,
Eval) <<
"RooDataProjBinding::operator() projecting over " << nEvt <<
" events" << endl ;
145 for (i=0 ; i<nEvt ; i++) {
152 result += wgt * ret ;
163 if (wgtSum==0)
return 0 ;
164 return result / wgtSum ;
TIterator * createIterator(Bool_t dir=kIterForward) const
adaptor that projects a real function via summation of states provided in a dataset.
virtual const RooArgSet * get() const
Double_t get(const char *label, Bool_t silent=kFALSE) const
Return the table entry named 'label'.
Double_t getVal(const RooArgSet *set=0) const
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...
RooSuperCategory * _superCat
Iterator abstract base class.
RooCatType is an auxilary class for RooAbsCategory and defines a a single category state...
virtual Double_t operator()(const Double_t xvector[]) const
Evaluate data-projected values of the bound real function.
TIterator * typeIterator() const
Return iterator over all defined states.
virtual const Text_t * GetName() const
Returns name of object.
virtual Bool_t setIndex(Int_t index, Bool_t printError=kTRUE)
Set the value of the super category by specifying the state index code by setting the states of the c...
RooAbsData is the common abstract base class for binned and unbinned datasets.
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
void loadValues(const Double_t xvector[]) const
Load the vector of variable values into the RooRealVars associated as variables with the bound RooAbs...
virtual TObject * Next()=0
virtual Double_t weight() const =0
virtual ~RooDataProjBinding()
Destructor, delete owned objects.
RooSuperCategory consolidates several RooAbsCategoryLValue objects into a single category.
Lightweight interface adaptor that binds a RooAbsReal object to a subset of its servers and present i...
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
virtual Int_t numEntries() const
virtual Roo1DTable * table(const RooArgSet &catSet, const char *cuts="", const char *opts="") const
Construct table for product of categories in catSet.