139 RooAbsArg(
name,title), _plotMin(0), _plotMax(0), _plotBins(100),
140 _value(0), _unit(unit), _forceNumInt(
kFALSE), _specIntegratorConfig(0), _treeVar(
kFALSE), _selectComp(
kTRUE), _lastNSet(0)
153 Double_t inMaxVal,
const char *unit) :
154 RooAbsArg(
name,title), _plotMin(inMinVal), _plotMax(inMaxVal), _plotBins(100),
155 _value(0), _unit(unit), _forceNumInt(
kFALSE), _specIntegratorConfig(0), _treeVar(
kFALSE), _selectComp(
kTRUE), _lastNSet(0)
167 RooAbsArg(other,
name), _plotMin(other._plotMin), _plotMax(other._plotMax),
168 _plotBins(other._plotBins), _value(other._value), _unit(other._unit), _label(other._label),
169 _forceNumInt(other._forceNumInt), _treeVar(other._treeVar), _selectComp(other._selectComp), _lastNSet(0)
221 return (
getVal()==value) ;
241 if (!assumeSameType) {
257 if(appendUnit && 0 != strlen(
getUnit())) {
324 <<
"): validation failed: " << value << endl ;
344 const RooArgSet* ,
const char* rangeName)
const
375 if (code==0)
return getVal(normSet) ;
389 coutF(
Eval) <<
"RooAbsReal::analyticalIntegral(" <<
GetName() <<
") code " << code <<
" not implemented" << endl ;
450 os <<
indent <<
"--- RooAbsReal ---" << endl;
539 pc.defineString(
"rangeName",
"RangeWithName",0,
"",
kTRUE) ;
540 pc.defineObject(
"normSet",
"NormSet",0,0) ;
541 pc.defineObject(
"numIntConfig",
"NumIntConfig",0,0) ;
544 pc.process(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8) ;
550 const char* rangeName =
pc.getString(
"rangeName",0,
kTRUE) ;
575 if (!rangeName || strchr(rangeName,
',')==0) {
589 components.
add(*compIntegral) ;
594 title.
Prepend(
"Integral of ") ;
623 title.
Prepend(
"Integral of ") ;
648 title.
Prepend(
"Integral of ") ;
657 if (integrand !=
this) {
665 if (integrand ==
this && iset.
getSize()>0) {
666 coutI(
Integration) <<
GetName() <<
" : multidimensional integration over observables with parameterized ranges in terms of other integrated observables detected, using recursive integration strategy to construct final integral" << endl ;
670 integrand = integral ;
678 coutE(
Integration) <<
GetName() <<
" : ERROR while defining recursive integral over observables with parameterized integration ranges, please check that integration rangs specify uniquely defined integral " << endl;
687 if (cacheParamsStr && strlen(cacheParamsStr)) {
695 if (cacheParams->
getSize()>0) {
697 <<
"-dim value cache for integral over " << iset2 <<
" as a function of " << *cacheParams <<
" in range " << (rangeName?rangeName:
"<none>") << endl ;
707 integral = cachedIntegral ;
738 for (
const auto aarg : allObs) {
751 obsWithParamRange.
add(*aarg) ;
752 obsWithFixedRange.
remove(*aarg) ;
753 obsServingAsRangeParams.
add(*loBoundObs,
kFALSE) ;
754 obsServingAsRangeParams.
add(*hiBoundObs,
kFALSE) ;
763 RooArgSet obsWithFixedRangeNP(obsWithFixedRange) ;
764 obsWithFixedRangeNP.
remove(obsServingAsRangeParams) ;
767 RooArgSet obsWithParamRangeNP(obsWithParamRange) ;
768 obsWithParamRangeNP.
remove(obsServingAsRangeParams) ;
772 innerObs.
add(obsWithFixedRangeNP) ;
773 innerObs.
add(obsWithParamRangeNP) ;
790 name.Append(
"_Int[") ;
805 name.Append(rangeName) ;
808 }
else if (!omitEmpty) {
809 name.Append(
"_Int[]") ;
812 if (nset && nset->
getSize()>0 ) {
817 name.Append(
"_Norm[") ;
908 assert(0 != dependentIterator);
913 <<
"\" of wrong type: " << arg->
ClassName() << endl;
914 delete dependentIterator;
921 <<
"\" is not a dependent and will be ignored." << endl;
926 leafNodes.
replace(*found,*arg);
928 leafNodes.
add(*arg) ;
938 leafNodes.
add(*lvs) ;
947 if(0 != projectedVars && projectedVars->
find(arg->
GetName())) {
949 <<
"\" cannot be both a dependent and a projected variable." << endl;
950 delete dependentIterator;
956 if(0 != projectedVars) leafNodes.
remove(*projectedVars,
kTRUE);
961 coutE(
Plotting) <<
"RooAbsPdf::createPlotProjection(" <<
GetName() <<
") Couldn't deep-clone PDF, abort," << endl ;
974 delete plotLeafNodes ;
978 if(0 != projectedVars) normSet.
add(*projectedVars);
987 if(0 == projectedVars) projectedVars= ∅
993 title.
Prepend(
"Projection of ");
998 if(0 == projected || !projected->
isValid()) {
1002 if(0 != projected)
delete projected;
1003 delete dependentIterator;
1018 delete dependentIterator;
1054 if(hdim != plotVars.
getSize()) {
1063 for(
Int_t index= 0; index < plotVars.
getSize(); index++) {
1068 <<
"\" of type " << var->
ClassName() << endl;
1073 <<
":fillHistogram: WARNING: variable is not an explicit dependent: " << realVar->
GetName() << endl;
1089 if (projectedVars) {
1090 allDeps.
add(*projectedVars) ;
1104 Int_t xbins(0),ybins(1),zbins(1);
1116 assert(0 != zvar && 0 != zaxis);
1117 if (scaleForDensity) {
1125 assert(0 != yvar && 0 != yaxis);
1126 if (scaleForDensity) {
1134 assert(0 != xvar && 0 != xaxis);
1135 if (scaleForDensity) {
1141 << hdim <<
" dimensions" << endl;
1148 Int_t xbin(0),ybin(0),zbin(0);
1149 Int_t bins= xbins*ybins*zbins;
1150 for(
Int_t bin= 0; bin < bins; bin++) {
1153 if(bin % (xbins*ybins) == 0) {
1159 if(bin % xbins == 0) {
1160 ybin= (ybin%ybins) + 1;
1165 xbin= (xbin%xbins) + 1;
1175 coutW(
Plotting) <<
"WARNING: Function evaluation error(s) at coordinates [x]=" << xvar->
getVal() ;
1248 if (showProgress && (i%onePct==0)) {
1252 Double_t binVal = theClone->
getVal(normSet?normSet:obs)*scaleFactor ;
1253 if (correctForBinSize) {
1285 strlcpy(buf,varNameList,1024) ;
1286 char* varName = strtok(buf,
",:") ;
1291 varName = strtok(0,
",") ;
1293 varName = strtok(0,
",") ;
1385 pc.defineInt(
"scaling",
"Scaling",0,1) ;
1386 pc.defineInt(
"intBinning",
"IntrinsicBinning",0,2) ;
1387 pc.defineInt(
"extended",
"Extended",0,2) ;
1389 pc.defineObject(
"compSet",
"SelectCompSet",0) ;
1390 pc.defineString(
"compSpec",
"SelectCompSpec",0) ;
1391 pc.defineSet(
"projObs",
"ProjectedObservables",0,0) ;
1392 pc.defineObject(
"yvar",
"YVar",0,0) ;
1393 pc.defineObject(
"zvar",
"ZVar",0,0) ;
1394 pc.defineMutex(
"SelectCompSet",
"SelectCompSpec") ;
1395 pc.defineMutex(
"IntrinsicBinning",
"Binning") ;
1396 pc.defineMutex(
"IntrinsicBinning",
"BinningName") ;
1397 pc.defineMutex(
"IntrinsicBinning",
"BinningSpec") ;
1398 pc.allowUndefined() ;
1401 pc.process(argList) ;
1419 Bool_t doScaling =
pc.getInt(
"scaling") ;
1420 Int_t doIntBinning =
pc.getInt(
"intBinning") ;
1421 Int_t doExtended =
pc.getInt(
"extended") ;
1425 if (!pdfSelf && doExtended>0) {
1426 coutW(
InputArguments) <<
"RooAbsReal::createHistogram(" <<
GetName() <<
") WARNING extended mode requested for a non-pdf object, ignored" << endl ;
1430 coutW(
InputArguments) <<
"RooAbsReal::createHistogram(" <<
GetName() <<
") WARNING extended mode requested for a non-extendable pdf, ignored" << endl ;
1433 if (pdfSelf && doExtended==2) {
1437 const char* compSpec =
pc.getString(
"compSpec") ;
1439 Bool_t haveCompSel = ( (compSpec && strlen(compSpec)>0) || compSet) ;
1442 if (doIntBinning>0) {
1447 if (doIntBinning==1) {
1449 <<
") WARNING, intrinsic model binning requested for histogram, but model does not define bin boundaries, reverting to default binning"<< endl ;
1452 if (doIntBinning==2) {
1454 <<
") INFO: Model has intrinsic binning definition, selecting that binning for the histogram"<< endl ;
1457 for (list<double>::iterator it=bl->begin() ; it!=bl->end() ; ++it) { ba[i++] = *it ; }
1458 intBinning =
new RooBinning(bl->size()-1,ba) ;
1464 pc.stripCmdList(argListCreate,
"Scaling,ProjectedObservables,IntrinsicBinning,SelectCompSet,SelectCompSpec,Extended") ;
1469 argListCreate.
Add(&tmp) ;
1488 branchNodeSet.
remove(*arg) ;
1499 if (dirSelNodes->
getSize()>0) {
1500 coutI(
Plotting) <<
"RooAbsPdf::createHistogram(" <<
GetName() <<
") directly selected PDF components: " << *dirSelNodes << endl ;
1506 coutE(
Plotting) <<
"RooAbsPdf::createHistogram(" <<
GetName() <<
") ERROR: component selection set " << *compSet <<
" does not match any components of p.d.f." << endl ;
1508 coutE(
Plotting) <<
"RooAbsPdf::createHistogram(" <<
GetName() <<
") ERROR: component selection expression '" << compSpec <<
"' does not select any components of p.d.f." << endl ;
1512 delete dirSelNodes ;
1551 branchNodeSet.
remove(*arg) ;
1592 selNodes->
add(tmp) ;
1593 coutI(
Plotting) <<
"RooAbsPdf::plotOn(" <<
GetName() <<
") indirectly selected PDF components: " << tmp << endl ;
1733 argList.
Add(&rnorm) ;
1735 list<string> rlist ;
1740 char* oneRange = strtok(buf,
",") ;
1742 rlist.push_back(oneRange) ;
1743 oneRange = strtok(0,
",") ;
1746 for (list<string>::iterator riter=rlist.begin() ; riter!=rlist.end() ; ++riter) {
1757 pc.defineString(
"drawOption",
"DrawOption",0,
"L") ;
1758 pc.defineString(
"projectionRangeName",
"ProjectionRange",0,
"",
kTRUE) ;
1759 pc.defineString(
"curveNameSuffix",
"CurveNameSuffix",0,
"") ;
1760 pc.defineString(
"sliceCatState",
"SliceCat",0,
"",
kTRUE) ;
1761 pc.defineDouble(
"scaleFactor",
"Normalization",0,1.0) ;
1762 pc.defineObject(
"sliceSet",
"SliceVars",0) ;
1763 pc.defineObject(
"sliceCatList",
"SliceCat",0,0,
kTRUE) ;
1764 pc.defineObject(
"projSet",
"Project",0) ;
1765 pc.defineObject(
"asymCat",
"Asymmetry",0) ;
1766 pc.defineDouble(
"precision",
"Precision",0,1
e-3) ;
1767 pc.defineDouble(
"evalErrorVal",
"EvalErrorValue",0,0) ;
1768 pc.defineInt(
"doEvalError",
"EvalErrorValue",0,0) ;
1769 pc.defineInt(
"shiftToZero",
"ShiftToZero",0,0) ;
1770 pc.defineObject(
"projDataSet",
"ProjData",0) ;
1771 pc.defineObject(
"projData",
"ProjData",1) ;
1772 pc.defineObject(
"errorFR",
"VisualizeError",0) ;
1773 pc.defineDouble(
"errorZ",
"VisualizeError",0,1.) ;
1774 pc.defineSet(
"errorPars",
"VisualizeError",0) ;
1775 pc.defineInt(
"linearMethod",
"VisualizeError",0,0) ;
1776 pc.defineInt(
"binProjData",
"ProjData",0,0) ;
1777 pc.defineDouble(
"rangeLo",
"Range",0,-999.) ;
1778 pc.defineDouble(
"rangeHi",
"Range",1,-999.) ;
1779 pc.defineInt(
"numee",
"PrintEvalErrors",0,10) ;
1780 pc.defineInt(
"rangeAdjustNorm",
"Range",0,0) ;
1781 pc.defineInt(
"rangeWNAdjustNorm",
"RangeWithName",0,0) ;
1782 pc.defineInt(
"VLines",
"VLines",0,2) ;
1783 pc.defineString(
"rangeName",
"RangeWithName",0,
"") ;
1784 pc.defineString(
"normRangeName",
"NormRange",0,
"") ;
1785 pc.defineInt(
"lineColor",
"LineColor",0,-999) ;
1786 pc.defineInt(
"lineStyle",
"LineStyle",0,-999) ;
1787 pc.defineInt(
"lineWidth",
"LineWidth",0,-999) ;
1788 pc.defineInt(
"fillColor",
"FillColor",0,-999) ;
1789 pc.defineInt(
"fillStyle",
"FillStyle",0,-999) ;
1790 pc.defineString(
"curveName",
"Name",0,
"") ;
1791 pc.defineInt(
"curveInvisible",
"Invisible",0,0) ;
1792 pc.defineInt(
"showProg",
"ShowProgress",0,0) ;
1793 pc.defineInt(
"numCPU",
"NumCPU",0,1) ;
1794 pc.defineInt(
"interleave",
"NumCPU",1,0) ;
1795 pc.defineString(
"addToCurveName",
"AddTo",0,
"") ;
1796 pc.defineDouble(
"addToWgtSelf",
"AddTo",0,1.) ;
1797 pc.defineDouble(
"addToWgtOther",
"AddTo",1,1.) ;
1798 pc.defineInt(
"moveToBack",
"MoveToBack",0,0) ;
1799 pc.defineMutex(
"SliceVars",
"Project") ;
1800 pc.defineMutex(
"AddTo",
"Asymmetry") ;
1801 pc.defineMutex(
"Range",
"RangeWithName") ;
1802 pc.defineMutex(
"VisualizeError",
"VisualizeErrorData") ;
1805 pc.process(argList) ;
1815 Bool_t linMethod =
pc.getInt(
"linearMethod") ;
1821 o.
numee =
pc.getInt(
"numee") ;
1830 o.
eeval =
pc.getDouble(
"evalErrorVal") ;
1840 const char* sliceCatState =
pc.getString(
"sliceCatState",0,
kTRUE) ;
1841 const RooLinkedList& sliceCatList =
pc.getObjectList(
"sliceCatList") ;
1842 if (sliceCatState) {
1851 strlcpy(buf,sliceCatState,1024) ;
1852 const char* slabel = strtok(buf,
",") ;
1864 slabel = strtok(0,
",") ;
1871 Int_t vlines =
pc.getInt(
"VLines");
1872 if (
pc.hasProcessed(
"Range")) {
1876 if (vlines==2) vlines=0 ;
1877 }
else if (
pc.hasProcessed(
"RangeWithName")) {
1882 if (vlines==2) vlines=0 ;
1887 if (
pc.hasProcessed(
"NormRange")) {
1908 cxcoutD(
Plotting) <<
"RooAbsReal::plotOn(" <<
GetName() <<
") Preprocessing: have slice " << *sliceSet << endl ;
1918 projectedVars.
remove(*arg) ;
1921 << sliceArg->
GetName() <<
" was not projected anyway" << endl ;
1925 }
else if (projSet) {
1926 cxcoutD(
Plotting) <<
"RooAbsReal::plotOn(" <<
GetName() <<
") Preprocessing: have projSet " << *projSet << endl ;
1929 cxcoutD(
Plotting) <<
"RooAbsReal::plotOn(" <<
GetName() <<
") Preprocessing: have neither sliceSet nor projSet " << endl ;
1934 cxcoutD(
Plotting) <<
"RooAbsReal::plotOn(" <<
GetName() <<
") Preprocessing: projectedVars = " << projectedVars << endl ;
1949 Int_t lineColor =
pc.getInt(
"lineColor") ;
1950 Int_t lineStyle =
pc.getInt(
"lineStyle") ;
1951 Int_t lineWidth =
pc.getInt(
"lineWidth") ;
1952 Int_t fillColor =
pc.getInt(
"fillColor") ;
1953 Int_t fillStyle =
pc.getInt(
"fillStyle") ;
1961 if (
pc.getInt(
"moveToBack") && frame->
numItems()>1) {
2000 projDataVars.
add(*tmp) ;
2023 cxcoutD(
Plotting) <<
"RooAbsReal::plotOn(" <<
GetName() <<
") frame->getNormVars() that are also observables = " << *sliceSetTmp << endl ;
2036 << frame->
getPlotVar()->
GetName() <<
" represents a slice in " << *sliceSetTmp << endl ;
2038 sliceSet.
add(*sliceSetTmp) ;
2039 delete sliceSetTmp ;
2045 cxcoutD(
Plotting) <<
"RooAbsReal::plotOn(" <<
GetName() <<
") projectedVars = " << projectedVars <<
" sliceSet = " << sliceSet << endl ;
2058 if (!plotCloneSet) {
2059 coutE(
Plotting) <<
"RooAbsReal::plotOn(" <<
GetName() <<
") Couldn't deep-clone self, abort," << endl ;
2065 if (projectedVars.
getSize()) {
2067 <<
" integrates over variables " << projectedVars
2070 if (projDataNeededVars && projDataNeededVars->
getSize()>0) {
2072 <<
" averages using data variables " << *projDataNeededVars << endl ;
2080 if (projDataNeededVars) {
2084 deps->
add(*plotVar) ;
2090 coutE(
Plotting) <<
"RooAbsReal::plotOn(" <<
GetName() <<
") error in checkObservables, abort" << endl ;
2092 delete plotCloneSet ;
2093 if (projDataNeededVars)
delete projDataNeededVars ;
2108 fullNormSet.
add(projectedVars) ;
2109 if (projDataNeededVars && projDataNeededVars->
getSize()>0) {
2110 fullNormSet.
add(*projDataNeededVars) ;
2126 if (o.
projData && projDataNeededVars && projDataNeededVars->
getSize()>0) {
2136 if (sliceDataSet->
getSize()>0) {
2157 delete sliceDataSet ;
2159 if (!cutString.
IsNull()) {
2161 coutI(
Plotting) <<
"RooAbsReal::plotOn(" <<
GetName() <<
") reducing given projection dataset to entries with " << cutString << endl ;
2166 <<
") only the following components of the projection data will be used: " << *projDataNeededVars << endl ;
2182 coutI(
Plotting) <<
"RooAbsReal::plotOn(" <<
GetName() <<
") unbinned projection dataset consist only of discrete variables,"
2183 <<
" performing projection with binned copy for optimization." << endl ;
2191 if (projDataSel!=o.
projData)
delete projDataSel ;
2198 projection->
getVal(projDataSel->
get()) ;
2256 if (projDataSel!=o.
projData)
delete projDataSel ;
2325 if (projDataNeededVars)
delete projDataNeededVars ;
2327 delete projectionCompList ;
2328 delete plotCloneSet ;
2350 projectedVars.
remove(*arg) ;
2353 << sliceArg->
GetName() <<
" was not projected anyway" << endl ;
2396 projDataVars.
add(*tmp) ;
2406 <<
") function doesn't depend on asymmetry category " << asymCat.
GetName() << endl ;
2413 <<
") asymmetry category must have 2 or 3 states with index values -1,0,1" << endl ;
2437 << frame->
getPlotVar()->
GetName() <<
" represents a slice in " << *sliceSetTmp << endl ;
2439 sliceSet.
add(*sliceSetTmp) ;
2440 delete sliceSetTmp ;
2464 if (projectedVars.
getSize()) {
2466 <<
" projects variables " << projectedVars << endl ;
2468 if (projDataNeededVars && projDataNeededVars->
getSize()>0) {
2470 <<
" averages using data variables "<< *projDataNeededVars << endl ;
2489 RooArgSet *posProjCompList, *negProjCompList ;
2495 depPos.
add(projDataVars) ;
2496 depNeg.
add(projDataVars) ;
2500 if (!posProj || !negProj) {
2501 coutE(
Plotting) <<
"RooAbsReal::plotAsymOn(" <<
GetName() <<
") Unable to create projections, abort" << endl ;
2507 asymName.
Append(
"_Asym[") ;
2511 asymTitle.
Append(
" Asymmetry of ") ;
2524 if (sliceDataSet->
getSize()>0) {
2545 delete sliceDataSet ;
2547 if (!cutString.
IsNull()) {
2550 <<
") reducing given projection dataset to entries with " << cutString << endl ;
2555 <<
") only the following components of the projection data will be used: " << *projDataNeededVars << endl ;
2565 ((
RooAbsReal*)posProj)->attachDataSet(*projDataSel) ;
2566 ((
RooAbsReal*)negProj)->attachDataSet(*projDataSel) ;
2600 if (projDataSel!=o.
projData)
delete projDataSel ;
2639 delete posProjCompList ;
2640 delete negProjCompList ;
2672 fpf_stripped.
add(*frv);
2686 vector<int> fpf_idx;
2690 paramList.
add(*par);
2691 fpf_idx.push_back(i);
2695 vector<Double_t> plusVar, minusVar ;
2702 for (
Int_t ivar=0 ; ivar<paramList.
getSize() ; ivar++) {
2710 ((
RooRealVar*)paramList.
at(ivar))->setVal(cenVal+errVal) ;
2711 plusVar.push_back(cloneFunc->
getVal(nset)) ;
2714 ((
RooRealVar*)paramList.
at(ivar))->setVal(cenVal-errVal) ;
2715 minusVar.push_back(cloneFunc->
getVal(nset)) ;
2721 vector<double> errVec(paramList.
getSize()) ;
2722 for (
int i=0 ; i<paramList.
getSize() ; i++) {
2723 errVec[i] =
sqrt(V(i,i)) ;
2724 for (
int j=i ; j<paramList.
getSize() ; j++) {
2725 C(i,j) = V(i,j)/
sqrt(V(i,i)*V(j,j)) ;
2732 for (
unsigned int j=0 ; j<plusVar.size() ; j++) {
2733 F[j] = (plusVar[j]-minusVar[j])/2 ;
2740 delete errorParams ;
2792 pc.stripCmdList(plotArgListTmp,
"VisualizeError,MoveToBack") ;
2799 if (std::string(
"Normalization")==cmd->
GetName()) {
2802 plotArgList.
Add(cmd) ;
2805 plotArgList.
Add(cmd) ;
2832 coutI(
Plotting) <<
"RooAbsReal::plotOn(" <<
GetName() <<
") INFO: visualizing " << Z <<
"-sigma uncertainties in parameters "
2833 << *errorParams <<
" from fit result " << fr.
GetName() <<
" using " <<
n <<
" samplings." << endl ;
2839 vector<RooCurve*> cvec ;
2840 for (
int i=0 ; i<
d->numEntries() ; i++) {
2841 *cloneParams = (*
d->get(i)) ;
2843 cloneFunc->
plotOn(frame,tmp2) ;
2844 cvec.push_back(frame->
getCurve()) ;
2857 for (vector<RooCurve*>::iterator i=cvec.begin() ; i!=cvec.end() ; ++i) {
2879 fpf_stripped.
add(*frv);
2892 vector<int> fpf_idx ;
2896 paramList.add(*par) ;
2897 fpf_idx.push_back(i) ;
2901 vector<RooCurve*> plusVar, minusVar ;
2910 for (
Int_t ivar=0 ; ivar<paramList.getSize() ; ivar++) {
2918 ((
RooRealVar*)paramList.at(ivar))->setVal(cenVal+Z*errVal) ;
2922 cloneFunc->
plotOn(frame,tmp2) ;
2923 plusVar.push_back(frame->
getCurve()) ;
2928 ((
RooRealVar*)paramList.at(ivar))->setVal(cenVal-Z*errVal) ;
2930 cloneFunc->
plotOn(frame,tmp3) ;
2931 minusVar.push_back(frame->
getCurve()) ;
2934 ((
RooRealVar*)paramList.at(ivar))->setVal(cenVal) ;
2938 vector<double> errVec(paramList.getSize()) ;
2939 for (
int i=0 ; i<paramList.getSize() ; i++) {
2940 errVec[i] =
sqrt(V(i,i)) ;
2941 for (
int j=i ; j<paramList.getSize() ; j++) {
2942 C(i,j) = V(i,j)/
sqrt(V(i,i)*V(j,j)) ;
2952 for (vector<RooCurve*>::iterator i=plusVar.begin() ; i!=plusVar.end() ; ++i) {
2955 for (vector<RooCurve*>::iterator i=minusVar.begin() ; i!=minusVar.end() ; ++i) {
2962 if (!band)
return frame ;
2965 pc.defineString(
"drawOption",
"DrawOption",0,
"F") ;
2966 pc.defineString(
"curveNameSuffix",
"CurveNameSuffix",0,
"") ;
2967 pc.defineInt(
"lineColor",
"LineColor",0,-999) ;
2968 pc.defineInt(
"lineStyle",
"LineStyle",0,-999) ;
2969 pc.defineInt(
"lineWidth",
"LineWidth",0,-999) ;
2970 pc.defineInt(
"fillColor",
"FillColor",0,-999) ;
2971 pc.defineInt(
"fillStyle",
"FillStyle",0,-999) ;
2972 pc.defineString(
"curveName",
"Name",0,
"") ;
2973 pc.defineInt(
"curveInvisible",
"Invisible",0,0) ;
2974 pc.defineInt(
"moveToBack",
"MoveToBack",0,0) ;
2975 pc.allowUndefined() ;
2978 pc.process(argList) ;
2984 frame->
addPlotable(band,
pc.getString(
"drawOption"),
pc.getInt(
"curveInvisible")) ;
2988 Int_t lineColor =
pc.getInt(
"lineColor") ;
2989 Int_t lineStyle =
pc.getInt(
"lineStyle") ;
2990 Int_t lineWidth =
pc.getInt(
"lineWidth") ;
2991 Int_t fillColor =
pc.getInt(
"fillColor") ;
2992 Int_t fillStyle =
pc.getInt(
"fillStyle") ;
3000 if (
pc.getString(
"curveName",0,
kTRUE)) {
3002 }
else if (
pc.getString(
"curveNameSuffix",0,
kTRUE)) {
3004 name.Append(
pc.getString(
"curveNameSuffix",0,
kTRUE)) ;
3009 if (
pc.getInt(
"moveToBack") && frame->
numItems()>1) {
3035 <<
":plotOn: frame does not specify a plot variable" << endl;
3070 <<
" allVars = " << (allVars?(*allVars):
RooArgSet()) << endl ;
3073 if (!allVars) return ;
3076 projectedVars.
add(*allVars) ;
3081 projectedVars.
remove(*found);
3091 <<
" from projection set because it a server of " << plotVar->
GetName() << endl ;
3092 projectedVars.
remove(*tmp) ;
3096 delete plotServers ;
3100 <<
") WARNING: cannot project out frame variable ("
3101 << found->
GetName() <<
"), ignoring" << endl ;
3113 <<
") function doesn't depend on projection variable "
3114 << arg->
GetName() <<
", ignoring" << endl ;
3153 if(binding && !binding->
isValid()) {
3177 }
else if (source->
getAttribute(
"INTEGER_TREE_BRANCH")) {
3183 }
else if (source->
getAttribute(
"SIGNEDBYTE_TREE_BRANCH")) {
3185 }
else if (source->
getAttribute(
"UNSIGNED_INTEGER_TREE_BRANCH")) {
3234 <<
" is an array and cannot be attached to a RooAbsReal" << endl ;
3242 <<
" will be converted to double precision" << endl ;
3246 }
else if (!typeName.
CompareTo(
"Int_t")) {
3248 <<
" will be converted to double precision" << endl ;
3252 }
else if (!typeName.
CompareTo(
"UChar_t")) {
3254 <<
" will be converted to double precision" << endl ;
3258 }
else if (!typeName.
CompareTo(
"Bool_t")) {
3260 <<
" will be converted to double precision" << endl ;
3264 }
else if (!typeName.
CompareTo(
"Char_t")) {
3266 <<
" will be converted to double precision" << endl ;
3270 }
else if (!typeName.
CompareTo(
"UInt_t")) {
3272 <<
" will be converted to double precision" << endl ;
3276 }
else if (!typeName.
CompareTo(
"Double_t")) {
3279 coutE(
InputArguments) <<
"RooAbsReal::attachToTree(" <<
GetName() <<
") data type " << typeName <<
" is not supported" << endl ;
3445 const TList &nameList)
const
3454 matched.
add(*found);
3468 if(isMatched) matchedArgs.
add(matched);
3517 if (config)
return config ;
3530 if (config)
return config ;
3642 if (inLogEvalError) {
3645 inLogEvalError =
kTRUE ;
3650 if (serverValueString) {
3655 oocoutE((
TObject*)0,
Eval) <<
"RooAbsReal::logEvalError(" <<
"<STATIC>" <<
") evaluation error, " << endl
3656 <<
" origin : " << origName << endl
3657 <<
" message : " << ee.
_msg << endl
3658 <<
" server values: " << ee.
_srvval << endl ;
3665 inLogEvalError =
kFALSE ;
3697 if (inLogEvalError) {
3700 inLogEvalError =
kTRUE ;
3705 if (serverValueString) {
3725 ostringstream oss2 ;
3729 coutE(
Eval) <<
"RooAbsReal::logEvalError(" <<
GetName() <<
") evaluation error, " << endl
3730 <<
" origin : " << oss2.str() << endl
3731 <<
" message : " << ee.
_msg << endl
3732 <<
" server values: " << ee.
_srvval << endl ;
3741 <<
") delayed evaluation error, " << endl
3742 <<
" origin : " << oss2.str() << endl
3743 <<
" message : " << oee.
_msg << endl
3744 <<
" server values: " << oee.
_srvval << endl ;
3751 inLogEvalError =
kFALSE ;
3787 if (maxPerNode<0) return ;
3789 map<const RooAbsArg*,pair<string,list<EvalError> > >::iterator iter =
_evalErrorList.begin() ;
3792 if (maxPerNode==0) {
3795 os << iter->second.first ;
3797 os <<
" has " << iter->second.second.size() <<
" errors" << endl ;
3802 os << iter->second.first << endl ;
3806 std::list<EvalError>::iterator iter2 = iter->second.second.begin() ;
3807 for(;iter2!=iter->second.second.end() ; ++iter2, i++) {
3808 os <<
" " << iter2->_msg <<
" @ " << iter2->_srvval << endl ;
3810 os <<
" ... (remaining " << iter->second.second.size() - maxPerNode <<
" messages suppressed)" << endl ;
3830 map<const RooAbsArg*,pair<string,list<EvalError> > >::iterator iter =
_evalErrorList.begin() ;
3832 ntot += iter->second.second.size() ;
3907 orderedObs.
add(obs) ;
3965 pc.defineObject(
"supNormSet",
"SupNormSet",0,0) ;
3966 pc.defineInt(
"numScanBins",
"ScanParameters",0,1000) ;
3967 pc.defineInt(
"intOrder",
"ScanParameters",1,2) ;
3968 pc.defineInt(
"doScanNum",
"ScanNum",0,1) ;
3969 pc.defineInt(
"doScanAll",
"ScanAll",0,0) ;
3970 pc.defineInt(
"doScanNon",
"ScanNone",0,0) ;
3971 pc.defineMutex(
"ScanNum",
"ScanAll",
"ScanNone") ;
3974 pc.process(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8) ;
3985 Int_t numScanBins =
pc.getInt(
"numScanBins") ;
3986 Int_t intOrder =
pc.getInt(
"intOrder") ;
3987 Int_t doScanNum =
pc.getInt(
"doScanNum") ;
3988 Int_t doScanAll =
pc.getInt(
"doScanAll") ;
3989 Int_t doScanNon =
pc.getInt(
"doScanNon") ;
4004 coutI(
NumIntegration) <<
"RooAbsPdf::createRunningIntegral(" <<
GetName() <<
") integration over observable(s) " << iset <<
" involves numeric integration," << endl
4005 <<
" constructing cdf though numeric integration of sampled pdf in " << numScanBins <<
" bins and applying order "
4006 << intOrder <<
" interpolation on integrated histogram." << endl
4007 <<
" To override this choice of technique use argument ScanNone(), to change scan parameters use ScanParameters(nbins,order) argument" << endl ;
4025 ivar->
setBins(numScanBins,
"numcdf") ;
4069 cloneList.
add(*cloneArg) ;
4075 loList.
add(*cloneLo) ;
4108 coutE(
InputArguments) <<
"RooAbsReal::functor(" <<
GetName() <<
") ERROR: one or more specified observables are not variables of this p.d.f" << endl ;
4114 coutE(
InputArguments) <<
"RooAbsReal::functor(" <<
GetName() <<
") ERROR: one or more specified parameters are not variables of this p.d.f" << endl ;
4135 coutE(
InputArguments) <<
"RooAbsReal::functor(" <<
GetName() <<
") ERROR: one or more specified observables are not variables of this p.d.f" << endl ;
4141 coutE(
InputArguments) <<
"RooAbsReal::functor(" <<
GetName() <<
") ERROR: one or more specified parameters are not variables of this p.d.f" << endl ;
4149 for (
int i=0 ; i<obs.
getSize() ; i++) {
4155 for (
int i=0 ; i<pars.
getSize() ; i++) {
4189 <<
" observables specified, but a ROOT TFx can only have 1,2 or 3 observables" << endl ;
4194 for (
int i=0 ; i<pars.
getSize() ; i++) {
4224 return new RooDerivative(
name.c_str(),title.c_str(),*
this,obs,normSet,order,eps) ;
4239 string title=
Form(
"%sMoment of order %d of %s w.r.t %s ",(central?
"Central ":
""),order,
GetName(),obs.
GetName()) ;
4241 if (order==2)
return new RooSecondMoment(
name.c_str(),title.c_str(),*
this,obs,central,takeRoot) ;
4242 return new RooMoment(
name.c_str(),title.c_str(),*
this,obs,order,central,takeRoot) ;
4258 string title=
Form(
"%sMoment of order %d of %s w.r.t %s ",(central?
"Central ":
""),order,
GetName(),obs.
GetName()) ;
4260 if (order==1)
return new RooFirstMoment(
name.c_str(),title.c_str(),*
this,obs,normObs,intNormObs) ;
4261 if (order==2)
return new RooSecondMoment(
name.c_str(),title.c_str(),*
this,obs,normObs,central,takeRoot,intNormObs) ;
4262 return new RooMoment(
name.c_str(),title.c_str(),*
this,obs,normObs,order,central,takeRoot,intNormObs) ;
4362 RooLinkedList chi2CmdList =
pc.filterCmdList(fitCmdList,
"Range,RangeWithName,NumCPU,Optimize") ;
4395 return new RooChi2Var(
name.c_str(),
name.c_str(),*
this,data,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8) ;
4420 return createChi2(data,*cmds[0],*cmds[1],*cmds[2],*cmds[3],*cmds[4],*cmds[5],*cmds[6],*cmds[7]) ;
4486 RooLinkedList chi2CmdList =
pc.filterCmdList(fitCmdList,
"YVar,Integrate") ;
4535 pc.defineInt(
"integrate",
"Integrate",0,0) ;
4536 pc.defineObject(
"yvar",
"YVar",0,0) ;
4539 pc.process(cmdList) ;
4545 Bool_t integrate =
pc.getInt(
"integrate") ;
4570 pc.defineString(
"fitOpt",
"FitOptions",0,
"") ;
4572 pc.defineInt(
"optConst",
"Optimize",0,1) ;
4573 pc.defineInt(
"verbose",
"Verbose",0,0) ;
4574 pc.defineInt(
"doSave",
"Save",0,0) ;
4575 pc.defineInt(
"doTimer",
"Timer",0,0) ;
4576 pc.defineInt(
"plevel",
"PrintLevel",0,1) ;
4577 pc.defineInt(
"strat",
"Strategy",0,1) ;
4578 pc.defineInt(
"initHesse",
"InitialHesse",0,0) ;
4579 pc.defineInt(
"hesse",
"Hesse",0,1) ;
4580 pc.defineInt(
"minos",
"Minos",0,0) ;
4581 pc.defineInt(
"ext",
"Extended",0,2) ;
4582 pc.defineInt(
"numee",
"PrintEvalErrors",0,10) ;
4583 pc.defineInt(
"doWarn",
"Warnings",0,1) ;
4584 pc.defineString(
"mintype",
"Minimizer",0,
"Minuit") ;
4585 pc.defineString(
"minalg",
"Minimizer",1,
"minuit") ;
4586 pc.defineObject(
"minosSet",
"Minos",0,0) ;
4588 pc.defineMutex(
"FitOptions",
"Verbose") ;
4589 pc.defineMutex(
"FitOptions",
"Save") ;
4590 pc.defineMutex(
"FitOptions",
"Timer") ;
4591 pc.defineMutex(
"FitOptions",
"Strategy") ;
4592 pc.defineMutex(
"FitOptions",
"InitialHesse") ;
4593 pc.defineMutex(
"FitOptions",
"Hesse") ;
4594 pc.defineMutex(
"FitOptions",
"Minos") ;
4597 pc.process(cmdList) ;
4603 const char* fitOpt =
pc.getString(
"fitOpt",0,
kTRUE) ;
4604#ifdef __ROOFIT_NOROOMINIMIZER
4605 const char* minType =0 ;
4607 const char* minType =
pc.getString(
"mintype",
"Minuit") ;
4608 const char* minAlg =
pc.getString(
"minalg",
"minuit") ;
4610 Int_t optConst =
pc.getInt(
"optConst") ;
4612 Int_t doSave =
pc.getInt(
"doSave") ;
4613 Int_t doTimer =
pc.getInt(
"doTimer") ;
4614 Int_t plevel =
pc.getInt(
"plevel") ;
4615 Int_t strat =
pc.getInt(
"strat") ;
4616 Int_t initHesse=
pc.getInt(
"initHesse") ;
4617 Int_t hesse =
pc.getInt(
"hesse") ;
4618 Int_t minos =
pc.getInt(
"minos") ;
4619 Int_t numee =
pc.getInt(
"numee") ;
4620 Int_t doWarn =
pc.getInt(
"doWarn") ;
4625#ifdef __ROOFIT_NOROOMINIMIZER
4628 if (
"OldMinuit" ==
string(minType)) {
4637 m.setPrintEvalErrors(numee) ;
4639 m.setPrintLevel(plevel) ;
4644 m.optimizeConst(optConst);
4650 ret =
m.fit(fitOpt) ;
4665 m.setStrategy(strat) ;
4684 m.minos(*minosSet) ;
4693 string title =
Form(
"Result of fit of %s ",
GetName()) ;
4694 ret =
m.save(
name.c_str(),title.c_str()) ;
4699#ifndef __ROOFIT_NOROOMINIMIZER
4702 m.setMinimizerType(minType);
4708 m.setPrintEvalErrors(numee) ;
4710 m.setPrintLevel(plevel) ;
4715 m.optimizeConst(optConst);
4721 ret =
m.fit(fitOpt) ;
4736 m.setStrategy(strat) ;
4745 m.minimize(minType, minAlg) ;
4755 m.minos(*minosSet) ;
4764 string title =
Form(
"Result of fit of %s ",
GetName()) ;
4765 ret =
m.save(
name.c_str(),title.c_str()) ;
4807 while((arg=iter.
next())) {
4810 <<
") function does not depend on listed parameter " << arg->
GetName() <<
", ignoring" << endl ;
4813 if (plist.size()>0) plist +=
":" ;
static RooMathCoreReg dummy
static void indent(ostringstream &buf, int indent_level)
char * Form(const char *fmt,...)
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
virtual Bool_t checkObservables(const RooArgSet *nset) const
Overloadable function in which derived classes can implement consistency checks of the variables.
virtual RooAbsArg * cloneTree(const char *newname=0) const
Clone tree expression of objects.
RooArgSet * getObservables(const RooArgSet &set, Bool_t valueOnly=kTRUE) const
Return the observables of this pdf given a set of observables.
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.
void setStringAttribute(const Text_t *key, const Text_t *value)
Associate string 'value' to this object under key 'key'.
void leafNodeServerList(RooAbsCollection *list, const RooAbsArg *arg=0, Bool_t recurseNonDerived=kFALSE) const
Fill supplied list with all leaf nodes of the arg tree, starting with ourself as top node.
virtual void printMultiline(std::ostream &os, Int_t contents, Bool_t verbose=kFALSE, TString indent="") const
Implement multi-line detailed printing.
virtual TObject * Clone(const char *newname=0) const
Make a clone of an object using the Streamer facility.
virtual Bool_t isFundamental() const
Is this object a fundamental type that can be added to a dataset? Fundamental-type subclasses overrid...
const Text_t * getStringAttribute(const Text_t *key) const
Get string attribute mapped under key 'key'.
void treeNodeServerList(RooAbsCollection *list, const RooAbsArg *arg=0, Bool_t doBranch=kTRUE, Bool_t doLeaf=kTRUE, Bool_t valueOnly=kFALSE, Bool_t recurseNonDerived=kFALSE) const
Fill supplied list with nodes of the arg tree, following all server links, starting with ourself as 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...
void setAttribute(const Text_t *name, Bool_t value=kTRUE)
Set (default) or clear a named boolean attribute of this object.
RooArgSet * getVariables(Bool_t stripDisconnected=kTRUE) const
Return RooArgSet with all variables (tree leaf nodes of expresssion tree)
void setOperMode(OperMode mode, Bool_t recurseADirty=kTRUE)
Change cache operation mode to given mode.
Bool_t addOwnedComponents(const RooArgSet &comps)
Take ownership of the contents of 'comps'.
TString cleanBranchName() const
Construct a mangled name from the actual name that is free of any math symbols that might be interpre...
Int_t numProxies() const
Return the number of registered proxies.
void setShapeDirty() const
Bool_t getAttribute(const Text_t *name) const
Check if a named attribute is set. By default, all attributes are unset.
friend class RooCustomizer
Bool_t dependsOnValue(const RooAbsCollection &serverList, const RooAbsArg *ignoreArg=0) const
RooAbsProxy * getProxy(Int_t index) const
Return the nth proxy from the proxy list.
RooAbsArg & operator=(const RooAbsArg &other)
Assign all boolean and string properties of the original object.
Bool_t isValueDirtyAndClear() const
RooArgSet * getComponents() const
void branchNodeServerList(RooAbsCollection *list, const RooAbsArg *arg=0, Bool_t recurseNonDerived=kFALSE) const
Fill supplied list with all branch nodes of the arg tree starting with ourself as top node.
void setValueDirty() const
Bool_t recursiveRedirectServers(const RooAbsCollection &newServerList, Bool_t mustReplaceAll=kFALSE, Bool_t nameChange=kFALSE, Bool_t recurseInNewSet=kTRUE)
void attachDataSet(const RooAbsData &set)
Replace server nodes with names matching the dataset variable names with those data set variables,...
void SetName(const char *name)
Set the name of the TNamed.
OperMode operMode() const
RooAbsBinning is the abstract base class for RooRealVar binning definitions This class defines the in...
virtual Bool_t isParameterized() const
virtual RooAbsReal * highBoundFunc() const
virtual RooAbsReal * lowBoundFunc() const
void setInterpolationOrder(Int_t order)
Set interpolation order of RooHistFunct representing cache histogram.
RooAbsCategoryLValue is the common abstract base class for objects that represent a discrete value th...
virtual Bool_t setIndex(Int_t index, Bool_t printError=kTRUE)=0
virtual Int_t getIndex() const
Return index number of current state.
Bool_t isSignType(Bool_t mustHaveZero=kFALSE) const
Determine if category has 2 or 3 states with index values -1,0,1.
RooFIter fwdIterator() const R__SUGGEST_ALTERNATIVE("begin()
One-time forward iterator.
virtual void removeAll()
Remove all arguments from our set, deleting them if we own them.
RooAbsCollection * selectCommon(const RooAbsCollection &refColl) const
Create a subset of the current collection, consisting only of those elements that are contained as we...
virtual Bool_t replace(const RooAbsArg &var1, const RooAbsArg &var2)
Replace var1 with var2 and return kTRUE for success.
void sort(Bool_t reverse=false)
Sort collection using std::sort and name comparison.
virtual TObject * Clone(const char *newname=0) const
Make a clone of an object using the Streamer facility.
virtual Bool_t add(const RooAbsArg &var, Bool_t silent=kFALSE)
Add the specified argument to list.
RooAbsArg * first() const
RooAbsCollection * selectByName(const char *nameList, Bool_t verbose=kFALSE) const
Create a subset of the current collection, consisting only of those elements with names matching the ...
Bool_t overlaps(const RooAbsCollection &otherColl) const
Check if this and other collection have common entries.
std::string contentsString() const
Return comma separated list of contained object names as STL string.
TIterator * createIterator(Bool_t dir=kIterForward) const R__SUGGEST_ALTERNATIVE("begin()
TIterator-style iteration over contained elements.
virtual Bool_t remove(const RooAbsArg &var, Bool_t silent=kFALSE, Bool_t matchByNameOnly=kFALSE)
Remove the specified argument from our list.
RooAbsArg * find(const char *name) const
Find object with given name in list.
RooAbsData is the common abstract base class for binned and unbinned datasets.
virtual const RooArgSet * get() const
RooAbsData * reduce(const RooCmdArg &arg1, const RooCmdArg &arg2=RooCmdArg(), const RooCmdArg &arg3=RooCmdArg(), const RooCmdArg &arg4=RooCmdArg(), const RooCmdArg &arg5=RooCmdArg(), const RooCmdArg &arg6=RooCmdArg(), const RooCmdArg &arg7=RooCmdArg(), const RooCmdArg &arg8=RooCmdArg())
Create a reduced copy of this dataset.
Abstract interface for evaluating a real-valued function of one real variable and performing numerica...
Abstract base class for objects that are lvalues, i.e.
RooAbsMoment represents the first, second, or third order derivative of any RooAbsReal as calculated ...
void constOptimizeTestStatistic(ConstOpCode opcode, Bool_t doAlsoTrackingOpt=kTRUE)
Driver function to propagate constant term optimizations in test statistic.
const char * normRange() const
virtual Double_t expectedEvents(const RooArgSet *nset) const
Return expected number of events from this p.d.f for use in extended likelihood calculations.
virtual ExtendMode extendMode() const
RooAbsProxy is the abstact interface for proxy classes.
virtual void print(std::ostream &os, Bool_t addContents=kFALSE) const
Print proxy name.
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 const RooAbsBinning & getBinning(const char *name=0, Bool_t verbose=kTRUE, Bool_t createOnTheFly=kFALSE) const =0
Retrive binning configuration with given name or default binning.
TH1 * createHistogram(const char *name, const RooCmdArg &arg1=RooCmdArg::none(), 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
virtual Double_t getMin(const char *name=0) const
Get miniminum of currently defined range.
void setServerValues(const char *tmp)
void setMessage(const char *tmp)
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
void plotOnCompSelect(RooArgSet *selNodes) const
Helper function for plotting of composite p.d.fs.
RooGenFunction * iGenFunction(RooRealVar &x, const RooArgSet &nset=RooArgSet())
virtual RooPlot * plotSliceOn(RooPlot *frame, const RooArgSet &sliceSet, Option_t *drawOptions="L", Double_t scaleFactor=1.0, ScaleType stype=Relative, const RooAbsData *projData=0) const
virtual Bool_t readFromStream(std::istream &is, Bool_t compact, Bool_t verbose=kFALSE)
Read object contents from stream (dummy for now)
virtual Bool_t isIdentical(const RooAbsArg &other, Bool_t assumeSameType=kFALSE)
TH1 * fillHistogram(TH1 *hist, const RooArgList &plotVars, Double_t scaleFactor=1, const RooArgSet *projectedVars=0, Bool_t scaling=kTRUE, const RooArgSet *condObs=0, Bool_t setError=kTRUE) const
Fill the ROOT histogram 'hist' with values sampled from this function at the bin centers.
virtual void selectNormalizationRange(const char *rangeName=0, Bool_t force=kFALSE)
Interface function to force use of a given normalization range to interpret function value.
TString getTitle(Bool_t appendUnit=kFALSE) const
Return this variable's title string.
static Int_t numEvalErrorItems()
static void setHideOffset(Bool_t flag)
RooAbsReal()
coverity[UNINIT_CTOR] Default constructor
virtual Int_t getAnalyticalIntegralWN(RooArgSet &allVars, RooArgSet &analVars, const RooArgSet *normSet, const char *rangeName=0) const
Variant of getAnalyticalIntegral that is also passed the normalization set that should be applied to ...
friend class RooRealBinding
RooAbsReal * createScanRI(const RooArgSet &iset, const RooArgSet &nset, Int_t numScanBins, Int_t intOrder)
Utility function for createRunningIntegral that construct an object implementing the numeric scanning...
UChar_t _byteValue
Transient cache for bool values from tree branches.
Bool_t isSelectedComp() const
If true, the current pdf is a selected component (for use in plotting)
virtual RooAbsReal * createChi2(RooDataHist &data, const RooLinkedList &cmdList)
Create a variable from a histogram and this function.
RooDerivative * derivative(RooRealVar &obs, Int_t order=1, Double_t eps=0.001)
Return function representing first, second or third order derivative of this function.
virtual Bool_t isValidReal(Double_t value, Bool_t printError=kFALSE) const
Interface function to check if given value is a valid value for this object.
static Bool_t _cacheCheck
virtual RooPlot * plotOn(RooPlot *frame, const RooCmdArg &arg1=RooCmdArg(), const RooCmdArg &arg2=RooCmdArg(), const RooCmdArg &arg3=RooCmdArg(), const RooCmdArg &arg4=RooCmdArg(), const RooCmdArg &arg5=RooCmdArg(), const RooCmdArg &arg6=RooCmdArg(), const RooCmdArg &arg7=RooCmdArg(), const RooCmdArg &arg8=RooCmdArg(), const RooCmdArg &arg9=RooCmdArg(), const RooCmdArg &arg10=RooCmdArg()) const
Plot (project) PDF on specified frame.
void setParameterizeIntegral(const RooArgSet ¶mVars)
static Bool_t hideOffset()
virtual Double_t evaluate() const =0
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
virtual void setTreeBranchStatus(TTree &t, Bool_t active)
(De)Activate associated tree branch
virtual RooAbsReal * createProfile(const RooArgSet ¶msOfInterest)
Create a RooProfileLL object that eliminates all nuisance parameters in the present function.
TString integralNameSuffix(const RooArgSet &iset, const RooArgSet *nset=0, const char *rangeName=0, Bool_t omitEmpty=kFALSE) const
Construct string with unique suffix name to give to integral object that encodes integrated observabl...
Double_t traceEval(const RooArgSet *set) const
Calculate current value of object, with error tracing wrapper.
Int_t _intValue
Transient cache for floating point values from tree branches.
Double_t getPropagatedError(const RooFitResult &fr, const RooArgSet &nset=RooArgSet())
Calculate error on self by propagated errors on parameters with correlations as given by fit result T...
virtual void copyCache(const RooAbsArg *source, Bool_t valueOnly=kFALSE, Bool_t setValDirty=kTRUE)
Copy the cached value of another RooAbsArg to our cache.
virtual void fixAddCoefRange(const char *rangeName=0, Bool_t force=kTRUE)
Fix the interpretation of the coefficient of any RooAddPdf component in the expression tree headed by...
TH1 * createHistogram(const char *varNameList, Int_t xbins=0, Int_t ybins=0, Int_t zbins=0) const
Create and fill a ROOT histogram TH1, TH2 or TH3 with the values of this function for the variables w...
static EvalErrorIter evalErrorIter()
RooAbsReal & operator=(const RooAbsReal &other)
Assign values, name and configs from another RooAbsReal.
Double_t findRoot(RooRealVar &x, Double_t xmin, Double_t xmax, Double_t yval)
Return value of x (in range xmin,xmax) at which function equals yval.
RooAbsReal * createIntRI(const RooArgSet &iset, const RooArgSet &nset=RooArgSet())
Utility function for createRunningIntegral that construct an object implementing the standard (analyt...
TF1 * asTF(const RooArgList &obs, const RooArgList &pars=RooArgList(), const RooArgSet &nset=RooArgSet()) const
Return a ROOT TF1,2,3 object bound to this RooAbsReal with given definition of observables and parame...
virtual Double_t analyticalIntegralWN(Int_t code, const RooArgSet *normSet, const char *rangeName=0) const
Implements the actual analytical integral(s) advertised by getAnalyticalIntegral.
virtual void attachToVStore(RooVectorDataStore &vstore)
static RooNumIntConfig * defaultIntegratorConfig()
Returns the default numeric integration configuration for all RooAbsReals.
RooFitResult * chi2FitDriver(RooAbsReal &fcn, RooLinkedList &cmdList)
Internal driver function for chi2 fits.
virtual std::list< Double_t > * binBoundaries(RooAbsRealLValue &, Double_t, Double_t) const
virtual void attachToTree(TTree &t, Int_t bufSize=32000)
Attach object to a branch of given TTree.
Bool_t matchArgs(const RooArgSet &allDeps, RooArgSet &numDeps, const RooArgProxy &a) const
Utility function for use in getAnalyticalIntegral().
RooNumIntConfig * _specIntegratorConfig
virtual RooPlot * plotAsymOn(RooPlot *frame, const RooAbsCategoryLValue &asymCat, PlotOpt o) const
static ErrorLoggingMode evalErrorLoggingMode()
Return current evaluation error logging mode.
void setIntegratorConfig()
Remove the specialized numeric integration configuration associated with this object.
static void setCacheCheck(Bool_t flag)
Activate cache validation mode.
virtual void selectNormalization(const RooArgSet *depSet=0, Bool_t force=kFALSE)
Interface function to force use of a given set of observables to interpret function value.
virtual void printMultiline(std::ostream &os, Int_t contents, Bool_t verbose=kFALSE, TString indent="") const
Structure printing.
friend class RooRealIntegral
Double_t getVal(const RooArgSet *normalisationSet=nullptr) const
Evaluate object.
RooAbsMoment * moment(RooRealVar &obs, Int_t order, Bool_t central, Bool_t takeRoot)
Return function representing moment of function of given order.
static ErrorLoggingMode _evalErrorMode
static Int_t _evalErrorCount
virtual Bool_t isValid() const
Check if current value is valid.
static void globalSelectComp(Bool_t flag)
Global switch controlling the activation of the selectComp() functionality.
RooAbsArg * createFundamental(const char *newname=0) const
Create a RooRealVar fundamental object with our properties.
std::map< constRooAbsArg *, std::pair< std::string, std::list< EvalError > > >::const_iterator EvalErrorIter
virtual Double_t maxVal(Int_t code) const
Return maximum value for set of observables identified by code assigned in getMaxVal.
static Bool_t _globalSelectComp
Component selection flag for RooAbsPdf::plotCompOn.
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 ...
RooNumIntConfig * specialIntegratorConfig() const
Returns the specialized integrator configuration for this RooAbsReal.
RooAbsReal * createIntObj(const RooArgSet &iset, const RooArgSet *nset, const RooNumIntConfig *cfg, const char *rangeName) const
Utility function for createIntegral that creates the actual integreal object.
static std::map< const RooAbsArg *, std::pair< std::string, std::list< EvalError > > > _evalErrorList
Bool_t plotSanityChecks(RooPlot *frame) const
Utility function for plotOn(), perform general sanity check on frame to ensure safe plotting operatio...
Char_t _sbyteValue
Transient cache for byte values from tree branches.
const char * getPlotLabel() const
Get the label associated with the variable.
virtual RooFitResult * chi2FitTo(RooDataHist &data, const RooCmdArg &arg1=RooCmdArg::none(), 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())
Perform a fit to given histogram.
virtual void fillTreeBranch(TTree &t)
Fill the tree branch that associated with this object with its current value.
Bool_t operator==(Double_t value) const
Equality operator comparing to a Double_t.
RooAbsFunc * bindVars(const RooArgSet &vars, const RooArgSet *nset=0, Bool_t clipInvalid=kFALSE) const
Create an interface adaptor f(vars) that binds us to the specified variables (in arbitrary order).
static Int_t numEvalErrors()
Return the number of logged evaluation errors since the last clearing.
static void setEvalErrorLoggingMode(ErrorLoggingMode m)
Set evaluation error logging mode.
Bool_t matchArgsByName(const RooArgSet &allArgs, RooArgSet &matchedArgs, const TList &nameList) const
Check if allArgs contains matching elements for each name in nameList.
virtual Double_t analyticalIntegral(Int_t code, const char *rangeName=0) const
Implements the actual analytical integral(s) advertised by getAnalyticalIntegral.
virtual Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=0) const
Interface function getAnalyticalIntergral advertises the analytical integrals that are supported.
virtual void preferredObservableScanOrder(const RooArgSet &obs, RooArgSet &orderedObs) const
Interface method for function objects to indicate their preferred order of observables for scanning t...
void findInnerMostIntegration(const RooArgSet &allObs, RooArgSet &innerObs, const char *rangeName) const
Utility function for createIntObj() that aids in the construct of recursive integrals over functions ...
static Bool_t _hideOffset
const Text_t * getUnit() const
virtual void printValue(std::ostream &os) const
Print object value.
const RooNumIntConfig * getIntegratorConfig() const
Return the numeric integration configuration used for this object.
Bool_t _boolValue
Transient cache for integer values from tree branches.
RooPlot * plotOnWithErrorBand(RooPlot *frame, const RooFitResult &fr, Double_t Z, const RooArgSet *params, const RooLinkedList &argList, Bool_t method1) const
Plot function or PDF on frame with support for visualization of the uncertainty encoded in the given ...
virtual Double_t getValV(const RooArgSet *normalisationSet=nullptr) const
Return value of object.
static void printEvalErrors(std::ostream &os=std::cout, Int_t maxPerNode=10000000)
Print all outstanding logged evaluation error on the given ostream.
virtual void fixAddCoefNormalization(const RooArgSet &addNormSet=RooArgSet(), Bool_t force=kTRUE)
Fix the interpretation of the coefficient of any RooAddPdf component in the expression tree headed by...
void logEvalError(const char *message, const char *serverValueString=0) const
Log evaluation error message.
static void clearEvalErrorLog()
Clear the stack of evaluation error messages.
RooFunctor * functor(const RooArgList &obs, const RooArgList &pars=RooArgList(), const RooArgSet &nset=RooArgSet()) const
Return a RooFunctor object bound to this RooAbsReal with given definition of observables and paramete...
UInt_t _uintValue
Transient cache for signed byte values from tree branches.
void makeProjectionSet(const RooAbsArg *plotVar, const RooArgSet *allVars, RooArgSet &projectedVars, Bool_t silent) const
Utility function for plotOn() that constructs the set of observables to project when plotting ourselv...
void setPlotLabel(const char *label)
Set the label associated with this variable.
virtual ~RooAbsReal()
Destructor.
virtual Int_t getMaxVal(const RooArgSet &vars) const
Advertise capability to determine maximum value of function for given set of observables.
virtual void writeToStream(std::ostream &os, Bool_t compact) const
Write object contents to stream (dummy for now)
const RooAbsReal * createPlotProjection(const RooArgSet &depVars, const RooArgSet &projVars) const
Utility function for plotOn() that creates a projection of a function or p.d.f to be plotted on a Roo...
RooDataHist * fillDataHist(RooDataHist *hist, const RooArgSet *nset, Double_t scaleFactor, Bool_t correctForBinVolume=kFALSE, Bool_t showProgress=kFALSE) const
Fill a RooDataHist with values sampled from this function at the bin centers.
virtual Double_t offset() const
RooAbsReal * createRunningIntegral(const RooArgSet &iset, const RooArgSet &nset=RooArgSet())
Calls createRunningIntegral(const RooArgSet&, const RooCmdArg&, const RooCmdArg&, const RooCmdArg&,...
RooAddition calculates the sum of a set of RooAbsReal terms, or when constructed with two sets,...
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.
RooArgProxy is the abstact interface for RooAbsArg proxy classes.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
virtual Bool_t addOwned(const RooAbsCollection &col, Bool_t silent=kFALSE)
Add a collection of arguments to this collection by calling addOwned() for each element in the source...
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...
virtual void addClone(const RooAbsCollection &col, Bool_t silent=kFALSE)
Add a collection of arguments to this collection by calling addOwned() for each element in the source...
Class RooBinning is an implements RooAbsBinning in terms of an array of boundary values,...
Implement the abstract 1-dimensional root finding interface using the Brent-Decker method.
virtual Bool_t findRoot(Double_t &result, Double_t xlo, Double_t xhi, Double_t value=0) const
Do the root finding using the Brent-Decker method.
RooCachedReal is an implementation of RooAbsCachedReal that can cache any external RooAbsReal input f...
void setCacheSource(Bool_t flag)
RooCategory represents a fundamental (non-derived) discrete value object.
virtual Bool_t setLabel(const char *label, Bool_t printError=kTRUE)
Set value by specifying the name of the desired state If printError is set, a message will be printed...
Class RooChi2Var implements a simple chi^2 calculation from a binned dataset and a PDF.
RooCmdArg is a named container for two doubles, two integers two object points and three string point...
static const RooCmdArg & none()
Return reference to null argument.
const char * getString(Int_t idx) const
void setString(Int_t idx, const char *value)
virtual TObject * Clone(const char *newName=0) const
Make a clone of an object using the Streamer facility.
Class RooCmdConfig is a configurable parser for RooCmdArg named arguments.
A RooCurve is a one-dimensional graphical representation of a real-valued function.
RooCurve * makeErrorBand(const std::vector< RooCurve * > &variations, Double_t Z=1) const
Construct filled RooCurve represented error band that captures alpha% of the variations of the curves...
RooCustomizer is a factory class to produce clones of a prototype composite PDF object with the same ...
void setCloneBranchSet(RooArgSet &cloneBranchSet)
Install the input RooArgSet as container in which all cloned branches will be stored.
void replaceArg(const RooAbsArg &orig, const RooAbsArg &subst)
Replace any occurence of arg 'orig' with arg 'subst'.
void setOwning(Bool_t flag)
RooAbsArg * build(const char *masterCatState, Bool_t verbose=kFALSE)
Build a clone of the prototype executing all registered 'replace' rules and 'split' rules for the mas...
The RooDataHist is a container class to hold N-dimensional binned data.
void set(Double_t weight, Double_t wgtErr=-1)
Increment the weight of the bin enclosing the coordinates given by 'row' by the specified amount.
virtual Int_t numEntries() const
Return the number of bins.
virtual const RooArgSet * get() const
Double_t binVolume() const
RooDataSet is a container class to hold unbinned data.
Class RooDataWeightedAverage calculate a weighted average of a function or p.d.f given a dataset with...
RooDerivative represents the first, second, or third order derivative of any RooAbsReal as calculated...
A one-time forward iterator working on RooLinkedList or RooAbsCollection.
RooAbsArg * next()
Return next element or nullptr if at end.
RooFirstMoment represents the first, second, or third order derivative of any RooAbsReal as calculate...
RooFitResult is a container class to hold the input and output of a PDF fit to a dataset.
const TMatrixDSym & covarianceMatrix() const
Return covariance matrix.
TMatrixDSym reducedCovarianceMatrix(const RooArgList ¶ms) const
Return a reduced covariance matrix (Note that Vred is a simple sub-matrix of V, row/columns are order...
const RooArgList & floatParsFinal() const
RooAbsPdf * createHessePdf(const RooArgSet ¶ms) const
Return a p.d.f that represents the fit result as a multi-variate probability densisty function on the...
Lightweight interface adaptor that exports a RooAbsPdf as a functor.
Lightweight interface adaptor that exports a RooAbsReal as a ROOT::Math::IGenFunction.
RooLinkedList is an collection class for internal use, storing a collection of RooAbsArg pointers in ...
TObject * FindObject(const char *name) const
Return pointer to obejct with given name.
RooFIter fwdIterator() const
Create a one-time-use forward iterator for this list.
TIterator * MakeIterator(Bool_t forward=kTRUE) const
Create a TIterator for this list.
void Delete(Option_t *o=0)
Remove all elements in collection and delete all elements NB: Collection does not own elements,...
virtual void Add(TObject *arg)
RooMinimizer is a wrapper class around ROOT::Fit:Fitter that provides a seamless interface between th...
RooMinuit is a wrapper class around TFitter/TMinuit that provides a seamless interface between the MI...
RooMoment represents the first, second, or third order derivative of any RooAbsReal as calculated (nu...
Lightweight interface adaptor that exports a RooAbsReal as a ROOT::Math::IMultiGenFunction.
RooNameSet is a utility class that stores the names the objects in a RooArget.
RooArgSet * select(const RooArgSet &list) const
Construct a RooArgSet of objects in input 'list' whose names match to those in the internal name list...
void setNameList(const char *givenList)
RooNumIntConfig holds the configuration parameters of the various numeric integrators used by RooReal...
static RooNumIntConfig & defaultConfig()
Return reference to instance of default numeric integrator configuration object.
Class RooNumRunningInt is an implementation of RooAbsCachedReal that represents a running integral.
Class RooParamBinning is an implementation of RooAbsBinning that constructs a binning with a range de...
A RooPlot is a plot frame and a container for graphics objects within that frame.
Bool_t drawBefore(const char *before, const char *target)
Change the order in which our contained objects are drawn so that the target object is drawn just bef...
Double_t GetMinimum(Double_t minval=-FLT_MAX) const
const RooArgSet * getNormVars() const
TAttFill * getAttFill(const char *name=0) const
Return a pointer to the fill attributes of the named object in this plot, or zero if the named object...
virtual void SetMinimum(Double_t minimum=-1111)
Set minimum value of Y axis.
TObject * getObject(Int_t idx) const
Return the name of the object at slot 'idx' in this RooPlot.
RooAbsRealLValue * getPlotVar() const
TAttLine * getAttLine(const char *name=0) const
Return a pointer to the line attributes of the named object in this plot, or zero if the named object...
Double_t GetMaximum(Double_t maxval=FLT_MAX) const
void addPlotable(RooPlotable *plotable, Option_t *drawOptions="", Bool_t invisible=kFALSE, Bool_t refreshNorm=kFALSE)
Add the specified plotable object to our plot.
virtual void SetMaximum(Double_t maximum=-1111)
Set maximum value of Y axis.
TObject * findObject(const char *name, const TClass *clas=0) const
Find the named object in our list of items and return a pointer to it.
RooCurve * getCurve(const char *name=0) const
Return a RooCurve pointer of the named object in this plot, or zero if the named object does not exis...
void remove(const char *name=0, Bool_t deleteToo=kTRUE)
Remove object with given name, or last object added if no name is given.
virtual void printStream(std::ostream &os, Int_t contents, StyleOption style, TString indent="") const
Print description of object on ostream, printing contents set by contents integer,...
Class RooProfileLL implements the profile likelihood estimator for a given likelihood and set of para...
Lightweight interface adaptor that binds a RooAbsReal object to a subset of its servers and present i...
RooRealIntegral performs hybrid numerical/analytical integrals of RooAbsReal objects.
const RooArgSet & numIntRealVars() const
RooRealVar represents a fundamental (non-derived) real valued object.
void setBins(Int_t nBins, const char *name=0)
void setRange(const char *name, Double_t min, Double_t max)
Set range named 'name to [min,max].
void removeRange(const char *name=0)
Double_t getError() const
void setBinning(const RooAbsBinning &binning, const char *name=0)
Add given binning under name 'name' with this variable.
virtual TObject * clone(const char *newname) const
virtual void setVal(Double_t value)
Set value of variable to 'value'.
Lightweight RooAbsFunction implementation that applies a constant scale factor to another RooAbsFunc.
RooSecondMoment represents the first, second, or third order derivative of any RooAbsReal as calculat...
void setBuffer(RooAbsReal *real, Double_t *newBuf)
RooVectorDataStore is the abstract base class for data collection that use a TTree as internal storag...
RealVector * addReal(RooAbsReal *real)
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
virtual void SetFillStyle(Style_t fstyle)
Set the fill area style.
virtual void SetLineStyle(Style_t lstyle)
Set the line style.
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
Class to manage histogram axis.
virtual Double_t GetBinCenter(Int_t bin) const
Return center of bin.
A TTree is a list of TBranches.
TObjArray * GetListOfLeaves()
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
virtual void SetParName(Int_t ipar, const char *name)
Set name of parameter number ipar.
virtual void SetParameter(Int_t param, Double_t value)
A 2-Dim function with parameters.
A 3-Dim function with parameters.
virtual void SetName(const char *name="")
Set graph name.
virtual Int_t GetNbinsY() const
virtual Int_t GetNbinsZ() const
virtual Int_t GetDimension() const
TAxis * GetXaxis()
Get the behaviour adopted by the object about the statoverflows. See EStatOverflows for more informat...
virtual Int_t GetBin(Int_t binx, Int_t biny=0, Int_t binz=0) const
Return Global bin number corresponding to binx,y,z.
virtual Int_t GetNbinsX() const
virtual void SetBinError(Int_t bin, Double_t error)
Set the bin Error Note that this resets the bin eror option to be of Normal Type and for the non-empt...
virtual void SetBinContent(Int_t bin, Double_t content)
Set bin content see convention for numbering bins in TH1::GetBin In case the bin number is greater th...
Iterator abstract base class.
virtual TObject * Next()=0
A TLeaf describes individual elements of a TBranch See TBranch structure in TTree.
virtual const char * GetTypeName() const
virtual TLeaf * GetLeafCounter(Int_t &countval) const
Return a pointer to the counter of this leaf (if any) or store the number of elements that the leaf c...
virtual void Add(TObject *obj)
virtual TIterator * MakeIterator(Bool_t dir=kIterForward) const
Return a list iterator.
virtual void Delete(Option_t *option="")
Remove all objects from the list AND delete all heap based objects.
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
virtual const char * GetTitle() const
Returns title of object.
virtual const char * GetName() const
Returns name of object.
Int_t GetEntries() const
Return the number of objects in array (i.e.
TObject * At(Int_t idx) const
Collectable string class.
const TString & GetString() const
Mother of all ROOT objects.
virtual const char * GetName() const
Returns name of object.
virtual const char * ClassName() const
Returns name of class to which the object belongs.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
int CompareTo(const char *cs, ECaseCompare cmp=kExact) const
Compare a string to char *cs2.
const char * Data() const
TObjArray * Tokenize(const TString &delim) const
This function is used to isolate sequential tokens in a TString.
TString & Prepend(const char *cs)
TString & Append(const char *cs)
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
A TTree represents a columnar dataset.
virtual TBranch * GetBranch(const char *name)
Return pointer to the branch with the given name in this tree or its friends.
virtual Int_t SetBranchAddress(const char *bname, void *add, TBranch **ptr=0)
Change branch address, dealing with clone trees properly.
virtual void SetBranchStatus(const char *bname, Bool_t status=1, UInt_t *found=0)
Set branch status to Process or DoNotProcess.
virtual Int_t Branch(TCollection *list, Int_t bufsize=32000, Int_t splitlevel=99, const char *name="")
Create one branch for each element in the collection.
RooCmdArg Binning(const RooAbsBinning &binning)
RooCmdArg NormRange(const char *rangeNameList)
RooCmdArg YVar(const RooAbsRealLValue &var, const RooCmdArg &arg=RooCmdArg::none())
RooCmdArg ZVar(const RooAbsRealLValue &var, const RooCmdArg &arg=RooCmdArg::none())
RooCmdArg SupNormSet(const RooArgSet &nset)
static constexpr double pc
static constexpr double second
static constexpr double ps
Double_t Erfc(Double_t x)
Compute the complementary error function erfc(x).
Bool_t postRangeFracScale
const char * normRangeName
RooFit::MPSplit interleave
const char * projectionRangeName
const RooArgSet * projDataSet
const char * curveNameSuffix
const char * addToCurveName
const RooArgSet * projSet
const RooAbsData * projData
static long int sum(long int i)