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 ;
ClassImp(RooDataProjBinding)
virtual Roo1DTable * table(const RooArgSet &catSet, const char *cuts="", const char *opts="") const
Construct table for product of categories in catSet.
adaptor that projects a real function via summation of states provided in a dataset.
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
RooCatType is an auxilary class for RooAbsCategory and defines a a single category state...
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...
RooAbsData is the common abstract base class for binned and unbinned datasets.
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.
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 const Text_t * GetName() const
Returns name of object.
TIterator * typeIterator() const
Return iterator over all defined states.