75#if (__GNUC__==3&&__GNUC_MINOR__==2&&__GNUC_PATCHLEVEL__==3)
95 _prohibitServerRedirect(
kFALSE), _eocache(0), _namePtr(0), _isConstant(
kFALSE), _localNoInhibitDirty(
kFALSE),
109 _ownedComponents(0), _prohibitServerRedirect(
kFALSE), _eocache(0), _namePtr(0), _isConstant(
kFALSE),
110 _localNoInhibitDirty(
kFALSE), _myws(0)
121 _stringAttrib(other._stringAttrib), _deleteWatch(other._deleteWatch), _operMode(Auto), _fast(
kFALSE),
122 _ownedComponents(0), _prohibitServerRedirect(
kFALSE), _eocache(other._eocache), _namePtr(other._namePtr),
123 _isConstant(other._isConstant), _localNoInhibitDirty(other._localNoInhibitDirty), _myws(0)
136 Bool_t valueProp, shapeProp ;
138 valueProp = server->_clientListValue.containsByNamePtr(&other);
139 shapeProp = server->_clientListShape.containsByNamePtr(&other);
170 bool valueProp, shapeProp;
172 valueProp = server->_clientListValue.containsByNamePtr(&other);
173 shapeProp = server->_clientListShape.containsByNamePtr(&other);
197 for (
auto client : clientListTmp) {
198 client->setAttribute(
"ServerDied") ;
202 client->setAttribute(attr.
Data());
203 client->removeServer(*
this,
kTRUE);
208 cxcoutD(
Tracing) <<
"RooAbsArg::dtor(" <<
GetName() <<
"," <<
this <<
") DeleteWatch: object is being destroyed" << endl ;
213 << client->GetName() <<
"\" should have been deleted first" << endl ;
259 if(
string(
"Constant")==
name) {
303 map<string,string>::const_iterator iter =
_stringAttrib.find(key) ;
305 return iter->second.c_str() ;
357 <<
"): PROHIBITED SERVER ADDITION REQUESTED: adding server " << server.
GetName()
358 <<
"(" << &server <<
") for " << (valueProp?
"value ":
"") << (shapeProp?
"shape":
"") << endl ;
363 <<
"(" << &server <<
") for " << (valueProp?
"value ":
"") << (shapeProp?
"shape":
"") << endl ;
393 for (
const auto arg : serverList) {
407 cxcoutF(
LinkStateMgmt) <<
"RooAbsArg::addServer(" <<
this <<
"," <<
GetName() <<
"): PROHIBITED SERVER REMOVAL REQUESTED: removing server "
408 << server.
GetName() <<
"(" << &server <<
")" << endl ;
414 << server.
GetName() <<
"(" << &server <<
")" << endl ;
433 addServer(newServer, propValue, propShape, count);
444 << server.
GetName() <<
" not registered" << endl ;
451 << server.
GetName() <<
" doesn't have us registered as client" << endl ;
513 if ((doBranch&&doLeaf) ||
526 Bool_t isValueSrv = server->_clientListValue.containsByNamePtr(arg);
527 if (valueOnly && !isValueSrv) {
559 if (server->isValueServer(*
this)) {
560 if (server->isFundamental()) {
561 if (!nset || !server->dependsOn(*nset)) {
562 nodeParamServers.
add(*server) ;
565 nodeBranchServers.
add(*server) ;
574 params.
add(nodeParamServers,
kTRUE) ;
577 for (
const auto server : nodeBranchServers) {
578 server->addParameters(params,nset) ;
649 if (!dataList)
return depList ;
652 RooArgSet leafList(
"leafNodeServerList") ;
656 for (
const auto arg : leafList) {
657 if (arg->dependsOnValue(*dataList) && arg->isLValue()) {
662 for (
const auto arg : leafList) {
663 if (arg->dependsOn(*dataList) && arg->isLValue()) {
679 name.Append(
"_components") ;
711 while((arg=iter.
next())) {
714 << arg->
GetName() <<
" no longer exists!" << endl ;
734 for (
auto server : serverList) {
735 if (
dependsOn(*server,ignoreArg,valueOnly)) {
750 if (
this==ignoreArg)
return kFALSE ;
769 if ( !valueOnly || server->isValueServer(*
this)) {
770 if (server->dependsOn(testArg,ignoreArg,valueOnly)) {
836 }
else if (source==
this) {
839 <<
"): cyclical dependency detected, source = " << source->
GetName() << endl ;
847 <<
"): dirty flag " << (
_valueDirty?
"already ":
"") <<
"raised" << endl ;
854 client->setValueDirty(source) ;
869 <<
"): dirty flag " << (
_shapeDirty?
"already ":
"") <<
"raised" << endl ;
880 }
else if (source==
this) {
883 <<
"): cyclical dependency detected" << endl ;
891 client->setShapeDirty(source) ;
892 client->setValueDirty(source) ;
917 for (
auto arg : newSetOrig) {
919 if (
string(
"REMOVAL_DUMMY")==arg->GetName()) {
921 if (arg->getAttribute(
"REMOVE_ALL")) {
943 std::vector<RooAbsArg*> origServerList, origServerValue, origServerShape;
945 origServerList.reserve(origSize);
946 origServerValue.reserve(origSize);
949 origServerList.push_back(oldServer) ;
952 if (oldServer->_clientListValue.containsByNamePtr(
this)) {
953 origServerValue.push_back(oldServer) ;
955 if (oldServer->_clientListShape.containsByNamePtr(
this)) {
956 origServerShape.push_back(oldServer) ;
961 for (
auto oldServer : origServerList) {
967 <<
" redirected from " << oldServer <<
" to " << newServer << endl ;
971 if (mustReplaceAll) {
972 coutE(
LinkStateMgmt) <<
"RooAbsArg::redirectServers(" << (
void*)
this <<
"," <<
GetName() <<
"): server " << oldServer->GetName()
973 <<
" (" << (
void*)oldServer <<
") not redirected" << (nameChange?
"[nameChange]":
"") << endl ;
979 auto findByNamePtr = [&oldServer](
const RooAbsArg * item) {
980 return oldServer->namePtr() == item->namePtr();
982 bool propValue = std::any_of(origServerValue.begin(), origServerValue.end(), findByNamePtr);
983 bool propShape = std::any_of(origServerShape.begin(), origServerShape.end(), findByNamePtr);
985 if (newServer !=
this) {
1000 allReplaced &= ret2 ;
1003 if (mustReplaceAll && !allReplaced) {
1005 <<
"): ERROR, some proxies could not be adjusted" << endl ;
1032 newServer = newSet.
find(*
this) ;
1037 TString nameAttrib(
"ORIGNAME:") ;
1052 << nameAttrib <<
" attribute" << endl ;
1058 newServer= tmp->
first();
1077 static std::set<const RooAbsArg*> callStack;
1079 std::set<const RooAbsArg*>::iterator it = callStack.lower_bound(
this);
1080 if (it != callStack.end() &&
this == *it) {
1083 callStack.insert(it,
this);
1096 cxcoutD(
LinkStateMgmt) <<
"RooAbsArg::recursiveRedirectServers(" <<
this <<
"," <<
GetName() <<
") newSet = " << newSet <<
" mustReplaceAll = "
1097 << (mustReplaceAll?
"T":
"F") <<
" nameChange = " << (nameChange?
"T":
"F") <<
" recurseInNewSet = " << (recurseInNewSet?
"T":
"F") << endl ;
1104 ret |= server->recursiveRedirectServers(newSet,mustReplaceAll,nameChange,recurseInNewSet) ;
1107 callStack.erase(
this);
1126 <<
" already registered" << endl ;
1167 << proxy.
GetName() <<
" already registered" << endl ;
1200 << proxy.
GetName() <<
" already registered" << endl ;
1208 cout <<
"RooAbsArg::registerProxy(" <<
GetName() <<
") proxy registration failure! nold=" << nProxyOld <<
" nnew=" <<
_proxyList.
GetEntries() << endl ;
1271 <<
"): Cannot be attached to a TTree" << endl ;
1312 os << IsA()->GetName() ;
1335 if (p==0) continue ;
1362 os <<
indent <<
"--- RooAbsArg ---" << endl;
1364 os <<
indent <<
" Value State: " ;
1366 case ADirty: os <<
"FORCED DIRTY" ; break ;
1367 case AClean: os <<
"FORCED clean" ; break ;
1373 os <<
indent <<
" Attributes: " ;
1377 os <<
indent <<
" Address: " << (
void*)
this << endl;
1379 os <<
indent <<
" Clients: " << endl;
1381 os <<
indent <<
" (" << (
void*)client <<
","
1389 os <<
indent <<
" Servers: " << endl;
1391 os <<
indent <<
" (" << (
void*)server <<
","
1392 << (server->_clientListValue.containsByNamePtr(
this)?
"V":
"-")
1393 << (server->_clientListShape.containsByNamePtr(
this)?
"S":
"-")
1399 os <<
indent <<
" Proxies: " << endl ;
1402 if (!proxy) continue ;
1404 os <<
indent <<
" " << proxy->
name() <<
" -> " ;
1409 os <<
" (empty)" << endl ; ;
1412 os <<
indent <<
" " << proxy->
name() <<
" -> " ;
1454 set<string>::const_iterator iter =
_boolAttrib.begin() ;
1457 os << (
first?
" [":
",") << *iter ;
1461 if (!
first) os <<
"] " ;
1476 while((branch=iter.
next())) {
1495 while((branch=iter.
next())) {
1526 while((branch=bIter.
next())) {
1533 case AClean: cout <<
"FORCED clean" ; break ;
1534 case ADirty: cout <<
"FORCED DIRTY" ; break ;
1556 coutI(
Optimization) <<
"RooAbsArg::optimizeCacheMode(" <<
GetName() <<
") nodes " << opt <<
" depend on observables, "
1557 <<
"changing cache operation mode from change tracking to unconditional evaluation" << endl ;
1578 if (processedNodes.
findArg(
this)) {
1581 processedNodes.
Add(
this) ;
1588 cxcoutI(
Integration) <<
"RooAbsArg::optimizeCacheMode(" <<
GetName() <<
") integral depends on value of one or more observables and will be evaluated for every event" << endl ;
1604 server->optimizeCacheMode(observables,optimizedNodes,processedNodes) ;
1620 << cacheList <<
" depend exclusively on constant parameters and will be precalculated and cached" << endl ;
1639 if (processedNodes.
findArg(
this)) {
1642 processedNodes.
Add(
this) ;
1650 while((param = iter.
next())) {
1684 if (server->isDerived()) {
1685 server->findConstantNodes(observables,cacheList,processedNodes) ;
1709 server->constOptimizeTestStatistic(opcode,doAlsoTrackingOpt) ;
1732 if (mode==
ADirty && recurseADirty) {
1734 clientV->setOperMode(mode) ;
1749 ofstream ofs(filename) ;
1774 os << IsA()->GetName() <<
"::" <<
GetName() <<
" = " ;
1779 case Auto: os <<
" [Auto," << (
isValueDirty()?
"Dirty":
"Clean") <<
"] " ; break ;
1780 case AClean: os <<
" [ACLEAN] " ; break ;
1781 case ADirty: os <<
" [ADIRTY] " ; break ;
1795 arg->printCompactTree(os,indent2,namePat,
this) ;
1808 if (nLevel==0) return ;
1822 arg->printComponentTree(indent2.
Data(),namePat,nLevel-1) ;
1839 TString cleanName(rawBranchName) ;
1861 unsigned long sz = strlen(data);
1862 switch (strlen(data)) {
1868 return (data[0] << 8) | data[1];
1870 return (data[0] << 16) | (data[1] << 8) | data[2];
1872 return (data[0] << 24) | (data[1] << 16) | (data[2] << 8) | data[3];
1874 return crc32(data + 4, sz - 4, (data[0] << 24) | (data[1] << 16) |
1875 (data[2] << 8) | data[3]);
1885 static const UInt_t crctab[256] = { 0x00000000,
1886 0x04c11db7, 0x09823b6e, 0x0d4326d9, 0x130476dc, 0x17c56b6b,
1887 0x1a864db2, 0x1e475005, 0x2608edb8, 0x22c9f00f, 0x2f8ad6d6,
1888 0x2b4bcb61, 0x350c9b64, 0x31cd86d3, 0x3c8ea00a, 0x384fbdbd,
1889 0x4c11db70, 0x48d0c6c7, 0x4593e01e, 0x4152fda9, 0x5f15adac,
1890 0x5bd4b01b, 0x569796c2, 0x52568b75, 0x6a1936c8, 0x6ed82b7f,
1891 0x639b0da6, 0x675a1011, 0x791d4014, 0x7ddc5da3, 0x709f7b7a,
1892 0x745e66cd, 0x9823b6e0, 0x9ce2ab57, 0x91a18d8e, 0x95609039,
1893 0x8b27c03c, 0x8fe6dd8b, 0x82a5fb52, 0x8664e6e5, 0xbe2b5b58,
1894 0xbaea46ef, 0xb7a96036, 0xb3687d81, 0xad2f2d84, 0xa9ee3033,
1895 0xa4ad16ea, 0xa06c0b5d, 0xd4326d90, 0xd0f37027, 0xddb056fe,
1896 0xd9714b49, 0xc7361b4c, 0xc3f706fb, 0xceb42022, 0xca753d95,
1897 0xf23a8028, 0xf6fb9d9f, 0xfbb8bb46, 0xff79a6f1, 0xe13ef6f4,
1898 0xe5ffeb43, 0xe8bccd9a, 0xec7dd02d, 0x34867077, 0x30476dc0,
1899 0x3d044b19, 0x39c556ae, 0x278206ab, 0x23431b1c, 0x2e003dc5,
1900 0x2ac12072, 0x128e9dcf, 0x164f8078, 0x1b0ca6a1, 0x1fcdbb16,
1901 0x018aeb13, 0x054bf6a4, 0x0808d07d, 0x0cc9cdca, 0x7897ab07,
1902 0x7c56b6b0, 0x71159069, 0x75d48dde, 0x6b93dddb, 0x6f52c06c,
1903 0x6211e6b5, 0x66d0fb02, 0x5e9f46bf, 0x5a5e5b08, 0x571d7dd1,
1904 0x53dc6066, 0x4d9b3063, 0x495a2dd4, 0x44190b0d, 0x40d816ba,
1905 0xaca5c697, 0xa864db20, 0xa527fdf9, 0xa1e6e04e, 0xbfa1b04b,
1906 0xbb60adfc, 0xb6238b25, 0xb2e29692, 0x8aad2b2f, 0x8e6c3698,
1907 0x832f1041, 0x87ee0df6, 0x99a95df3, 0x9d684044, 0x902b669d,
1908 0x94ea7b2a, 0xe0b41de7, 0xe4750050, 0xe9362689, 0xedf73b3e,
1909 0xf3b06b3b, 0xf771768c, 0xfa325055, 0xfef34de2, 0xc6bcf05f,
1910 0xc27dede8, 0xcf3ecb31, 0xcbffd686, 0xd5b88683, 0xd1799b34,
1911 0xdc3abded, 0xd8fba05a, 0x690ce0ee, 0x6dcdfd59, 0x608edb80,
1912 0x644fc637, 0x7a089632, 0x7ec98b85, 0x738aad5c, 0x774bb0eb,
1913 0x4f040d56, 0x4bc510e1, 0x46863638, 0x42472b8f, 0x5c007b8a,
1914 0x58c1663d, 0x558240e4, 0x51435d53, 0x251d3b9e, 0x21dc2629,
1915 0x2c9f00f0, 0x285e1d47, 0x36194d42, 0x32d850f5, 0x3f9b762c,
1916 0x3b5a6b9b, 0x0315d626, 0x07d4cb91, 0x0a97ed48, 0x0e56f0ff,
1917 0x1011a0fa, 0x14d0bd4d, 0x19939b94, 0x1d528623, 0xf12f560e,
1918 0xf5ee4bb9, 0xf8ad6d60, 0xfc6c70d7, 0xe22b20d2, 0xe6ea3d65,
1919 0xeba91bbc, 0xef68060b, 0xd727bbb6, 0xd3e6a601, 0xdea580d8,
1920 0xda649d6f, 0xc423cd6a, 0xc0e2d0dd, 0xcda1f604, 0xc960ebb3,
1921 0xbd3e8d7e, 0xb9ff90c9, 0xb4bcb610, 0xb07daba7, 0xae3afba2,
1922 0xaafbe615, 0xa7b8c0cc, 0xa379dd7b, 0x9b3660c6, 0x9ff77d71,
1923 0x92b45ba8, 0x9675461f, 0x8832161a, 0x8cf30bad, 0x81b02d74,
1924 0x857130c3, 0x5d8a9099, 0x594b8d2e, 0x5408abf7, 0x50c9b640,
1925 0x4e8ee645, 0x4a4ffbf2, 0x470cdd2b, 0x43cdc09c, 0x7b827d21,
1926 0x7f436096, 0x7200464f, 0x76c15bf8, 0x68860bfd, 0x6c47164a,
1927 0x61043093, 0x65c52d24, 0x119b4be9, 0x155a565e, 0x18197087,
1928 0x1cd86d30, 0x029f3d35, 0x065e2082, 0x0b1d065b, 0x0fdc1bec,
1929 0x3793a651, 0x3352bbe6, 0x3e119d3f, 0x3ad08088, 0x2497d08d,
1930 0x2056cd3a, 0x2d15ebe3, 0x29d4f654, 0xc5a92679, 0xc1683bce,
1931 0xcc2b1d17, 0xc8ea00a0, 0xd6ad50a5, 0xd26c4d12, 0xdf2f6bcb,
1932 0xdbee767c, 0xe3a1cbc1, 0xe760d676, 0xea23f0af, 0xeee2ed18,
1933 0xf0a5bd1d, 0xf464a0aa, 0xf9278673, 0xfde69bc4, 0x89b8fd09,
1934 0x8d79e0be, 0x803ac667, 0x84fbdbd0, 0x9abc8bd5, 0x9e7d9662,
1935 0x933eb0bb, 0x97ffad0c, 0xafb010b1, 0xab710d06, 0xa6322bdf,
1936 0xa2f33668, 0xbcb4666d, 0xb8757bda, 0xb5365d03, 0xb1f740b4
1940 while (sz--) crc = (crc << 8) ^
UInt_t(*data++) ^ crctab[crc >> 24];
1948 return fnv1a32(data, strlen(data));
1954 const UInt_t fnv1a32mult = 16777619u;
1957 hash *= fnv1a32mult;
1965 return fnv1a64(data, strlen(data));
1974 hash *= fnv1a64mult;
2048 set<string>::const_iterator iter=
_boolAttrib.begin() ;
2052 strlcpy(buf,iter->c_str(),128) ;
2054 char* ptrToken = strtok(0,
")") ;
2073 ofstream ofs(fileName) ;
2075 coutE(
InputArguments) <<
"RooAbsArg::graphVizTree() ERROR: Cannot open graphViz output file with name " << fileName << endl ;
2090 coutE(
InputArguments) <<
"RooAbsArg::graphVizTree() ERROR: output stream provided as input argument is in invalid state" << endl ;
2094 os <<
"digraph " <<
GetName() <<
"{" << endl ;
2103 while((node=iter.
next())) {
2104 string nodeName = node->
GetName();
2105 string nodeTitle = node->
GetTitle();
2106 string nodeLabel = (useTitle && !nodeTitle.empty()) ? nodeTitle : nodeName;
2109 string::size_type position = nodeLabel.find(
"#") ;
2110 while(useLatex && position!=nodeLabel.npos){
2111 nodeLabel.replace(position, 1,
"\\");
2114 string typeFormat =
"\\texttt{";
2115 string nodeType = (useLatex) ? typeFormat+node->IsA()->
GetName()+
"}" : node->IsA()->
GetName();
2117 os <<
"\"" << nodeName <<
"\" [ color=" << (node->
isFundamental()?
"blue":
"red")
2118 <<
", label=\"" << nodeType << delimiter << nodeLabel <<
"\"];" << endl ;
2123 set<pair<RooAbsArg*,RooAbsArg*> > links ;
2127 set<pair<RooAbsArg*,RooAbsArg*> >::iterator
liter = links.begin() ;
2129 os <<
"\"" <<
liter->first->GetName() <<
"\" -> \"" <<
liter->second->GetName() <<
"\";" << endl ;
2145 linkSet.insert(make_pair(
this,server)) ;
2146 server->graphVizAddConnections(linkSet) ;
2257 clonedNodes->
remove(*head) ;
2264 delete clonedNodes ;
2268 head->TNamed::SetName(newname) ;
2313 while((arg=iter.
next())) {
2315 if (tmp) suffix += tmp ;
2317 return Form(
"%s",suffix.c_str()) ;
2329 while((arg=iter.
next())) {
2331 for (deque<RooAbsCache*>::iterator iter2 = arg->
_cacheList.begin() ; iter2 != arg->
_cacheList.end() ; ++iter2) {
2332 (*iter2)->wireCache() ;
2372void RooAbsArg::Streamer(
TBuffer &R__b)
2400 map<RooAbsArg*,TRefArray*>::iterator iter =
_ioEvoList.find(
this) ;
2406 for (
int i = 0; i < iter->second->GetEntriesFast(); i++) {
2410 delete iter->second ;
2430 map<RooAbsArg*,TRefArray*>::iterator iter =
_ioEvoList.begin() ;
2434 if (!iter->first->_proxyList.GetEntriesFast())
2435 iter->first->_proxyList.Expand(iter->second->GetEntriesFast());
2436 for (
int i = 0; i < iter->second->GetEntriesFast(); i++) {
2437 iter->first->_proxyList.Add(iter->second->At(i));
2441 map<RooAbsArg*,TRefArray*>::iterator iter_tmp = iter ;
2446 delete iter_tmp->second ;
2461void RooRefArray::Streamer(
TBuffer &R__b)
2470 refArray->Streamer(R__b) ;
2483 TObject* tmpObj ;
while ((tmpObj = iter->
Next())) {
2484 refArray.
Add(tmpObj) ;
2488 refArray.Streamer(R__b) ;
2498 std::stringstream
s;
2500 s <<
"An instance of " << raa->
ClassName() <<
".";
istream & operator>>(istream &is, RooAbsArg &arg)
Istream operator.
ostream & operator<<(ostream &os, RooAbsArg &arg)
Ostream operator.
unsigned long long ULong64_t
static void indent(ostringstream &buf, int indent_level)
Binding & operator=(OUT(*fun)(void))
char * Form(const char *fmt,...)
TString operator+(const TString &s1, const TString &s2)
Use the special concatenation constructor.
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
RooExpensiveObjectCache & expensiveObjectCache() const
static std::stack< RooAbsArg * > _ioReadStack
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.
virtual Bool_t readFromStream(std::istream &is, Bool_t compact, Bool_t verbose=kFALSE)=0
virtual Bool_t isValid() const
WVE (08/21/01) Probably obsolete now.
static UInt_t crc32(const char *data)
static void verboseDirty(Bool_t flag)
Activate verbose messaging related to dirty flag propagation.
void attachToStore(RooAbsDataStore &store)
virtual Int_t defaultPrintContents(Option_t *opt) const
Define default contents to print.
const TNamed * namePtr() const
const char * aggregateCacheUniqueSuffix() const
Bool_t redirectServers(const RooAbsCollection &newServerList, Bool_t mustReplaceAll=kFALSE, Bool_t nameChange=kFALSE, Bool_t isRecursionStep=kFALSE)
Substitute our servers with those listed in newSet.
void changeServer(RooAbsArg &server, Bool_t valueProp, Bool_t shapeProp)
Change dirty flag propagation mask for specified server.
Bool_t isValueServer(const RooAbsArg &arg) const
virtual Bool_t redirectServersHook(const RooAbsCollection &, Bool_t, Bool_t, Bool_t)
RooWorkspace * _myws
Prevent 'AlwaysDirty' mode for this node.
void printCompactTree(const char *indent="", const char *fileName=0, const char *namePat=0, RooAbsArg *client=0)
Print tree structure of expression tree on stdout, or to file if filename is specified.
void attachDataStore(const RooAbsDataStore &set)
Replace server nodes with names matching the dataset variable names with those data set variables,...
virtual void printClassName(std::ostream &os) const
Print object class name.
RooArgSet * _ownedComponents
std::deque< RooAbsCache * > _cacheList
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 registerProxy(RooArgProxy &proxy)
Register an RooArgProxy in the proxy list.
Bool_t isShapeServer(const RooAbsArg &arg) const
void setStringAttribute(const Text_t *key, const Text_t *value)
Associate string 'value' to this object under key 'key'.
static void ioStreamerPass2Finalize()
Method called by workspace container to finalize schema evolution issues that cannot be handled in a ...
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.
Bool_t isCloneOf(const RooAbsArg &other) const
Check if this object was created as a clone of 'other'.
Bool_t isShapeDirty() const
static void setDirtyInhibit(Bool_t flag)
Control global dirty inhibit mode.
Bool_t findConstantNodes(const RooArgSet &observables, RooArgSet &cacheList)
Find branch nodes with all-constant parameters, and add them to the list of nodes that can be cached ...
void graphVizAddConnections(std::set< std::pair< RooAbsArg *, RooAbsArg * > > &)
Utility function that inserts all point-to-point client-server connections between any two RooAbsArgs...
void unRegisterProxy(RooArgProxy &proxy)
Remove proxy from proxy list.
void printComponentTree(const char *indent="", const char *namePat=0, Int_t nLevel=999)
Print tree structure of expression tree on given ostream, only branch nodes are printed.
Bool_t inhibitDirty() const
Delete watch flag.
std::set< std::string > _boolAttrib
void addServer(RooAbsArg &server, Bool_t valueProp=kTRUE, Bool_t shapeProp=kFALSE, std::size_t refCount=1)
Register another RooAbsArg as a server to us, ie, declare that we depend on it.
virtual void printTree(std::ostream &os, TString indent="") const
Print object tree structure.
void unRegisterCache(RooAbsCache &cache)
Unregister a RooAbsCache. Called from the RooAbsCache destructor.
virtual Bool_t isFundamental() const
Is this object a fundamental type that can be added to a dataset? Fundamental-type subclasses overrid...
virtual void printTitle(std::ostream &os) const
Print object title.
RefCountList_t _clientListValue
void printAttribList(std::ostream &os) const
Transient boolean attributes (not copied in ctor)
virtual void Print(Option_t *options=0) const
Print TNamed name and title.
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.
virtual void writeToStream(std::ostream &os, Bool_t compact) const =0
virtual void printAddress(std::ostream &os) const
Print class name of object.
void setTransientAttribute(const Text_t *name, Bool_t value=kTRUE)
Set (default) or clear a named boolean attribute of this object.
static std::map< RooAbsArg *, TRefArray * > _ioEvoList
virtual void printCompactTreeHook(std::ostream &os, const char *ind="")
Hook function interface for object to insert additional information when printed in the context of a ...
Bool_t _isConstant
Do not persist. Pointer to global instance of string that matches object named.
Bool_t isValueDirty() const
Bool_t overlaps(const RooAbsArg &testArg, Bool_t valueOnly=kFALSE) const
Test if any of the nodes of tree are shared with that of the given tree.
Int_t Compare(const TObject *other) const
Utility function used by TCollection::Sort to compare contained TObjects We implement comparison by n...
RooArgSet * getVariables(Bool_t stripDisconnected=kTRUE) const
Return RooArgSet with all variables (tree leaf nodes of expresssion tree)
virtual void ioStreamerPass2()
In which workspace do I live, if any.
virtual ~RooAbsArg()
Destructor.
virtual Bool_t isDerived() const
Does value or shape of this arg depend on any other arg?
static Bool_t _inhibitDirty
virtual const char * cacheUniqueSuffix() const
RefCountListLegacyIterator_t * makeLegacyIterator(const RefCountList_t &list) const
static UInt_t fnv1a32(const char *data)
Bool_t _localNoInhibitDirty
Cached isConstant status.
virtual void constOptimizeTestStatistic(ConstOpCode opcode, Bool_t doAlsoTrackingOpt=kTRUE)
Interface function signaling a request to perform constant term optimization.
void setOperMode(OperMode mode, Bool_t recurseADirty=kTRUE)
Change cache operation mode to given mode.
virtual void attachToTree(TTree &t, Int_t bufSize=32000)=0
Overloadable function for derived classes to implement attachment as branch to a TTree.
RooLinkedList getCloningAncestors() const
Return ancestors in cloning chain of this RooAbsArg.
Bool_t addOwnedComponents(const RooArgSet &comps)
Take ownership of the contents of 'comps'.
Bool_t recursiveCheckObservables(const RooArgSet *nset) const
Recursively call checkObservables on all nodes in the expression tree.
RooAbsCache * getCache(Int_t index) const
Return registered cache object by index.
void printDirty(Bool_t depth=kTRUE) const
Print information about current value dirty state information.
static Bool_t _verboseDirty
void registerCache(RooAbsCache &cache)
Register RooAbsCache with this object.
virtual void optimizeCacheMode(const RooArgSet &observables)
Activate cache mode optimization with given definition of observables.
RefCountList_t _clientListShape
virtual void attachToVStore(RooVectorDataStore &vstore)=0
TString cleanBranchName() const
Construct a mangled name from the actual name that is free of any math symbols that might be interpre...
void SetNameTitle(const char *name, const char *title)
Set all the TNamed parameters (name and title).
static ULong64_t fnv1a64(const char *data)
Bool_t _prohibitServerRedirect
Set of owned component.
void removeServer(RooAbsArg &server, Bool_t force=kFALSE)
Unregister another RooAbsArg as a server to us, ie, declare that we no longer depend on its value and...
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.
virtual void printName(std::ostream &os) const
Print object name.
void replaceServer(RooAbsArg &oldServer, RooAbsArg &newServer, Bool_t valueProp, Bool_t shapeProp)
Replace 'oldServer' with 'newServer'.
virtual void getParametersHook(const RooArgSet *, RooArgSet *, Bool_t) const
virtual void printMetaArgs(std::ostream &) const
void addServerList(RooAbsCollection &serverList, Bool_t valueProp=kTRUE, Bool_t shapeProp=kFALSE)
Register a list of RooAbsArg as servers to us by calling addServer() for each arg in the list.
Bool_t dependsOnValue(const RooAbsCollection &serverList, const RooAbsArg *ignoreArg=0) const
void setProxyNormSet(const RooArgSet *nset)
Forward a change in the cached normalization argset to all the registered proxies.
RefCountList_t _clientList
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.
RefCountList_t _serverList
RooExpensiveObjectCache * _eocache
Prohibit server redirects – Debugging tool.
RooArgSet * getComponents() const
std::set< std::string > _boolAttribTransient
RooAbsArg * findNewServer(const RooAbsCollection &newSet, Bool_t nameChange) const
Find the new server in the specified set that matches the old server.
Bool_t isConstant() 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 graphVizTree(const char *fileName, const char *delimiter="\n", bool useTitle=false, bool useLatex=false)
Create a GraphViz .dot file visualizing the expression tree headed by this RooAbsArg object.
virtual void operModeHook()
Bool_t getTransientAttribute(const Text_t *name) const
Check if a named attribute is set.
std::map< std::string, std::string > _stringAttrib
Int_t numCaches() const
Return number of registered caches.
RooAbsArg()
Default constructor.
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,...
virtual void printArgs(std::ostream &os) const
Print object arguments, ie its proxies.
TIteratorToSTLInterface< RefCountList_t::Container_t > RefCountListLegacyIterator_t
RooAbsArg * findServer(const char *name) const
void SetName(const char *name)
Set the name of the TNamed.
void addParameters(RooArgSet ¶ms, const RooArgSet *nset=0, Bool_t stripDisconnected=kTRUE) const
INTERNAL helper function for getParameters()
OperMode operMode() const
Bool_t observableOverlaps(const RooAbsData *dset, const RooAbsArg &testArg) const
Test if any of the dependents of the arg tree (as determined by getObservables) overlaps with those o...
RooAbsCache is the abstract base class for data members of RooAbsArgs that cache other (composite) Ro...
virtual void printCompactTreeHook(std::ostream &, const char *)
Interface for printing of cache guts in tree mode printing.
virtual Bool_t redirectServersHook(const RooAbsCollection &, Bool_t, Bool_t, Bool_t)
Interface for server redirect calls.
virtual void optimizeCacheMode(const RooArgSet &, RooArgSet &, RooLinkedList &)
Interface for processing of cache mode optimization calls.
virtual void operModeHook()
Interface for operation mode changes.
virtual void findConstantNodes(const RooArgSet &, RooArgSet &, RooLinkedList &)
Interface for constant term node finding calls.
RooAbsCollection is an abstract container object that can hold multiple RooAbsArg objects.
RooFIter fwdIterator() const R__SUGGEST_ALTERNATIVE("begin()
One-time forward iterator.
void sort(Bool_t reverse=false)
Sort collection using std::sort and name comparison.
virtual Bool_t add(const RooAbsArg &var, Bool_t silent=kFALSE)
Add the specified argument to list.
Storage_t::size_type size() const
RooAbsArg * first() const
void reserve(Storage_t::size_type count)
virtual void Print(Option_t *options=0) const
This method must be overridden when a class wants to print itself.
RooAbsCollection * selectByAttrib(const char *name, Bool_t value) const
Create a subset of the current collection, consisting only of those elements with the specified attri...
const char * GetName() const
Returns name of object.
virtual Bool_t remove(const RooAbsArg &var, Bool_t silent=kFALSE, Bool_t matchByNameOnly=kFALSE)
Remove the specified argument from our list.
RooAbsArg * find(const char *name) const
Find object with given name in list.
RooAbsDataStore is the abstract base class for data collection that use a TTree as internal storage m...
virtual const RooArgSet * get(Int_t index) const =0
RooAbsData is the common abstract base class for binned and unbinned datasets.
virtual const RooArgSet * get() const
RooAbsProxy is the abstact interface for proxy classes.
virtual void changeNormSet(const RooArgSet *newNormSet)
Destructor.
virtual void print(std::ostream &os, Bool_t addContents=kFALSE) const
Print proxy name.
virtual const char * name() const
virtual Bool_t changePointer(const RooAbsCollection &newServerSet, Bool_t nameChange=kFALSE, Bool_t factoryInitMode=kFALSE)=0
RooArgProxy is the abstact interface for RooAbsArg proxy classes.
Bool_t isShapeServer() const
Bool_t isValueServer() const
RooAbsArg * absArg() const
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...
RooConstVar represent a constant real-valued object.
RooExpensiveObjectCache is a singleton class that serves as repository for objects that are expensive...
static RooExpensiveObjectCache & instance()
Return reference to singleton instance.
A one-time forward iterator working on RooLinkedList or RooAbsCollection.
RooAbsArg * next()
Return next element or nullptr if at end.
RooLinkedList is an collection class for internal use, storing a collection of RooAbsArg pointers in ...
RooAbsArg * findArg(const RooAbsArg *) const
Return pointer to object with given name in collection.
virtual void Add(TObject *arg)
RooListProxy is the concrete proxy for RooArgList objects.
const TNamed * constPtr(const char *stringPtr)
Return a unique TNamed pointer for given C++ string.
static RooNameReg & instance()
Return reference to singleton instance.
RooNameSet is a utility class that stores the names the objects in a RooArget.
const char * content() const
RooPlotable is a 'mix-in' base class that define the standard RooFit plotting and printing methods.
virtual StyleOption defaultPrintStyle(Option_t *opt) const
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,...
virtual void printValue(std::ostream &os) const
Interface to print value of object.
RooRealIntegral performs hybrid numerical/analytical integrals of RooAbsReal objects.
RooRealVar represents a fundamental (non-derived) real valued object.
std::size_t refCount(typename Container_t::const_iterator item) const
Return ref count of item that iterator points to.
const Container_t & containedObjects() const
Direct reference to container of objects held by this list.
void Remove(const T *obj, bool force=false)
Decrease ref count of given object.
Container_t::const_iterator begin() const
Iterator over contained objects.
void Add(T *obj, std::size_t initialCount=1)
Add an object or increase refCount if it is already present.
Container_t::const_iterator end() const
End of contained objects.
bool empty() const
Check if empty.
std::size_t size() const
Number of contained objects (neglecting the ref count).
void RemoveAll(const T *obj)
Remove from list irrespective of ref count.
void reserve(std::size_t amount)
bool containsByNamePtr(const T *obj) const
Check if list contains an item using findByNamePointer().
RooSetProxy is the concrete proxy for RooArgSet objects.
RooTreeDataStore is a TTree-backed data storage.
RooVectorDataStore is the abstract base class for data collection that use a TTree as internal storag...
Bool_t defineSetInternal(const char *name, const RooArgSet &aset)
const RooArgSet * set(const char *name)
Return pointer to previously defined named set with given nmame If no such set is found a null pointe...
Buffer base class used for serializing objects.
virtual void SetByteCount(UInt_t cntpos, Bool_t packInVersion=kFALSE)=0
virtual Int_t ReadClassBuffer(const TClass *cl, void *pointer, const TClass *onfile_class=0)=0
virtual Version_t ReadVersion(UInt_t *start=0, UInt_t *bcnt=0, const TClass *cl=0)=0
virtual Int_t CheckByteCount(UInt_t startpos, UInt_t bcnt, const TClass *clss)=0
virtual UInt_t WriteVersion(const TClass *cl, Bool_t useBcnt=kFALSE)=0
virtual Int_t WriteClassBuffer(const TClass *cl, void *pointer)=0
TIterator and GenericRooFIter front end with STL back end.
Iterator abstract base class.
virtual TObject * Next()=0
The TNamed class is the base class for all named ROOT classes.
virtual void SetName(const char *name)
Set the name of the TNamed.
virtual const char * GetTitle() const
Returns title of object.
TNamed & operator=(const TNamed &rhs)
TNamed assignment operator.
virtual const char * GetName() const
Returns name of object.
virtual void SetNameTitle(const char *name, const char *title)
Set all the TNamed parameters (name and title).
Int_t GetEntriesFast() const
virtual void Expand(Int_t newSize)
Expand or shrink the array to newSize elements.
virtual void Compress()
Remove empty slots from array.
Int_t GetEntries() const
Return the number of objects in array (i.e.
virtual TObject * FindObject(const char *name) const
Find an object in this collection using its name.
TIterator * MakeIterator(Bool_t dir=kIterForward) const
Returns an array iterator.
virtual TObject * Remove(TObject *obj)
Remove object from array.
TObject * At(Int_t idx) 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.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
An array of references to TObjects.
const char * Data() const
TString & ReplaceAll(const TString &s1, const TString &s2)
Bool_t BeginsWith(const char *s, ECaseCompare cmp=kExact) const
TString & Append(const char *cs)
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
A TTree represents a columnar dataset.
std::string GetName(const std::string &scope_name)
static constexpr double s
static constexpr double liter