93 _refCoefNorm(
"!refCoefNorm",
"Reference coefficient normalization set",this,
kFALSE,
kFALSE),
99 _allExtendable(false),
113 _refCoefNorm(
"!refCoefNorm",
"Reference coefficient normalization set",this,
kFALSE,
kFALSE),
114 _refCoefRangeName(0),
116 _projCacheMgr(this,10),
118 _pdfList(
"!pdfs",
"List of PDFs",this),
119 _coefList(
"!coefficients",
"List of coefficients",this),
137 _refCoefNorm(
"!refCoefNorm",
"Reference coefficient normalization set",this,
kFALSE,
kFALSE),
138 _refCoefRangeName(0),
140 _projCacheMgr(this,10),
142 _pdfList(
"!pdfs",
"List of PDFs",this),
143 _coefList(
"!coefficients",
"List of coefficients",this),
172 _refCoefNorm(
"!refCoefNorm",
"Reference coefficient normalization set",this,
kFALSE,
kFALSE),
173 _refCoefRangeName(0),
175 _projCacheMgr(this,10),
177 _pdfList(
"!pdfs",
"List of PDFs",this),
178 _coefList(
"!coefficients",
"List of coefficients",this),
181 _recursive(recursiveFractions)
184 std::stringstream errorMsg;
185 errorMsg <<
"RooAddPdf::RooAddPdf(" <<
GetName()
186 <<
") number of pdfs and coefficients inconsistent, must have Npdf=Ncoef or Npdf=Ncoef+1." << endl ;
187 coutE(InputArguments) << errorMsg.str();
188 throw std::invalid_argument(errorMsg.str().c_str());
191 if (recursiveFractions && inPdfList.
getSize()!=inCoefList.
getSize()+1) {
192 std::stringstream errorMsg;
193 errorMsg <<
"RooAddPdf::RooAddPdf(" <<
GetName()
194 <<
"): Recursive fractions option can only be used if Npdf=Ncoef+1." << endl;
195 coutE(InputArguments) << errorMsg.str();
196 throw std::invalid_argument(errorMsg.str());
204 for (
auto i = 0u; i < inCoefList.
size(); ++i) {
205 auto coef =
dynamic_cast<RooAbsReal*
>(inCoefList.
at(i));
206 auto pdf =
dynamic_cast<RooAbsPdf*
>(inPdfList.
at(i));
207 if (inPdfList.
at(i) ==
nullptr) {
208 std::stringstream errorMsg;
209 errorMsg <<
"RooAddPdf::RooAddPdf(" <<
GetName()
210 <<
") number of pdfs and coefficients inconsistent, must have Npdf=Ncoef or Npdf=Ncoef+1" << endl ;
211 coutE(InputArguments) << errorMsg.str();
212 throw std::invalid_argument(errorMsg.str());
215 std::stringstream errorMsg;
216 errorMsg <<
"RooAddPdf::RooAddPdf(" <<
GetName() <<
") coefficient " << (coef ? coef->GetName() :
"") <<
" is not of type RooAbsReal, ignored" << endl ;
217 coutE(InputArguments) << errorMsg.str();
218 throw std::invalid_argument(errorMsg.str());
221 std::stringstream errorMsg;
222 errorMsg <<
"RooAddPdf::RooAddPdf(" <<
GetName() <<
") pdf " << (pdf ? pdf->GetName() :
"") <<
" is not of type RooAbsPdf, ignored" << endl ;
223 coutE(InputArguments) << errorMsg.str();
224 throw std::invalid_argument(errorMsg.str());
229 if (recursiveFractions) {
230 partinCoefList.
add(*coef) ;
251 if (inPdfList.
size() == inCoefList.
size() + 1) {
255 coutE(InputArguments) <<
"RooAddPdf::RooAddPdf(" <<
GetName() <<
") last argument " << inPdfList.
at(inCoefList.
size())->
GetName() <<
" is not of type RooAbsPdf." << endl ;
256 throw std::invalid_argument(
"Last argument for RooAddPdf is not a PDF.");
261 if (recursiveFractions) {
294 _refCoefNorm(
"!refCoefNorm",
"Reference coefficient normalization set",this,
kFALSE,
kFALSE),
295 _refCoefRangeName(0),
297 _projCacheMgr(this,10),
298 _pdfList(
"!pdfs",
"List of PDFs",this),
299 _coefList(
"!coefficients",
"List of coefficients",this),
301 _allExtendable(
kTRUE),
305 for (
const auto pdfArg : inPdfList) {
306 auto pdf =
dynamic_cast<const RooAbsPdf*
>(pdfArg);
309 coutE(InputArguments) <<
"RooAddPdf::RooAddPdf(" <<
GetName() <<
") pdf " << (pdf ? pdf->GetName() :
"") <<
" is not of type RooAbsPdf, ignored" << endl ;
312 if (!pdf->canBeExtended()) {
313 coutE(InputArguments) <<
"RooAddPdf::RooAddPdf(" <<
GetName() <<
") pdf " << pdf->
GetName() <<
" is not extendable, ignored" << endl ;
332 _refCoefNorm(
"!refCoefNorm",this,other._refCoefNorm),
333 _refCoefRangeName((
TNamed*)other._refCoefRangeName),
334 _projectCoefs(other._projectCoefs),
335 _projCacheMgr(other._projCacheMgr,this),
336 _codeReg(other._codeReg),
337 _pdfList(
"!pdfs",this,other._pdfList),
338 _coefList(
"!coefficients",this,other._coefList),
339 _haveLastCoef(other._haveLastCoef),
340 _allExtendable(other._allExtendable),
341 _recursive(other._recursive)
372 if (refCoefNorm.
getSize()==0) {
445 RooArgSet* pdfDeps = pdf->getObservables(nset) ;
452 RooArgSet* coefDeps = coef ? coef->getObservables(nset) : 0 ;
461 name.Append(pdf->GetName()) ;
462 name.Append(
"_SupNorm") ;
466 cxcoutD(Caching) <<
"RooAddPdf " <<
GetName() <<
" making supplemental normalization set " << supNSet <<
" for pdf component " << pdf->
GetName() << endl ;
469 snorm =
new RooRealVar(
name,
"Unit Supplemental normalization integral",1.0) ;
477 cxcoutD(Caching) <<
"RooAddPdf::syncSuppNormList(" <<
GetName() <<
") synching supplemental normalization list for norm" << (nset?*nset:
RooArgSet()) << endl ;
502 cxcoutD(Caching) <<
"RooAddPdf(" <<
GetName() <<
")::getPC nset = " << (nset?*nset:
RooArgSet()) <<
" nset2 = " << *nset2 << endl ;
517 cxcoutD(Caching) <<
"ALEX: RooAddPdf::syncCoefProjList(" <<
GetName() <<
") projecting coefficients from "
518 << *nset2 << (rangeName?
":":
"") << (rangeName?rangeName:
"")
523 auto thePdf =
static_cast<const RooAbsPdf*
>(arg);
530 cxcoutD(Caching) <<
"RooAddPdf(" <<
GetName() <<
")::getPC nset2(" << *nset2 <<
")!=_refCoefNorm(" <<
_refCoefNorm <<
") --> pdfProj = " << pdfProj->
GetName() << endl ;
534 name.Append(thePdf->GetName()) ;
535 name.Append(
"_ProjectNorm") ;
536 pdfProj =
new RooRealVar(
name,
"Unit Projection normalization integral",1.0) ;
537 cxcoutD(Caching) <<
"RooAddPdf(" <<
GetName() <<
")::getPC nset2(" << *nset2 <<
")==_refCoefNorm(" <<
_refCoefNorm <<
") --> pdfProj = " << pdfProj->
GetName() << endl ;
541 cxcoutD(Caching) <<
" RooAddPdf::syncCoefProjList(" <<
GetName() <<
") PP = " << pdfProj->
GetName() << endl ;
552 name.Append(thePdf->GetName()) ;
553 name.Append(
"_ProjSupNorm") ;
558 snorm =
new RooRealVar(
name,
"Unit Projection Supplemental normalization integral",1.0) ;
560 cxcoutD(Caching) <<
" RooAddPdf::syncCoefProjList(" <<
GetName() <<
") SN = " << snorm->
GetName() << endl ;
605 theName.
Append(thePdf->GetName()) ;
606 theName.
Append(
"_RangeNorm1") ;
607 rangeProj1 =
new RooRealVar(theName,
"Unit range normalization integral",1.0) ;
610 cxcoutD(Caching) <<
" RooAddPdf::syncCoefProjList(" <<
GetName() <<
") R1 = " << rangeProj1->
GetName() << endl ;
616 cxcoutD(Caching) <<
"RooAddPdf::syncCoefProjList(" <<
GetName() <<
") rangename = " << (rangeName?rangeName:
"<null>")
617 <<
" nset = " << (nset?*nset:
RooArgSet()) << endl ;
633 theName.
Append(thePdf->GetName()) ;
634 theName.
Append(
"_RangeNorm2") ;
635 rangeProj2 =
new RooRealVar(theName,
"Unit range normalization integral",1.0) ;
638 cxcoutD(Caching) <<
" RooAddPdf::syncCoefProjList(" <<
GetName() <<
") R2 = " << rangeProj2->
GetName() << endl ;
662 auto& myCoefCache =
const_cast<std::vector<double>&
>(
_coefCache);
674 coefSum += myCoefCache[i] ;
679 coutW(Eval) <<
"RooAddPdf::updateCoefCache(" <<
GetName() <<
") WARNING: total number of expected events is 0" << endl ;
682 myCoefCache[j] /= coefSum ;
693 auto coef =
static_cast<RooAbsReal*
>(coefArg);
694 myCoefCache[i] = coef->
getVal(nset) ;
695 coefSum += myCoefCache[i++];
698 coutW(Eval) <<
"RooAddPdf::updateCoefCache(" <<
GetName() <<
") WARNING: sum of coefficients is zero 0" << endl ;
700 const double invCoefSum = 1./coefSum;
702 myCoefCache[j] *= invCoefSum;
711 auto coef =
static_cast<RooAbsReal*
>(coefArg);
712 myCoefCache[i] = coef->
getVal(nset) ;
713 lastCoef -= myCoefCache[i++];
718 const float coefDegen = lastCoef < 0. ? -lastCoef : (lastCoef > 1. ? lastCoef - 1. : 0.);
719 if (coefDegen > 1.E-5) {
722 std::stringstream msg;
724 msg <<
"RooAddPdf::updateCoefCache(" <<
GetName()
725 <<
" WARNING: sum of PDF coefficients not in range [0-1], value="
728 msg <<
" (no more will be printed)" ;
730 coutW(Eval) << msg.str() << std::endl;
756 myCoefCache[i] *= proj ;
757 coefSum += myCoefCache[i] ;
764 ccoutD(Caching) <<
" ALEX: POST-SYNC coef[" << i <<
"] = " << myCoefCache[i]
765 <<
" ( _coefCache[i]/coefSum = " << myCoefCache[i]*coefSum <<
"/" << coefSum <<
" ) "<< endl ;
770 coutE(Eval) <<
"RooAddPdf::updateCoefCache(" <<
GetName() <<
") sum of coefficients is zero." << endl ;
774 myCoefCache[i] /= coefSum ;
787 if(nset && nset->
empty()) nset =
nullptr;
789 if (nset ==
nullptr) {
811 if(nset ==
nullptr) {
819 if (nset ==
nullptr) {
820 oocoutW(
this, Eval) <<
"Evaluating RooAddPdf without a defined normalization set. This can lead to ambiguos "
821 "coefficients definition and incorrect results."
822 <<
" Use RooAddPdf::fixCoefNormalization(nset) to provide a normalization set for "
823 "defining uniquely RooAddPdf coefficients!"
832 return {nset, cache};
850 double snormVal = 1.;
856 if (pdf.isSelectedComp()) {
875 for (
unsigned int pdfNo = 0; pdfNo <
_pdfList.
size(); ++pdfNo) {
877 auto pdfOutputs = pdf.
getValues(evalData, nset);
880 for (
double& val :
output) {
884 assert(
output.size() == pdfOutputs.size());
890 if (pdf.isSelectedComp()) {
891 for (std::size_t i = 0; i <
output.size(); ++i) {
892 output[i] += pdfOutputs[i] * coef;
924 for (
int i = 0; i < end; ++i) {
927 if (pdf->observableOverlaps(nset,*coef)) {
928 coutE(InputArguments) <<
"RooAddPdf::checkObservables(" <<
GetName() <<
"): ERROR: coefficient " << coef->
GetName()
929 <<
" and PDF " << pdf->GetName() <<
" have one or more dependents in common" << endl ;
949 const RooArgSet* normSet,
const char* rangeName)
const
959 for (
const auto pdfArg :
_pdfList) {
960 auto pdf =
static_cast<const RooAbsPdf *
>(pdfArg);
962 pdf->getAnalyticalIntegralWN(allVars,subAnalVars,normSet,rangeName) ;
965 for (
const auto arg : allVars) {
966 if (!subAnalVars.
find(arg->GetName()) && pdf->
dependsOn(*arg)) {
974 if (allAnalVars.
getSize()==0) {
984 auto pdf =
static_cast<const RooAbsPdf *
>(arg);
986 RooArgSet* allAnalVars2 = pdf->getObservables(allAnalVars) ;
987 subCode[
n] = pdf->getAnalyticalIntegralWN(*allAnalVars2,subAnalVars,normSet,rangeName) ;
988 if (subCode[
n]==0 && allAnalVars2->
getSize()>0) {
989 coutE(InputArguments) <<
"RooAddPdf::getAnalyticalIntegral(" <<
GetName() <<
") WARNING: component PDF " << pdf->
GetName()
990 <<
" advertises inconsistent set of integrals (e.g. (X,Y) but not X or Y individually."
991 <<
" Distributed analytical integration disabled. Please fix PDF" << endl ;
994 delete allAnalVars2 ;
1002 analVars.
add(allAnalVars) ;
1026 if (subCode.empty()) {
1027 coutE(InputArguments) <<
"RooAddPdf::analyticalIntegral(" <<
GetName() <<
"): ERROR unrecognized integration code, " << code << endl ;
1031 cxcoutD(Caching) <<
"RooAddPdf::aiWN(" <<
GetName() <<
") calling getProjCache with nset = " << (normSet?*normSet:
RooArgSet()) << endl ;
1056 Double_t val = pdf->analyticalIntegralWN(subCode[i],normSet,rangeName) ;
1057 if (pdf->isSelectedComp()) {
1077 cxcoutD(Caching) <<
"RooAddPdf::expectedEvents(" <<
GetName() <<
") calling getProjCache with nset = " << (nset?*nset:
RooArgSet()) << endl ;
1127 expectedTotal += ncomp ;
1133 return expectedTotal ;
1209 list<Double_t>* sumHint = 0 ;
1214 auto pdf =
static_cast<const RooAbsPdf*
>(arg);
1227 list<Double_t>* newSumHint =
new list<Double_t>(sumHint->size()+pdfHint->size()) ;
1230 merge(pdfHint->begin(),pdfHint->end(),sumHint->begin(),sumHint->end(),newSumHint->begin()) ;
1234 sumHint = newSumHint ;
1241 list<Double_t>::iterator new_end = unique(sumHint->begin(),sumHint->end()) ;
1242 sumHint->erase(new_end,sumHint->end()) ;
1254 list<Double_t>* sumBinB = 0 ;
1259 auto pdf =
static_cast<const RooAbsPdf *
>(arg);
1271 list<Double_t>* newSumBinB =
new list<Double_t>(sumBinB->size()+pdfBinB->size()) ;
1274 merge(pdfBinB->begin(),pdfBinB->end(),sumBinB->begin(),sumBinB->end(),newSumBinB->begin()) ;
1279 sumBinB = newSumBinB ;
1287 list<Double_t>::iterator new_end = unique(sumBinB->begin(),sumBinB->end()) ;
1288 sumBinB->erase(new_end,sumBinB->end()) ;
1300 auto pdf =
static_cast<const RooAbsPdf*
>(arg);
1301 if (pdf->dependsOn(obs) && !pdf->isBinnedDistribution(obs)) {
1317 while ((aarg=aiter.
next())) {
1319 trackNodes.
add(*aarg) ;
1348 os <<
"[%] * " << pdf->
GetName();
1359 os << pdf->GetName() ;
char * Form(const char *fmt,...)
const std::vector< Int_t > & retrieve(Int_t masterCode) const
Retrieve the array of integer codes associated with the given master code.
Int_t store(const std::vector< Int_t > &codeList, RooArgSet *set1=0, RooArgSet *set2=0, RooArgSet *set3=0, RooArgSet *set4=0)
Store given arrays of integer codes, and up to four RooArgSets in the registry (each setX pointer may...
RooAbsArg is the common abstract base class for objects that represent a value and a "shape" in RooFi...
RooArgSet * getObservables(const RooArgSet &set, Bool_t valueOnly=kTRUE) const
Given a set of possible observables, return the observables that this PDF depends on.
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 CacheMode canNodeBeCached() const
void setOperMode(OperMode mode, Bool_t recurseADirty=kTRUE)
Set the operation mode of this node.
Bool_t addOwnedComponents(const RooArgSet &comps)
Take ownership of the contents of 'comps'.
OperMode operMode() const
Query the operation mode of this node.
virtual Bool_t addOwned(RooAbsArg &var, Bool_t silent=kFALSE)
Add the specified argument to list.
RooFIter fwdIterator() const
One-time forward iterator.
virtual Bool_t add(const RooAbsArg &var, Bool_t silent=kFALSE)
Add the specified argument to list.
Storage_t::size_type size() const
RooAbsArg * first() const
virtual void Print(Option_t *options=0) const
This method must be overridden when a class wants to print itself.
Bool_t equals(const RooAbsCollection &otherColl) const
Check if this and other collection have identically-named contents.
const char * GetName() const
Returns name of object.
virtual Bool_t remove(const RooAbsArg &var, Bool_t silent=kFALSE, Bool_t matchByNameOnly=kFALSE)
Remove the specified argument from our list.
TIterator * createIterator(Bool_t dir=kIterForward) const
TIterator-style iteration over contained elements.
RooAbsArg * find(const char *name) const
Find object with given name in list.
RooAbsGenContext is the abstract base class for generator contexts of RooAbsPdf objects.
RooSpan< const double > getValues(RooBatchCompute::RunContext &evalData, const RooArgSet *normSet) const
Compute batch of values for given input data, and normalise by integrating over the observables in no...
virtual void resetErrorCounters(Int_t resetValue=10)
Reset error counter to given value, limiting the number of future error messages for this pdf to 'res...
TString _normRange
MC generator configuration specific for this object.
RooArgSet const * _normSet
Normalization integral (owned by _normMgr)
friend class RooRealIntegral
virtual Double_t expectedEvents(const RooArgSet *nset) const
Return expected number of events from this p.d.f for use in extended likelihood calculations.
static Int_t _verboseEval
RooAbsRealLValue is the common abstract base class for objects that represent a real value that may a...
virtual Double_t getMax(const char *name=0) const
Get maximum of currently defined range.
virtual Double_t getMin(const char *name=0) const
Get miniminum of currently defined range.
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
virtual std::list< Double_t > * binBoundaries(RooAbsRealLValue &obs, Double_t xlo, Double_t xhi) const
Retrieve bin boundaries if this distribution is binned in obs.
Double_t getVal(const RooArgSet *normalisationSet=nullptr) const
Evaluate object.
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 ...
virtual std::list< Double_t > * plotSamplingHint(RooAbsRealLValue &obs, Double_t xlo, Double_t xhi) const
Interface for returning an optional hint for initial sampling points when constructing a curve projec...
Transient cache with transformed values of coefficients.
virtual RooArgList containedArgs(Action)
List all RooAbsArg derived contents in this cache element.
RooArgList _rangeProjList
RooArgList _refRangeProjList
RooAddPdf is an efficient implementation of a sum of PDFs of the form.
virtual void resetErrorCounters(Int_t resetValue=10)
Reset error counter to given value, limiting the number of future error messages for this pdf to 'res...
friend class RooAddGenContext
virtual void setCacheAndTrackHints(RooArgSet &)
Label OK'ed components of a RooAddPdf with cache-and-track.
virtual Double_t expectedEvents(const RooArgSet *nset) const
Return the number of expected events, which is either the sum of all coefficients or the sum of the c...
std::pair< const RooArgSet *, CacheElem * > getNormAndCache(const RooArgSet *defaultNorm=nullptr) const
Look up projection cache and per-PDF norm sets.
std::unique_ptr< const RooArgSet > _copyOfLastNormSet
Bool_t isBinnedDistribution(const RooArgSet &obs) const
If all components that depend on obs are binned, so is their sum.
virtual void selectNormalizationRange(const char *rangeName=0, Bool_t force=kFALSE)
Interface function used by test statistics to freeze choice of range for interpretation of fraction c...
Double_t evaluate() const
Calculate and return the current value.
void updateCoefficients(CacheElem &cache, const RooArgSet *nset) const
Update the coefficient values in the given cache element: calculate new remainder fraction,...
virtual ~RooAddPdf()
Destructor.
CacheElem * getProjCache(const RooArgSet *nset, const RooArgSet *iset=0, const char *rangeName=0) const
Retrieve cache element for the computation of the PDF normalisation.
RooObjCacheManager _projCacheMgr
RooArgSet const * _pointerToLastUsedNormSet
void printMetaArgs(std::ostream &os) const
Customized printing of arguments of a RooAddPdf to more intuitively reflect the contents of the produ...
RooAddPdf()
Default constructor used for persistence.
virtual std::list< Double_t > * plotSamplingHint(RooAbsRealLValue &obs, Double_t xlo, Double_t xhi) const
Loop over components for plot sampling hints and merge them if there are multiple.
virtual std::list< Double_t > * binBoundaries(RooAbsRealLValue &, Double_t, Double_t) const
Loop over components for plot sampling hints and merge them if there are multiple.
void fixCoefNormalization(const RooArgSet &refCoefNorm)
By default the interpretation of the fraction coefficients is performed in the contextual choice of o...
virtual RooAbsGenContext * genContext(const RooArgSet &vars, const RooDataSet *prototype=0, const RooArgSet *auxProto=0, Bool_t verbose=kFALSE) const
Return specialized context to efficiently generate toy events from RooAddPdfs return RooAbsPdf::genCo...
Double_t analyticalIntegralWN(Int_t code, const RooArgSet *normSet, const char *rangeName=0) const
Return analytical integral defined by given scenario code.
RooSpan< double > evaluateSpan(RooBatchCompute::RunContext &evalData, const RooArgSet *normSet) const
Compute addition of PDFs in batches.
virtual void selectNormalization(const RooArgSet *depSet=0, Bool_t force=kFALSE)
Interface function used by test statistics to freeze choice of observables for interpretation of frac...
void fixCoefRange(const char *rangeName)
By default, fraction coefficients are assumed to refer to the default fit range.
RooListProxy _pdfList
Registry of component analytical integration codes.
TNamed * _refCoefRangeName
const RooArgList & pdfList() const
Int_t getAnalyticalIntegralWN(RooArgSet &allVars, RooArgSet &numVars, const RooArgSet *normSet, const char *rangeName=0) const
Determine which part (if any) of given integral can be performed analytically.
std::vector< double > _coefCache
Bool_t _haveLastCoef
List of supplemental normalization factors.
virtual Bool_t checkObservables(const RooArgSet *nset) const
Check if PDF is valid for given normalization set.
RooArgList is a container object that can hold multiple RooAbsArg objects.
RooAbsArg * at(Int_t idx) const
Return object at given index, or nullptr if index is out of range.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Bool_t add(const RooAbsArg &var, Bool_t silent=kFALSE) override
Add element to non-owning set.
T * getObj(const RooArgSet *nset, Int_t *sterileIndex=0, const TNamed *isetRangeName=0)
void reset()
Clear the cache.
Int_t setObj(const RooArgSet *nset, T *obj, const TNamed *isetRangeName=0)
RooDataSet is a container class to hold unbinned data.
A one-time forward iterator working on RooLinkedList or RooAbsCollection.
RooAbsArg * next()
Return next element or nullptr if at end.
virtual Bool_t add(const RooAbsArg &var, Bool_t silent=kFALSE) override
Reimplementation of standard RooArgList::add()
static RooMsgService & instance()
Return reference to singleton instance.
Bool_t isActive(const RooAbsArg *self, RooFit::MsgTopic facility, RooFit::MsgLevel level)
Check if logging is active for given object/topic/RooFitMsgLevel combination.
static const char * str(const TNamed *ptr)
Return C++ string corresponding to given TNamed pointer.
static const TNamed * ptr(const char *stringPtr)
Return a unique TNamed pointer for given C++ string.
static RooConstVar & value(Double_t value)
Return a constant value object with given value.
RooRealVar represents a variable that can be changed from the outside.
Class RooRecursiveFraction is a RooAbsReal implementation that calculates the plain fraction of sum o...
virtual Bool_t add(const RooAbsArg &var, Bool_t silent=kFALSE) override
Overloaded RooArgSet::add() method inserts 'var' into set and registers 'var' as server to owner with...
virtual void removeAll() override
Remove all argument inset using remove(const RooAbsArg&).
A simple container to hold a batch of data values.
Iterator abstract base class.
virtual TObject * Next()=0
The TNamed class is the base class for all named ROOT classes.
virtual const char * GetName() const
Returns name of object.
const char * Data() const
TString & Append(const char *cs)
RooConstVar & RooConst(Double_t val)
This struct enables passing computation data around between elements of a computation graph.
RooSpan< double > makeBatch(const RooAbsReal *owner, std::size_t size)
Create a writable batch.
static double packFloatIntoNaN(float payload)
Pack float into mantissa of a NaN.
static void output(int code)