60#ifdef ROOFIT_LEGACY_EVAL_BACKEND
66using std::string, std::map, std::list, std::pair, std::endl, std::vector;
68#define BUFFER_SIZE 64000
130 coutE(
ObjectHandling) <<
"RooFactoryWSTool::createFactory() ERROR: variable with name '" <<
name <<
"' already exists" << endl ;
158 std::vector<char> tmp(
tmpSize);
166 Int_t id = atoi(sep+1) ;
185 bool isEnum(
const char* classname) {
236 if (
string(classname) !=
gInterpreter->MethodInfo_TypeName(func)) {
285 coutE(
ObjectHandling) <<
"RooFactoryWSTool::createArg() ERROR class " << className <<
" not found in factory alias table, nor in ROOT class table" << endl;
290 className =
tc->GetName();
294 coutE(
ObjectHandling) <<
"RooFactoryWSTool::createArg() ERROR class " << className <<
" does not inherit from RooAbsArg" << endl;
325 if (
ca.first.empty()) {
326 coutE(
ObjectHandling) <<
"RooFactoryWSTool::createArg() ERROR no suitable constructor found for class " << className << endl ;
334 if (
ca.second==
ca.first.size()) {
335 coutE(
ObjectHandling) <<
"RooFactoryWSTool::createArg() ERROR number of arguments provided (" <<
_args.size() <<
") for class is invalid, " << className
336 <<
" expects " <<
ca.first.size()-2 << endl ;
339 coutE(
ObjectHandling) <<
"RooFactoryWSTool::createArg() ERROR number of arguments provided (" <<
_args.size() <<
") for class is invalid " << className
340 <<
" expect number between " <<
ca.second-2 <<
" and " <<
ca.first.size()-2 << endl ;
356 for (vector<string>::iterator
ai =
_args.begin() ;
ai !=
_args.end() ; ++
ai,++
ti,++i) {
357 if ((*
ti)==
"RooAbsReal&" || (*ti)==
"const RooAbsReal&" || (*ti)==
"RooAbsReal::Ref") {
360 }
else if ((*
ti)==
"RooAbsArg&" || (*
ti)==
"const RooAbsArg&") {
363 }
else if ((*
ti)==
"RooRealVar&" || (*
ti)==
"const RooRealVar&") {
366 }
else if ((*
ti)==
"RooAbsRealLValue&" || (*
ti)==
"const RooAbsRealLValue&") {
369 }
else if ((*
ti)==
"RooCategory&" || (*
ti)==
"const RooCategory&") {
372 }
else if ((*
ti)==
"RooAbsCategory&" || (*
ti)==
"const RooAbsCategory&") {
374 cintExpr +=
Form(
",RooFactoryWSTool::as_CATFUNC(%d)",i) ;
375 }
else if ((*
ti)==
"RooAbsCategoryLValue&" || (*
ti)==
"const RooAbsCategoryLValue&") {
378 }
else if ((*
ti)==
"RooAbsPdf&" || (*
ti)==
"const RooAbsPdf&") {
381 }
else if ((*
ti)==
"RooResolutionModel&" || (*
ti)==
"const RooResolutionModel&") {
383 cintExpr +=
Form(
",RooFactoryWSTool::as_RMODEL(%d)",i) ;
384 }
else if ((*
ti)==
"RooAbsData&" || (*
ti)==
"const RooAbsData&") {
387 }
else if ((*
ti)==
"RooDataSet&" || (*
ti)==
"const RooDataSet&") {
390 }
else if ((*
ti)==
"RooDataHist&" || (*
ti)==
"const RooDataHist&") {
393 }
else if ((*
ti)==
"const RooArgSet&") {
396 }
else if ((*
ti)==
"const RooArgList&") {
399 }
else if ((*
ti)==
"const char*") {
401 cintExpr +=
Form(
",RooFactoryWSTool::as_STRING(%d)",i) ;
402 }
else if ((*
ti)==
"Int_t" || (*
ti)==
"int" || (*
ti)==
"bool" || (*
ti)==
"bool") {
405 }
else if ((*
ti)==
"double") {
407 cintExpr +=
Form(
",RooFactoryWSTool::as_DOUBLE(%d)",i) ;
411 if (
_args[i].find(
Form(
"%s::",className)) != string::npos) {
419 throw string(
Form(
"Supplied argument %s does not represent a valid state of enum %s",
_args[i].c_str(),
ti->c_str())) ;
427 if (
ti->find(
"const ")==0) {
428 btype =
ti->c_str()+6 ;
432 if (btype.find(
'&')) {
433 btype.erase(btype.size()-1,btype.size()) ;
440 cintExpr +=
Form(
",(%s&)RooFactoryWSTool::as_OBJ(%d)",
ti->c_str(),i) ;
442 throw string(
Form(
"Required argument with name %s of type '%s' is not in the workspace",
_args[i].c_str(),
ti->c_str())) ;
447 }
catch (
const string &err) {
448 coutE(
ObjectHandling) <<
"RooFactoryWSTool::createArg() ERROR constructing " << className <<
"::" <<
objName <<
": " << err << endl ;
456 if (std::unique_ptr<RooAbsArg> arg{
reinterpret_cast<RooAbsArg*
>(
gROOT->ProcessLineFast(
cintExpr.c_str()))}) {
457 if (
string(className)==
"RooGenericPdf") {
459 }
else if (
string(className)==
"RooFormulaVar") {
468 coutE(
ObjectHandling) <<
"RooFactoryWSTool::createArg() ERROR in CINT constructor call to create object" << endl ;
503 }
catch (
const string &err) {
545 }
catch (
const string &err) {
587 }
catch (
const string &err) {
588 coutE(
ObjectHandling) <<
"RooFactoryWSTool::prod(" <<
objName <<
") ERROR creating RooProdPdf Conditional argument: " << err << endl ;
604 std::unique_ptr<RooProdPdf> pdf;
607 }
catch (
const string &err) {
608 coutE(
ObjectHandling) <<
"RooFactoryWSTool::prod(" <<
objName <<
") ERROR creating RooProdPdf input set of regular pdfs: " << err << endl ;
614 pdf->setStringAttribute(
"factory_tag",
Form(
"PROD::%s(%s)",
objName,pdfList)) ;
638 <<
" expect mapping token of form 'state=pdfName', but found '" <<
tok <<
"'" << endl ;
646 }
catch (
const string &err ) {
656 std::unique_ptr<RooSimultaneous> pdf;
659 }
catch (
const string &err) {
666 pdf->setStringAttribute(
"factory_tag",
Form(
"SIMUL::%s(%s,%s)",
objName,indexCat,
pdfMap)) ;
699 }
catch (
const string &err) {
706 coutE(
ObjectHandling) <<
"RooFactoryWSTool::addfunc(" <<
objName <<
") ERROR creating RooAddition: syntax error: either all sum terms must be products or none" << endl ;
835 char*
buftmp = buf.data();
854 }
catch (
const string &error) {
855 coutE(
ObjectHandling) <<
"RooFactoryWSTool::processExpression() ERROR in parsing: " << error << endl ;
861 coutE(
ObjectHandling) <<
"RooFactoryWSTool::processExpression() ERRORS detected, transaction to workspace aborted, no objects committed" << endl ;
867 return !out.empty() ?
ws().
arg(out) : nullptr ;
886 if (
string(
token).find(
"$Alias(")==0) {
925 if (*
p==
'{' || *
p==
'(' || *
p==
'[')
blevel++ ;
926 if (*
p==
'}' || *
p==
')' || *
p==
']')
blevel-- ;
934 separator.push_back(*
p) ;
950 list<char>::iterator
ic = separator.
begin() ;
953 if (
ic != separator.
end()) {
980 if (arg[0]==
'\'' || arg[0]==
'"') {
986 std::vector<char> buf(
bufSize);
988 char*
bufptr = buf.data();
1012 if (*
p==
'{' || *
p==
'(' || *
p==
'[')
blevel++ ;
1013 if (*
p==
'}' || *
p==
')' || *
p==
']')
blevel-- ;
1024 args.push_back(
tok) ;
1033 if (
p>
bufptr && (*(
p-1)==
')'||*(
p-1)==
']')) {
1044 args.push_back(tmp) ;
1052 for(
const char* pp=arg ; *pp!=0 ; pp++) {
1053 if (*pp==
'(' || *pp==
'[' || *pp==
'{') {
1059 if (
strstr(func.c_str(),
"::")) {
1064 coutE(
ObjectHandling) <<
"RooFactoryWSTool::processSingleExpression(" << arg <<
"): ERROR: Syntax error: Class::Instance must be followed by (...)" << endl ;
1067 }
else if (func[0]!=
'$'){
1071 }
else if (
lb==
'(') {
1093 coutE(
ObjectHandling) <<
"RooFactoryWSTool::processSingleExpression(" << arg <<
"): ERROR: Syntax error: expect either Class(...) or Instance[...]" << endl ;
1101 coutE(
ObjectHandling) <<
"RooFactoryWSTool::processSingleExpression(" << arg <<
"): ERROR: Syntax error: $MetaClass must be followed by (...)" << endl ;
1122 std::vector<char> buf(
bufSize);
1125 std::vector<string> args ;
1128 char*
tok = buf.data()+1 ;
1129 char*
p = buf.data()+1 ;
1136 if (*
p==
'{' || *
p==
'(' || *
p==
'[') level++ ;
1137 if (*
p==
'}' || *
p==
')' || *
p==
']') level-- ;
1143 if (level==0 && ((*
p)==
',')) {
1145 args.push_back(
tok) ;
1153 if (
p>buf.data() && *(
p-1)==
'}') {
1156 args.push_back(
tok) ;
1161 vector<string>::iterator iter = args.begin() ;
1163 while(iter!= args.end()) {
1188 if (args.size()!=2) {
1189 coutE(
ObjectHandling) <<
"RooFactorWSTool::processAliasExpression() ERROR $Alias() takes exactly two arguments, " << args.size() <<
" args found" << endl ;
1209 map<string,string>::iterator item =
_typeAliases.find(className) ;
1213 className = item->second.c_str() ;
1226 coutE(
ObjectHandling) <<
"RooFactoryWSTool::createArg() ERROR class " << className <<
" not defined in ROOT class table" << endl ;
1243 for (vector<string>::iterator iter = args.
begin() ; iter!=args.
end() ; ++iter) {
1244 if (iter!=args.
begin()) {
1271 string first = *(args.
begin()) ;
1272 if (
isdigit(first[0]) || first[0]==
'.' || first[0]==
'+' || first[0]==
'-') {
1275 vector<string>::iterator
ai = args.
begin() ;
1276 if (args.size()==1) {
1279 double xinit = atof((
ai)->c_str()) ;
1282 tmp.setStringAttribute(
"factory_tag",
varTag(func,args).c_str()) ;
1287 }
else if (args.size()==2) {
1290 double xlo = atof((
ai++)->c_str()) ;
1291 double xhi = atof(
ai->c_str()) ;
1292 cxcoutD(
ObjectHandling) <<
"CREATE variable " << func <<
" xlo = " << xlo <<
" xhi = " << xhi << endl ;
1293 RooRealVar tmp(func.c_str(),func.c_str(),xlo,xhi) ;
1294 tmp.setStringAttribute(
"factory_tag",
varTag(func,args).c_str()) ;
1299 }
else if (args.size()==3) {
1302 double xinit = atof((
ai++)->c_str()) ;
1303 double xlo = atof((
ai++)->c_str()) ;
1304 double xhi = atof(
ai->c_str()) ;
1305 cxcoutD(
ObjectHandling) <<
"CREATE variable " << func <<
" xinit = " <<
xinit <<
" xlo = " << xlo <<
" xhi = " << xhi << endl ;
1307 tmp.setStringAttribute(
"factory_tag",
varTag(func,args).c_str()) ;
1316 for (vector<string>::iterator
ai = args.
begin() ;
ai!=args.
end() ; ++
ai) {
1345 const char *className =
R__STRTOK_R(buf,
":",&save) ;
1347 if (!className) className =
"";
1353 vector<string>::iterator iter = args.
begin() ;
1356 while(iter!=args.
end()) {
1362 pargv.push_back(tmp) ;
1389 vector<string>::iterator iter = args.begin() ;
1391 while(iter!=args.end()) {
1395 pargv.push_back(tmp) ;
1412 std::vector<char> buf(
bufSize);
1414 char*
bufptr = buf.data();
1436 if (*
p==
'{' || *
p==
'(' || *
p==
'[')
blevel++ ;
1437 if (*
p==
'}' || *
p==
')' || *
p==
']')
blevel-- ;
1448 args.push_back(
tok) ;
1468 args.push_back(tmp) ;
1487 const char* ptr = arg ;
1502 coutE(
ObjectHandling) <<
"RooFactoryWSTool::checkSyntax ERROR non-matching '" << (
nBracket>0?
"[":
"]") <<
"' in expression" << endl ;
1518 if (idx>
_of->_args.size()-1) {
1519 throw string(
Form(
"Need argument number %d, but only %d args are provided",idx,(
Int_t)
_of->_args.size())) ;
1531 if (arg[0]==
'.' || arg[0]==
'+' || arg[0] ==
'-' ||
isdigit(arg[0])) {
1538 throw string(
Form(
"RooAbsArg named %s not found",arg)) ;
1551 if (arg[0]==
'.' || arg[0]==
'+' || arg[0] ==
'-' ||
isdigit(arg[0])) {
1557 throw string(
Form(
"RooAbsReal named %s not found",arg)) ;
1561 throw string(
Form(
"Object named %s is not of type RooAbsReal",arg)) ;
1574 if (arg[0]==
'.' || arg[0]==
'+' || arg[0] ==
'-' ||
isdigit(arg[0])) {
1575 throw string(
Form(
"Numeric literal provided for argument (%s), but lvalue is required",arg)) ;
1580 throw string(
Form(
"RooAbsRealLValue named %s not found",arg)) ;
1584 throw string(
Form(
"Object named %s is not of type RooAbsRealLValue",arg)) ;
1598 throw string(
Form(
"RooRealVar named %s not found",arg)) ;
1613 throw string(
Form(
"RooAbsPdf named %s not found",arg)) ;
1628 throw string(
Form(
"RooResolutionModel named %s not found",arg)) ;
1632 throw string(
Form(
"Object named %s is not of type RooResolutionModel",arg)) ;
1647 throw string(
Form(
"RooAbsCategory named %s not found",arg)) ;
1651 throw string(
Form(
"Object named %s is not of type RooAbsCategory",arg)) ;
1665 throw string(
Form(
"RooAbsCategoryLValue named %s not found",arg)) ;
1670 throw string(
Form(
"Object named %s is not of type RooAbsCategoryLValue",arg)) ;
1684 throw string(
Form(
"RooCategory named %s not found",arg)) ;
1722 }
else if (
tok[0] ==
'\'') {
1731 throw string(
Form(
"RooAbsArg named %s not found",
tok)) ;
1758 }
else if (
tok[0] ==
'\'') {
1767 throw string(
Form(
"RooAbsArg named %s not found",
tok)) ;
1785 throw string(
Form(
"RooAbsData named %s not found",arg)) ;
1799 throw string(
Form(
"RooAbsData named %s not found",arg)) ;
1803 throw string(
Form(
"Dataset named %s is not of type RooDataHist",arg)) ;
1816 throw string(
Form(
"RooAbsData named %s not found",arg)) ;
1820 throw string(
Form(
"Dataset named %s is not of type RooDataSet",arg)) ;
1833 throw string(
Form(
"Object named %s not found",arg)) ;
1849 if (arg==
nullptr ||
strlen(arg)==0) {
1856 const char*
p = arg+1 ;
1857 while(*
p && (*
p) !=
'"' && (*
p) !=
'\'' ) {
1916 vector<string>::iterator iter = args.begin() ;
1918 while(iter!=args.end()) {
1920 string tmp =
ft.processExpression(iter->c_str()) ;
1922 pargv.push_back(tmp) ;
1927 string cl(typeName) ;
1933 }
else if (cl==
"RSUM") {
1938 }
else if (cl==
"ASUM") {
1943 }
else if (cl==
"PROD") {
1948 }
else if (cl==
"SIMUL") {
1951 if (
pargv.size()>1) {
1957 }
else if (cl==
"EXPR") {
1960 if (args.size()<=2) {
1966 for (
UInt_t i=1 ; i<args.size() ; i++) {
1974 }
else if (cl==
"FCONV") {
1979 }
else if (cl==
"NCONV") {
1984 }
else if (cl==
"sum") {
1989 }
else if (cl==
"prod") {
1994 }
else if (cl==
"expr") {
1997 if (args.size()<=2) {
2003 for (
UInt_t i=1 ; i<args.size() ; i++) {
2011 }
else if (cl ==
"taylorexpand") {
2019 if (
pargv.size() < 2)
2020 throw string(
Form(
"taylorexpand::%s, requires atleast 2 arguments (function, observables) atleast, has %d arguments",
instName, (
Int_t)
pargv.size()));
2025 if (
pargv.size() > 3)
2026 order = atoi(
pargv[3].c_str());
2027 if (
pargv.size() > 2) {
2028 if (
pargv[2].find(
',') != string::npos) {
2030 Form(
"taylorexpand::%s, factory syntax supports expansion only around same value for all observables",
instName));
2036 if (
pargv.size() > 3)
2037 order = atoi(
pargv[3].c_str());
2038 if (
pargv.size() > 4)
2040 if (
pargv.size() > 5)
2043 if (
pargv.size() > 6) {
2051 }
else if (cl==
"nconv") {
2056#ifdef ROOFIT_LEGACY_EVAL_BACKEND
2057 }
else if (cl==
"nll") {
2061 if (
ft.ws().import(nll,
Silence()))
ft.logError() ;
2063 }
else if (cl==
"chi2") {
2067 if (
ft.ws().import(nll,
Silence()))
ft.logError() ;
2070 }
else if (cl==
"profile") {
2075 }
else if (cl==
"dataobs") {
2081 if (
ft.ws().import(*arg,
Silence()))
ft.logError() ;
2084 }
else if (cl==
"int") {
2092 throw string(
Form(
"int::%s, requires 2 or 3 arguments, have %d arguments",
instName,(
Int_t)
pargv.size())) ;
2101 if (!intobs) intobs=
"" ;
2106 std::unique_ptr<RooAbsReal> integral;
2107 if (
pargv.size()==2) {
2111 integral = std::unique_ptr<RooAbsReal>{func.
createIntegral(
ft.asSET(intobs))};
2122 if (
ft.ws().import(*integral,
Silence()))
ft.logError() ;
2124 }
else if (cl==
"deriv") {
2129 throw string(
Form(
"deriv::%s, requires 2 or 3 arguments, have %d arguments",
instName,(
Int_t)
pargv.size())) ;
2134 std::unique_ptr<RooAbsReal> derivative;
2135 if (
pargv.size()==2) {
2142 if (
ft.ws().import(*derivative,
Silence()))
ft.logError() ;
2144 }
else if (cl==
"cdf") {
2149 throw string(
Form(
"cdf::%s, requires 2 or 3 arguments, have %d arguments",
instName,(
Int_t)
pargv.size())) ;
2154 std::unique_ptr<RooAbsReal>
cdf;
2155 if (
pargv.size()==2) {
2165 }
else if (cl==
"PROJ") {
2168 if (
pargv.size()!=2) {
2178 }
else if (cl==
"set") {
2188 throw string(
Form(
"RooFactoryWSTool::SpecialsIFace::create() ERROR: Unknown meta-type %s",typeName)) ;
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t property
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
const_iterator begin() const
const_iterator end() const
Common abstract base class for objects that represent a value and a "shape" in RooFit.
void setStringAttribute(const Text_t *key, const Text_t *value)
Associate string 'value' to this object under key 'key'.
Abstract base class for objects that represent a discrete value that can be set from the outside,...
A space to attach TBranches.
virtual bool add(const RooAbsArg &var, bool silent=false)
Add the specified argument to list.
Storage_t::size_type size() const
Abstract base class for binned and unbinned datasets.
Abstract interface for all probability density functions.
RooFit::OwningPtr< RooAbsReal > createCdf(const RooArgSet &iset, const RooArgSet &nset=RooArgSet())
Create a cumulative distribution function of this p.d.f in terms of the observables listed in iset.
virtual RooAbsPdf * createProjection(const RooArgSet &iset)
Return a p.d.f that represent a projection of this p.d.f integrated over given observables.
Abstract base class for objects that represent a real value that may appear on the left hand side of ...
Abstract base class for objects that represent a real value and implements functionality common to al...
RooFit::OwningPtr< RooAbsReal > createIntegral(const RooArgSet &iset, const RooCmdArg &arg1, const RooCmdArg &arg2={}, const RooCmdArg &arg3={}, const RooCmdArg &arg4={}, const RooCmdArg &arg5={}, const RooCmdArg &arg6={}, const RooCmdArg &arg7={}, const RooCmdArg &arg8={}) const
Create an object that represents the integral of the function over one or more observables listed in ...
RooDerivative * derivative(RooRealVar &obs, Int_t order=1, double eps=0.001)
Return function representing first, second or third order derivative of this function.
Efficient implementation of a sum of PDFs of the form.
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.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Object to represent discrete states.
bool defineType(const std::string &label)
Define a state with given name.
Simple calculation from a binned dataset and a PDF.
Container class to hold N-dimensional binned data.
Container class to hold unbinned data.
Collection class for internal use, storing a collection of RooAbsArg pointers in a doubly linked list...
Implements a -log(likelihood) calculation from a dataset and a PDF.
static std::unique_ptr< RooPolyFunc > taylorExpand(const char *name, const char *title, RooAbsReal &func, const RooArgList &observables, int order=1, std::vector< double > const &observableValues={}, double eps1=1e-6, double eps2=1e-3)
Taylor expanding given function in terms of observables around observableValues.
Efficient implementation of a product of PDFs of the form.
Represents the product of a given set of RooAbsReal objects.
Implements a PDF constructed from a sum of functions:
Variable that can be changed from the outside.
RooResolutionModel is the base class for PDFs that represent a resolution model that can be convolute...
Facilitates simultaneous fitting of multiple PDFs to subsets of a given dataset.
A RooAbsArg implementing string values.
TObject * obj(RooStringView name) const
Return any type of object (RooAbsArg, RooAbsData or generic object) with given name)
RooAbsPdf * pdf(RooStringView name) const
Retrieve p.d.f (RooAbsPdf) with given name. A null pointer is returned if not found.
RooCategory * cat(RooStringView name) const
Retrieve discrete variable (RooCategory) with given name. A null pointer is returned if not found.
const RooArgSet * set(RooStringView name)
Return pointer to previously defined named set with given nmame If no such set is found a null pointe...
bool cancelTransaction()
Cancel an ongoing import transaction.
bool startTransaction()
Open an import transaction operations.
RooAbsReal * function(RooStringView name) const
Retrieve function (RooAbsReal) with given name. Note that all RooAbsPdfs are also RooAbsReals....
RooAbsArg * arg(RooStringView name) const
Return RooAbsArg with given name. A null pointer is returned if none is found.
bool import(const RooAbsArg &arg, const RooCmdArg &arg1={}, const RooCmdArg &arg2={}, const RooCmdArg &arg3={}, const RooCmdArg &arg4={}, const RooCmdArg &arg5={}, const RooCmdArg &arg6={}, const RooCmdArg &arg7={}, const RooCmdArg &arg8={}, const RooCmdArg &arg9={})
Import a RooAbsArg object, e.g.
RooRealVar * var(RooStringView name) const
Retrieve real-valued variable (RooRealVar) with given name. A null pointer is returned if not found.
RooAbsData * data(RooStringView name) const
Retrieve dataset (binned or unbinned) with given name. A null pointer is returned if not found.
TClass instances represent classes, structs and namespaces in the ROOT type system.
static TClass * GetClass(const char *name, Bool_t load=kTRUE, Bool_t silent=kFALSE)
Static method returning pointer to TClass of the specified class name.
static TEnum * GetEnum(const std::type_info &ti, ESearchAction sa=kALoadAndInterpLookup)
TObject * Clone(const char *newname="") const override
Make a clone of an object using the Streamer facility.
const char * GetName() const override
Returns name of object.
Mother of all ROOT objects.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
RooCmdArg Conditional(const RooArgSet &pdfSet, const RooArgSet &depSet, bool depsAreCond=false)
RooConstVar & RooConst(double val)
RooCmdArg Silence(bool flag=true)
RooCmdArg NormSet(Args_t &&... argsOrArgSet)
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
static uint64_t sum(uint64_t i)