54 : _setIter( _set.createIterator() )
67 , _set(
"!set",
"set of components",this)
68 , _setIter( _set.createIterator() )
74 if (!dynamic_cast<RooAbsReal*>(comp)) {
76 <<
" is not of type RooAbsReal" << endl ;
96 , _set(
"!set",
"set of components",this)
97 , _setIter( _set.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());
125 _name.
Append(comp2->GetName());
144 , _set(
"!set",this,other._set)
145 , _setIter( _set.createIterator() )
146 , _cacheMgr(other._cacheMgr,this)
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()) ;
const RooArgSet * nset() const
virtual Double_t defaultErrorLevel() const
Return the default error level for MINUIT error analysis If the addition contains one or more RooNLLV...
virtual std::list< Double_t > * binBoundaries(RooAbsRealLValue &, Double_t, Double_t) const
virtual std::list< Double_t > * binBoundaries(RooAbsRealLValue &, Double_t, Double_t) const
Bool_t isBinnedDistribution(const RooArgSet &obs) const
virtual Bool_t isBinnedDistribution(const RooArgSet &) const
const RooNameSet * nameSet2ByIndex(Int_t index) const
virtual Bool_t addOwned(RooAbsArg &var, Bool_t silent=kFALSE)
Add the specified argument to list.
void printMetaArgs(std::ostream &os) const
RooFIter fwdIterator() const
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &numVars, const char *rangeName=0) const
Interface function getAnalyticalIntergral advertises the analytical integrals that are supported...
virtual RooArgList containedArgs(Action)
Return list of all RooAbsArgs in cache element.
Iterator abstract base class.
T * getObj(const RooArgSet *nset, Int_t *sterileIndex=0, const TNamed *isetRangeName=0)
std::map< std::string, std::string >::const_iterator iter
TIterator * createIterator(Bool_t dir=kIterForward) const
TString & Append(const char *cs)
Double_t analyticalIntegral(Int_t code, const char *rangeName=0) const
Calculate integral internally from appropriate integral cache.
Double_t getVal(const RooArgSet *set=0) const
virtual Bool_t add(const RooAbsArg &var, Bool_t silent=kFALSE)
Reimplementation of standard RooArgList::add()
virtual void enableOffsetting(Bool_t)
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...
virtual Bool_t setData(RooAbsData &, Bool_t=kTRUE)
Bool_t setData(RooAbsData &data, Bool_t cloneData=kTRUE)
Double_t evaluate() const
Calculate and return current value of self.
virtual Double_t defaultErrorLevel() const
static const TNamed * ptr(const char *stringPtr)
Return a unique TNamed pointer for given C++ string.
RooObjCacheManager _cacheMgr
virtual void enableOffsetting(Bool_t)
virtual const char * GetName() const
Returns name of object.
virtual std::list< Double_t > * plotSamplingHint(RooAbsRealLValue &, Double_t, Double_t) const
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
static RooMathCoreReg dummy
double func(double *x, double *p)
virtual std::list< Double_t > * plotSamplingHint(RooAbsRealLValue &, Double_t, Double_t) const
RooArgSet * getComponents() const
T * getObjByIndex(Int_t index) const
virtual TObject * Next()=0
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.
Int_t setObj(const RooArgSet *nset, T *obj, const TNamed *isetRangeName=0)
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
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 Bool_t add(const RooAbsArg &var, Bool_t silent=kFALSE)
Add element to non-owning set.
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 ...