5 #include "TEventList.h" 14 TTreeCache(tree, buffersize)
41 if (bname ==
nullptr || bname[0] == 0)
43 printf(
"FWTTreeCache::AddBranchTopLevel Invalid branch name <%s>\n",
44 bname ==
nullptr ?
"nullptr" :
"empty string");
52 printf(
"FWTTreeCache::AddBranchTopLevel '%s' -- adding\n", bname);
62 printf(
"FWTTreeCache::AddBranchTopLevel '%s' -- already in cache\n", bname);
70 if (bname ==
nullptr || bname[0] == 0)
72 printf(
"FWTTreeCache::AddBranchTopLevel Invalid branch name");
80 printf(
"FWTTreeCache::DropBranchTopLevel '%s' -- dropping\n", bname);
88 printf(
"FWTTreeCache::DropBranchTopLevel '%s' -- not in cache\n", bname);
96 printf(
"FWTTreeCache::BranchAccessCallIn '%s'\n", b->GetName());
106 printf(
"FWTTreeCache::AddBranch by ptr '%s', subbp=%d\n", b->GetName(), subbranches);
107 return TTreeCache::AddBranch(b, subbranches);
113 printf(
"FWTTreeCache::AddBranch by name '%s', subbp=%d\n", branch, subbranches);
114 if (strcmp(branch,
"*") == 0)
116 return TTreeCache::AddBranch(branch, subbranches);
122 printf(
"FWTTreeCache::DropBranch by ptr '%s', subbp=%d\n", b->GetName(), subbranches);
123 return TTreeCache::DropBranch(b, subbranches);
129 printf(
"FWTTreeCache::DropBranch by name '%s', subbp=%d\n", branch, subbranches);
130 Int_t ret = TTreeCache::DropBranch(branch, subbranches);
131 if (strcmp(branch,
"*") == 0)
static void PrefetchingOn()
Int_t AddBranchTopLevel(const char *bname)
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)