54 : _setIter( _set.createIterator() )
67 ,
_set(
"!set",
"set of components",this)
74 if (!dynamic_cast<RooAbsReal*>(comp)) {
76 <<
" is not of type RooAbsReal" << endl ;
96 ,
_set(
"!set",
"set of components",this)
105 std::unique_ptr<TIterator> inputIter1( sumSet1.
createIterator() );
106 std::unique_ptr<TIterator> inputIter2( sumSet2.
createIterator() );
108 while((comp1 = (
RooAbsArg*)inputIter1->Next())) {
109 if (!dynamic_cast<RooAbsReal*>(comp1)) {
111 <<
" in first list is not of type RooAbsReal" << endl ;
115 if (!dynamic_cast<RooAbsReal*>(comp2)) {
117 <<
" in first list is not of type RooAbsReal" << endl ;
123 _name.Append(comp1->GetName());
124 _name.Append(
"_x_");
125 _name.Append(comp2->GetName());
200 if (dynamic_cast<RooNLLVar*>(arg)) {
203 if (dynamic_cast<RooChi2Var*>(arg)) {
210 if (nllArg && !chi2Arg) {
212 <<
") Summation contains a RooNLLVar, using its error level" << endl ;
214 }
else if (chi2Arg && !nllArg) {
216 <<
") Summation contains a RooChi2Var, using its error level" << endl ;
218 }
else if (!nllArg && !chi2Arg) {
220 <<
"Summation contains neither RooNLLVar nor RooChi2Var server, using default level of 1.0" << endl ;
223 <<
"Summation contains BOTH RooNLLVar and RooChi2Var server, using default level of 1.0" << endl ;
268 if (!first) { os <<
" + " ;
281 analVars.
add(allVars);
284 Int_t sterileIndex(-1);
326 while ( ( I=(
RooAbsReal*)iter->
Next() ) != 0 ) result += I->getVal();
337 std::list<Double_t>* sumBinB = 0 ;
345 std::list<Double_t>* funcBinB = func->
binBoundaries(obs,xlo,xhi) ;
354 std::list<Double_t>* newSumBinB =
new std::list<Double_t>(sumBinB->size()+funcBinB->size()) ;
357 merge(funcBinB->begin(),funcBinB->end(),sumBinB->begin(),sumBinB->end(),newSumBinB->begin()) ;
362 sumBinB = newSumBinB ;
370 std::list<Double_t>::iterator new_end = unique(sumBinB->begin(),sumBinB->end()) ;
371 sumBinB->erase(new_end,sumBinB->end()) ;
401 std::list<Double_t>* sumHint = 0 ;
420 std::list<Double_t>* newSumHint =
new std::list<Double_t>(sumHint->size()+funcHint->size()) ;
423 merge(funcHint->begin(),funcHint->end(),sumHint->begin(),sumHint->end(),newSumHint->begin()) ;
427 sumHint = newSumHint ;
435 std::list<Double_t>::iterator new_end = unique(sumHint->begin(),sumHint->end()) ;
436 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
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