5 #include "TEventList.h" 35 if (bname ==
nullptr || bname[0] == 0) {
36 printf(
"FWTTreeCache::AddBranchTopLevel Invalid branch name <%s>\n", bname ==
nullptr ?
"nullptr" :
"empty string");
43 printf(
"FWTTreeCache::AddBranchTopLevel '%s' -- adding\n", bname);
52 printf(
"FWTTreeCache::AddBranchTopLevel '%s' -- already in cache\n", bname);
59 if (bname ==
nullptr || bname[0] == 0) {
60 printf(
"FWTTreeCache::AddBranchTopLevel Invalid branch name");
67 printf(
"FWTTreeCache::DropBranchTopLevel '%s' -- dropping\n", bname);
73 printf(
"FWTTreeCache::DropBranchTopLevel '%s' -- not in cache\n", bname);
80 printf(
"FWTTreeCache::BranchAccessCallIn '%s'\n",
b->GetName());
89 printf(
"FWTTreeCache::AddBranch by ptr '%s', subbp=%d\n",
b->GetName(), subbranches);
90 return TTreeCache::AddBranch(
b, subbranches);
95 printf(
"FWTTreeCache::AddBranch by name '%s', subbp=%d\n",
branch, subbranches);
96 if (strcmp(
branch,
"*") == 0)
98 return TTreeCache::AddBranch(
branch, subbranches);
103 printf(
"FWTTreeCache::DropBranch by ptr '%s', subbp=%d\n",
b->GetName(), subbranches);
104 return TTreeCache::DropBranch(
b, subbranches);
109 printf(
"FWTTreeCache::DropBranch by name '%s', subbp=%d\n",
branch, subbranches);
110 Int_t
ret = TTreeCache::DropBranch(
branch, subbranches);
111 if (strcmp(
branch,
"*") == 0)
static void PrefetchingOn()
Int_t AddBranchTopLevel(const char *bname)
ret
prodAgent to be discontinued
static void PrefetchingOff()
static bool IsPrefetching()
static int s_default_size
static int GetDefaultCacheSize()
Int_t AddBranch(TBranch *b, Bool_t subbranches=kFALSE) override
Int_t DropBranch(TBranch *b, Bool_t subbranches=kFALSE) override
void BranchAccessCallIn(const TBranch *b)
static bool s_prefetching
std::set< std::string > m_branch_set
Int_t DropBranchTopLevel(const char *bname)
static void SetDefaultCacheSize(int def_size)
bool is_branch_in_cache(const char *name)