55 : _setIter( _set.createIterator() )
68 ,
_set(
"!set",
"set of components",this)
75 if (!dynamic_cast<RooAbsReal*>(comp)) {
77 <<
" is not of type RooAbsReal" << endl ;
97 ,
_set(
"!set",
"set of components",this)
109 while((comp1 = (
RooAbsArg*)inputIter1->Next())) {
110 if (!dynamic_cast<RooAbsReal*>(comp1)) {
112 <<
" in first list is not of type RooAbsReal" << endl ;
116 if (!dynamic_cast<RooAbsReal*>(comp2)) {
118 <<
" in first list is not of type RooAbsReal" << endl ;
124 _name.Append(comp1->GetName());
125 _name.Append(
"_x_");
126 _name.Append(comp2->GetName());
201 if (dynamic_cast<RooNLLVar*>(arg)) {
204 if (dynamic_cast<RooChi2Var*>(arg)) {
211 if (nllArg && !chi2Arg) {
213 <<
") Summation contains a RooNLLVar, using its error level" << endl ;
215 }
else if (chi2Arg && !nllArg) {
217 <<
") Summation contains a RooChi2Var, using its error level" << endl ;
219 }
else if (!nllArg && !chi2Arg) {
221 <<
"Summation contains neither RooNLLVar nor RooChi2Var server, using default level of 1.0" << endl ;
224 <<
"Summation contains BOTH RooNLLVar and RooChi2Var server, using default level of 1.0" << endl ;
269 if (!first) { os <<
" + " ;
282 analVars.
add(allVars);
285 Int_t sterileIndex(-1);
327 while ( ( I=(
RooAbsReal*)iter->
Next() ) != 0 ) result += I->getVal();
338 std::list<Double_t>* sumBinB = 0 ;
346 std::list<Double_t>* funcBinB = func->
binBoundaries(obs,xlo,xhi) ;
355 std::list<Double_t>* newSumBinB =
new std::list<Double_t>(sumBinB->size()+funcBinB->size()) ;
358 merge(funcBinB->begin(),funcBinB->end(),sumBinB->begin(),sumBinB->end(),newSumBinB->begin()) ;
363 sumBinB = newSumBinB ;
371 std::list<Double_t>::iterator new_end = unique(sumBinB->begin(),sumBinB->end()) ;
372 sumBinB->erase(new_end,sumBinB->end()) ;
402 std::list<Double_t>* sumHint = 0 ;
421 std::list<Double_t>* newSumHint =
new std::list<Double_t>(sumHint->size()+funcHint->size()) ;
424 merge(funcHint->begin(),funcHint->end(),sumHint->begin(),sumHint->end(),newSumHint->begin()) ;
428 sumHint = newSumHint ;
436 std::list<Double_t>::iterator new_end = unique(sumHint->begin(),sumHint->end()) ;
437 sumHint->erase(new_end,sumHint->end()) ;
virtual const char * GetName() const
Returns name of object.
TIterator * createIterator(Bool_t dir=kIterForward) const
static long int sum(long int i)
void printMetaArgs(std::ostream &os) const
virtual Bool_t add(const RooAbsCollection &col, Bool_t silent=kFALSE)
Add a collection of arguments to this collection by calling add() for each element in the source coll...
Bool_t dependsOn(const RooAbsCollection &serverList, const RooAbsArg *ignoreArg=0, Bool_t valueOnly=kFALSE) const
Test whether we depend on (ie, are served by) any object in the specified collection.
virtual Bool_t addOwned(RooAbsArg &var, Bool_t silent=kFALSE)
Add the specified argument to list.
Double_t getVal(const RooArgSet *set=0) const
virtual std::list< Double_t > * binBoundaries(RooAbsRealLValue &, Double_t, Double_t) const
virtual RooArgList containedArgs(Action)
Return list of all RooAbsArgs in cache element.
T * getObjByIndex(Int_t index) const
Double_t analyticalIntegral(Int_t code, const char *rangeName=0) const
Calculate integral internally from appropriate integral cache.
Iterator abstract base class.
virtual std::list< Double_t > * plotSamplingHint(RooAbsRealLValue &, Double_t, Double_t) const
T * getObj(const RooArgSet *nset, Int_t *sterileIndex=0, const TNamed *isetRangeName=0)
Double_t evaluate() const
Calculate and return current value of self.
virtual Bool_t add(const RooAbsArg &var, Bool_t silent=kFALSE)
Reimplementation of standard RooArgList::add()
virtual void enableOffsetting(Bool_t)
virtual Bool_t setData(RooAbsData &, Bool_t=kTRUE)
Bool_t setData(RooAbsData &data, Bool_t cloneData=kTRUE)
const RooArgSet * nset() const
RooAbsReal * createIntegral(const RooArgSet &iset, const RooCmdArg &arg1, const RooCmdArg &arg2=RooCmdArg::none(), const RooCmdArg &arg3=RooCmdArg::none(), const RooCmdArg &arg4=RooCmdArg::none(), const RooCmdArg &arg5=RooCmdArg::none(), const RooCmdArg &arg6=RooCmdArg::none(), const RooCmdArg &arg7=RooCmdArg::none(), const RooCmdArg &arg8=RooCmdArg::none()) const
Create an object that represents the integral of the function over one or more observables listed in ...
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &numVars, const char *rangeName=0) const
Interface function getAnalyticalIntergral advertises the analytical integrals that are supported...
static const TNamed * ptr(const char *stringPtr)
Return a unique TNamed pointer for given C++ string.
RooObjCacheManager _cacheMgr
virtual void enableOffsetting(Bool_t)
RooArgSet * getComponents() const
Bool_t isBinnedDistribution(const RooArgSet &obs) const
RooAbsCacheElement is the abstract base class for objects to be stored in RooAbsCache cache manager o...
RooAbsData is the common abstract base class for binned and unbinned datasets.
RooProduct a RooAbsReal implementation that represent the product of a given set of other RooAbsReal ...
virtual Double_t defaultErrorLevel() const
Return the default error level for MINUIT error analysis If the addition contains one or more RooNLLV...
virtual Bool_t isBinnedDistribution(const RooArgSet &) const
const RooNameSet * nameSet2ByIndex(Int_t index) const
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
RooFIter fwdIterator() const
RooArgSet * getParameters(const RooAbsData *data, Bool_t stripDisconnected=kTRUE) const
Create a list of leaf nodes in the arg tree starting with ourself as top node that don't match any of...
static RooMathCoreReg dummy
double func(double *x, double *p)
RooArgSet * select(const RooArgSet &list) const
Construct a RooArgSet of objects in input 'list' whose names match to those in the internal name list...
virtual std::list< Double_t > * plotSamplingHint(RooAbsRealLValue &, Double_t, Double_t) const
RooAbsRealLValue is the common abstract base class for objects that represent a real value that may a...
virtual Double_t defaultErrorLevel() const
virtual TObject * Next()=0
Int_t setObj(const RooArgSet *nset, T *obj, const TNamed *isetRangeName=0)
RooAddition calculates the sum of a set of RooAbsReal terms, or when constructed with two sets...
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
virtual std::list< Double_t > * binBoundaries(RooAbsRealLValue &, Double_t, Double_t) const