61#ifdef ROOFIT_LEGACY_EVAL_BACKEND
67using std::string, std::map, std::list, std::pair, std::endl, std::vector;
69#define BUFFER_SIZE 64000
130 coutE(
ObjectHandling) <<
"RooFactoryWSTool::createFactory() ERROR: variable with name '" <<
name <<
"' already exists" << std::endl ;
166 Int_t id = atoi(sep+1) ;
185 bool isEnum(
const char* classname) {
236 if (
string(classname) !=
gInterpreter->MethodInfo_TypeName(func)) {
280 static std::map<pair<string, std::size_t>,
pair<list<string>,
unsigned int>> cache;
281 auto key = std::make_pair(
string(classname),
nPassedArgs);
282 auto it = cache.find(key);
283 if (it == cache.end()) {
301 coutE(
ObjectHandling) <<
"RooFactoryWSTool::createArg() ERROR class " << className <<
" not found in factory alias table, nor in ROOT class table" << std::endl;
306 className =
tc->GetName();
310 coutE(
ObjectHandling) <<
"RooFactoryWSTool::createArg() ERROR class " << className <<
" does not inherit from RooAbsArg" << std::endl;
341 if (
ca.first.empty()) {
342 coutE(
ObjectHandling) <<
"RooFactoryWSTool::createArg() ERROR no suitable constructor found for class " << className << std::endl ;
350 if (
ca.second==
ca.first.size()) {
351 coutE(
ObjectHandling) <<
"RooFactoryWSTool::createArg() ERROR number of arguments provided (" <<
_args.size() <<
") for class is invalid, " << className
352 <<
" expects " <<
ca.first.size()-2 << std::endl ;
355 coutE(
ObjectHandling) <<
"RooFactoryWSTool::createArg() ERROR number of arguments provided (" <<
_args.size() <<
") for class is invalid " << className
356 <<
" expect number between " <<
ca.second-2 <<
" and " <<
ca.first.size()-2 << std::endl ;
371 list<string>::const_iterator
ti =
ca.first.
begin() ; ++
ti ; ++
ti ;
372 for (vector<string>::iterator
ai =
_args.begin() ;
ai !=
_args.end() ; ++
ai,++
ti,++i) {
373 if ((*
ti)==
"RooAbsReal&" || (*ti)==
"const RooAbsReal&" || (*ti)==
"RooAbsReal::Ref") {
376 }
else if ((*
ti)==
"RooAbsArg&" || (*
ti)==
"const RooAbsArg&") {
379 }
else if ((*
ti)==
"RooRealVar&" || (*
ti)==
"const RooRealVar&") {
382 }
else if ((*
ti)==
"RooAbsRealLValue&" || (*
ti)==
"const RooAbsRealLValue&") {
385 }
else if ((*
ti)==
"RooCategory&" || (*
ti)==
"const RooCategory&") {
388 }
else if ((*
ti)==
"RooAbsCategory&" || (*
ti)==
"const RooAbsCategory&") {
390 cintExpr +=
Form(
",RooFactoryWSTool::as_CATFUNC(%d)",i) ;
391 }
else if ((*
ti)==
"RooAbsCategoryLValue&" || (*
ti)==
"const RooAbsCategoryLValue&") {
394 }
else if ((*
ti)==
"RooAbsPdf&" || (*
ti)==
"const RooAbsPdf&") {
397 }
else if ((*
ti)==
"RooResolutionModel&" || (*
ti)==
"const RooResolutionModel&") {
399 cintExpr +=
Form(
",RooFactoryWSTool::as_RMODEL(%d)",i) ;
400 }
else if ((*
ti)==
"RooAbsData&" || (*
ti)==
"const RooAbsData&") {
403 }
else if ((*
ti)==
"RooDataSet&" || (*
ti)==
"const RooDataSet&") {
406 }
else if ((*
ti)==
"RooDataHist&" || (*
ti)==
"const RooDataHist&") {
409 }
else if ((*
ti)==
"const RooArgSet&") {
412 }
else if ((*
ti)==
"const RooArgList&") {
415 }
else if ((*
ti)==
"const char*") {
417 cintExpr +=
Form(
",RooFactoryWSTool::as_STRING(%d)",i) ;
418 }
else if ((*
ti)==
"Int_t" || (*
ti)==
"int" || (*
ti)==
"bool" || (*
ti)==
"bool") {
421 }
else if ((*
ti)==
"double") {
423 cintExpr +=
Form(
",RooFactoryWSTool::as_DOUBLE(%d)",i) ;
427 if (
_args[i].find(
Form(
"%s::",className)) != string::npos) {
435 throw string(
Form(
"Supplied argument %s does not represent a valid state of enum %s",
_args[i].c_str(),
ti->c_str())) ;
443 if (
ti->find(
"const ")==0) {
444 btype =
ti->c_str()+6 ;
448 if (btype.find(
'&')) {
449 btype.erase(btype.size()-1,btype.size()) ;
456 cintExpr +=
Form(
",(%s&)RooFactoryWSTool::as_OBJ(%d)",
ti->c_str(),i) ;
458 throw string(
Form(
"Required argument with name %s of type '%s' is not in the workspace",
_args[i].c_str(),
ti->c_str())) ;
463 }
catch (
const string &err) {
464 coutE(
ObjectHandling) <<
"RooFactoryWSTool::createArg() ERROR constructing " << className <<
"::" <<
objName <<
": " << err << std::endl ;
472 if (std::unique_ptr<RooAbsArg> arg{
reinterpret_cast<RooAbsArg*
>(
gROOT->ProcessLineFast(
cintExpr.c_str()))}) {
473 if (
string(className)==
"RooGenericPdf") {
475 }
else if (
string(className)==
"RooFormulaVar") {
484 coutE(
ObjectHandling) <<
"RooFactoryWSTool::createArg() ERROR in Cling constructor call to create object" << std::endl ;
519 }
catch (
const string &err) {
561 }
catch (
const string &err) {
603 }
catch (
const string &err) {
604 coutE(
ObjectHandling) <<
"RooFactoryWSTool::prod(" <<
objName <<
") ERROR creating RooProdPdf Conditional argument: " << err << std::endl ;
620 std::unique_ptr<RooProdPdf> pdf;
623 }
catch (
const string &err) {
624 coutE(
ObjectHandling) <<
"RooFactoryWSTool::prod(" <<
objName <<
") ERROR creating RooProdPdf input set of regular pdfs: " << err << std::endl ;
630 pdf->setStringAttribute(
"factory_tag",
Form(
"PROD::%s(%s)",
objName,pdfList)) ;
654 <<
" expect mapping token of form 'state=pdfName', but found '" <<
tok <<
"'" << std::endl ;
662 }
catch (
const string &err ) {
672 std::unique_ptr<RooSimultaneous> pdf;
675 }
catch (
const string &err) {
682 pdf->setStringAttribute(
"factory_tag",
Form(
"SIMUL::%s(%s,%s)",
objName,indexCat,
pdfMap)) ;
715 }
catch (
const string &err) {
722 coutE(
ObjectHandling) <<
"RooFactoryWSTool::addfunc(" <<
objName <<
") ERROR creating RooAddition: syntax error: either all sum terms must be products or none" << std::endl ;
851 char*
buftmp = buf.data();
870 }
catch (
const string &error) {
871 coutE(
ObjectHandling) <<
"RooFactoryWSTool::processExpression() ERROR in parsing: " << error << std::endl ;
877 coutE(
ObjectHandling) <<
"RooFactoryWSTool::processExpression() ERRORS detected, transaction to workspace aborted, no objects committed" << std::endl ;
883 return !out.empty() ?
ws().
arg(out) : nullptr ;
902 if (
string(token).find(
"$Alias(")==0) {
941 if (*
p==
'{' || *
p==
'(' || *
p==
'[')
blevel++ ;
942 if (*
p==
'}' || *
p==
')' || *
p==
']')
blevel-- ;
950 separator.push_back(*
p) ;
966 list<char>::iterator
ic = separator.
begin() ;
969 if (
ic != separator.
end()) {
996 if (arg[0]==
'\'' || arg[0]==
'"') {
1002 std::vector<char> buf(
bufSize);
1004 char*
bufptr = buf.data();
1028 if (*
p==
'{' || *
p==
'(' || *
p==
'[')
blevel++ ;
1029 if (*
p==
'}' || *
p==
')' || *
p==
']')
blevel-- ;
1040 args.push_back(
tok) ;
1049 if (
p>
bufptr && (*(
p-1)==
')'||*(
p-1)==
']')) {
1060 args.push_back(
tmp) ;
1068 for(
const char* pp=arg ; *pp!=0 ; pp++) {
1069 if (*pp==
'(' || *pp==
'[' || *pp==
'{') {
1075 if (
strstr(func.c_str(),
"::")) {
1080 coutE(
ObjectHandling) <<
"RooFactoryWSTool::processSingleExpression(" << arg <<
"): ERROR: Syntax error: Class::Instance must be followed by (...)" << std::endl ;
1083 }
else if (func[0]!=
'$'){
1087 }
else if (
lb==
'(') {
1109 coutE(
ObjectHandling) <<
"RooFactoryWSTool::processSingleExpression(" << arg <<
"): ERROR: Syntax error: expect either Class(...) or Instance[...]" << std::endl ;
1117 coutE(
ObjectHandling) <<
"RooFactoryWSTool::processSingleExpression(" << arg <<
"): ERROR: Syntax error: $MetaClass must be followed by (...)" << std::endl ;
1138 std::vector<char> buf(
bufSize);
1141 std::vector<string> args ;
1144 char*
tok = buf.data()+1 ;
1145 char*
p = buf.data()+1 ;
1152 if (*
p==
'{' || *
p==
'(' || *
p==
'[') level++ ;
1153 if (*
p==
'}' || *
p==
')' || *
p==
']') level-- ;
1159 if (level==0 && ((*
p)==
',')) {
1161 args.push_back(
tok) ;
1169 if (
p>buf.data() && *(
p-1)==
'}') {
1172 args.push_back(
tok) ;
1177 vector<string>::iterator iter = args.begin() ;
1179 while(iter!= args.end()) {
1204 if (args.size()!=2) {
1205 coutE(
ObjectHandling) <<
"RooFactorWSTool::processAliasExpression() ERROR $Alias() takes exactly two arguments, " << args.size() <<
" args found" << std::endl ;
1229 className =
item->second.c_str() ;
1242 coutE(
ObjectHandling) <<
"RooFactoryWSTool::createArg() ERROR class " << className <<
" not defined in ROOT class table" << std::endl ;
1259 for (vector<string>::iterator iter = args.
begin() ; iter!=args.
end() ; ++iter) {
1260 if (iter!=args.
begin()) {
1286 string first = *(args.
begin());
1287 bool isNumeric =
isdigit(first[0]) || first[0] ==
'.' || first[0] ==
'+' || first[0] ==
'-';
1292 for (
auto const &
ai : args) {
1302 std::unique_ptr<RooRealVar>
tmp;
1304 if (args.size() == 1) {
1306 tmp = std::make_unique<RooRealVar>(func.c_str(), func.c_str(),
xinit);
1308 }
else if (args.size() == 2) {
1311 tmp = std::make_unique<RooRealVar>(func.c_str(), func.c_str(), xlo, xhi);
1313 }
else if (args.size() == 3) {
1317 tmp = std::make_unique<RooRealVar>(func.c_str(), func.c_str(),
xinit, xlo, xhi);
1321 tmp->setStringAttribute(
"factory_tag",
varTag(func, args).c_str());
1346 const char *className =
R__STRTOK_R(buf,
":",&save) ;
1348 if (!className) className =
"";
1354 vector<string>::iterator iter = args.
begin() ;
1357 while(iter!=args.
end()) {
1390 vector<string>::iterator iter = args.begin() ;
1392 while(iter!=args.end()) {
1413 std::vector<char> buf(
bufSize);
1415 char*
bufptr = buf.data();
1437 if (*
p==
'{' || *
p==
'(' || *
p==
'[')
blevel++ ;
1438 if (*
p==
'}' || *
p==
')' || *
p==
']')
blevel-- ;
1449 args.push_back(
tok) ;
1469 args.push_back(
tmp) ;
1488 const char* ptr = arg ;
1503 coutE(
ObjectHandling) <<
"RooFactoryWSTool::checkSyntax ERROR non-matching '" << (
nBracket>0?
"[":
"]") <<
"' in expression" << std::endl ;
1507 coutE(
ObjectHandling) <<
"RooFactoryWSTool::checkSyntax ERROR non-matching '" << (
nAccolade>0?
"{":
"}") <<
"' in expression" << std::endl ;
1519 if (idx>
_of->_args.size()-1) {
1520 throw string(
Form(
"Need argument number %d, but only %d args are provided",idx,(
Int_t)
_of->_args.size())) ;
1532 if (arg[0]==
'.' || arg[0]==
'+' || arg[0] ==
'-' ||
isdigit(arg[0])) {
1539 throw string(
Form(
"RooAbsArg named %s not found",arg)) ;
1552 if (arg[0]==
'.' || arg[0]==
'+' || arg[0] ==
'-' ||
isdigit(arg[0])) {
1558 throw string(
Form(
"RooAbsReal named %s not found",arg)) ;
1562 throw string(
Form(
"Object named %s is not of type RooAbsReal",arg)) ;
1575 if (arg[0]==
'.' || arg[0]==
'+' || arg[0] ==
'-' ||
isdigit(arg[0])) {
1576 throw string(
Form(
"Numeric literal provided for argument (%s), but lvalue is required",arg)) ;
1581 throw string(
Form(
"RooAbsRealLValue named %s not found",arg)) ;
1585 throw string(
Form(
"Object named %s is not of type RooAbsRealLValue",arg)) ;
1599 throw string(
Form(
"RooRealVar named %s not found",arg)) ;
1614 throw string(
Form(
"RooAbsPdf named %s not found",arg)) ;
1629 throw string(
Form(
"RooResolutionModel named %s not found",arg)) ;
1633 throw string(
Form(
"Object named %s is not of type RooResolutionModel",arg)) ;
1648 throw string(
Form(
"RooAbsCategory named %s not found",arg)) ;
1652 throw string(
Form(
"Object named %s is not of type RooAbsCategory",arg)) ;
1666 throw string(
Form(
"RooAbsCategoryLValue named %s not found",arg)) ;
1671 throw string(
Form(
"Object named %s is not of type RooAbsCategoryLValue",arg)) ;
1685 throw string(
Form(
"RooCategory named %s not found",arg)) ;
1723 }
else if (
tok[0] ==
'\'') {
1732 throw string(
Form(
"RooAbsArg named %s not found",
tok)) ;
1759 }
else if (
tok[0] ==
'\'') {
1768 throw string(
Form(
"RooAbsArg named %s not found",
tok)) ;
1786 throw string(
Form(
"RooAbsData named %s not found",arg)) ;
1800 throw string(
Form(
"RooAbsData named %s not found",arg)) ;
1804 throw string(
Form(
"Dataset named %s is not of type RooDataHist",arg)) ;
1817 throw string(
Form(
"RooAbsData named %s not found",arg)) ;
1821 throw string(
Form(
"Dataset named %s is not of type RooDataSet",arg)) ;
1834 throw string(
Form(
"Object named %s not found",arg)) ;
1850 if (arg==
nullptr ||
strlen(arg)==0) {
1857 const char*
p = arg+1 ;
1858 while(*
p && (*
p) !=
'"' && (*
p) !=
'\'' ) {
1917 vector<string>::iterator iter = args.begin() ;
1919 while(iter!=args.end()) {
1921 string tmp =
ft.processExpression(iter->c_str()) ;
1928 string cl(typeName) ;
1934 }
else if (cl==
"RSUM") {
1939 }
else if (cl==
"ASUM") {
1944 }
else if (cl==
"PROD") {
1949 }
else if (cl==
"SIMUL") {
1952 if (
pargv.size()>1) {
1958 }
else if (cl==
"EXPR") {
1961 if (args.size()<=2) {
1967 for (
UInt_t i=1 ; i<args.size() ; i++) {
1975 }
else if (cl==
"FCONV") {
1980 }
else if (cl==
"NCONV") {
1985 }
else if (cl==
"sum") {
1990 }
else if (cl==
"prod") {
1995 }
else if (cl==
"expr") {
1998 if (args.size()<=2) {
2004 for (
UInt_t i=1 ; i<args.size() ; i++) {
2012 }
else if (cl ==
"taylorexpand") {
2020 if (
pargv.size() < 2)
2021 throw string(
Form(
"taylorexpand::%s, requires atleast 2 arguments (function, observables) atleast, has %d arguments",
instName, (
Int_t)
pargv.size()));
2026 if (
pargv.size() > 3)
2027 order = atoi(
pargv[3].c_str());
2028 if (
pargv.size() > 2) {
2029 if (
pargv[2].find(
',') != string::npos) {
2031 Form(
"taylorexpand::%s, factory syntax supports expansion only around same value for all observables",
instName));
2037 if (
pargv.size() > 3)
2038 order = atoi(
pargv[3].c_str());
2039 if (
pargv.size() > 4)
2041 if (
pargv.size() > 5)
2044 if (
pargv.size() > 6) {
2052 }
else if (cl==
"nconv") {
2057#ifdef ROOFIT_LEGACY_EVAL_BACKEND
2058 }
else if (cl==
"nll") {
2062 if (
ft.ws().import(nll,
Silence()))
ft.logError() ;
2064 }
else if (cl==
"chi2") {
2068 if (
ft.ws().import(nll,
Silence()))
ft.logError() ;
2071 }
else if (cl==
"profile") {
2076 }
else if (cl==
"dataobs") {
2082 if (
ft.ws().import(*arg,
Silence()))
ft.logError() ;
2085 }
else if (cl==
"int") {
2093 throw string(
Form(
"int::%s, requires 2 or 3 arguments, have %d arguments",
instName,(
Int_t)
pargv.size())) ;
2102 if (!intobs) intobs=
"" ;
2107 std::unique_ptr<RooAbsReal> integral;
2108 if (
pargv.size()==2) {
2112 integral = std::unique_ptr<RooAbsReal>{func.
createIntegral(
ft.asSET(intobs))};
2123 if (
ft.ws().import(*integral,
Silence()))
ft.logError() ;
2125 }
else if (cl==
"deriv") {
2130 throw string(
Form(
"deriv::%s, requires 2 or 3 arguments, have %d arguments",
instName,(
Int_t)
pargv.size())) ;
2135 std::unique_ptr<RooAbsReal> derivative;
2136 if (
pargv.size()==2) {
2143 if (
ft.ws().import(*derivative,
Silence()))
ft.logError() ;
2145 }
else if (cl==
"cdf") {
2150 throw string(
Form(
"cdf::%s, requires 2 or 3 arguments, have %d arguments",
instName,(
Int_t)
pargv.size())) ;
2155 std::unique_ptr<RooAbsReal>
cdf;
2156 if (
pargv.size()==2) {
2166 }
else if (cl==
"PROJ") {
2169 if (
pargv.size()!=2) {
2179 }
else if (cl==
"set") {
2189 throw string(
Form(
"RooFactoryWSTool::SpecialsIFace::create() ERROR: Unknown meta-type %s",typeName)) ;
double toDouble(const char *s)
int Int_t
Signed integer 4 bytes (int)
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...
RooDerivative * derivative(RooRealVar &obs, Int_t order=1, double eps=0.001)
Return function representing first, second or third order derivative of this function.
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 ...
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.
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...
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 commitTransaction()
Commit an ongoing import transaction.
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.
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.
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.
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)