61 _superCat(0), _catTable(0)
68 if (!dynamic_cast<RooCategory*>(arg)) allCat =
kFALSE ;
131 oocoutW(
_real,
Eval) <<
"RooDataProjBinding::operator() projecting over " << nEvt <<
" events" << endl ;
144 for (i=0 ; i<nEvt ; i++) {
151 result += wgt * ret ;
162 if (wgtSum==0)
return 0 ;
163 return result / wgtSum ;
ClassImp(RooDataProjBinding)
virtual Roo1DTable * table(const RooArgSet &catSet, const char *cuts="", const char *opts="") const
Construct table for product of categories in catSet.
virtual Double_t operator()(const Double_t xvector[]) const
Evaluate data-projected values of the bound real function.
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.
std::map< std::string, std::string >::const_iterator iter
TIterator * createIterator(Bool_t dir=kIterForward) const
Double_t getVal(const RooArgSet *set=0) const
virtual const RooArgSet * get() const
void loadValues(const Double_t xvector[]) const
Load the vector of variable values into the RooRealVars associated as variables with the bound RooAbs...
virtual Int_t numEntries() const
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...
Double_t get(const char *label, Bool_t silent=kFALSE) const
Return the table entry named 'label'.
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
virtual TObject * Next()=0
virtual Double_t weight() const =0
virtual ~RooDataProjBinding()
Destructor, delete owned objects.
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
virtual const Text_t * GetName() const
Returns name of object.
TIterator * typeIterator() const
Return iterator over all defined states.