5 #include "TEventList.h" 14 TTreeCache(tree, buffersize)
36 if (bname ==
nullptr || bname[0] == 0)
38 printf(
"FWTTreeCache::AddBranchTopLevel Invalid branch name <%s>\n",
39 bname ==
nullptr ?
"nullptr" :
"empty string");
47 printf(
"FWTTreeCache::AddBranchTopLevel '%s' -- adding\n", bname);
57 printf(
"FWTTreeCache::AddBranchTopLevel '%s' -- already in cache\n", bname);
65 if (bname ==
nullptr || bname[0] == 0)
67 printf(
"FWTTreeCache::AddBranchTopLevel Invalid branch name");
75 printf(
"FWTTreeCache::DropBranchTopLevel '%s' -- dropping\n", bname);
83 printf(
"FWTTreeCache::DropBranchTopLevel '%s' -- not in cache\n", bname);
91 printf(
"FWTTreeCache::BranchAccessCallIn '%s'\n", b->GetName());
101 printf(
"FWTTreeCache::AddBranch by ptr '%s', subbp=%d\n", b->GetName(), subbranches);
102 return TTreeCache::AddBranch(b, subbranches);
108 printf(
"FWTTreeCache::AddBranch by name '%s', subbp=%d\n", branch, subbranches);
109 if (strcmp(branch,
"*") == 0)
111 return TTreeCache::AddBranch(branch, subbranches);
117 printf(
"FWTTreeCache::DropBranch by ptr '%s', subbp=%d\n", b->GetName(), subbranches);
118 return TTreeCache::DropBranch(b, subbranches);
124 printf(
"FWTTreeCache::DropBranch by name '%s', subbp=%d\n", branch, subbranches);
125 Int_t ret = TTreeCache::DropBranch(branch, subbranches);
126 if (strcmp(branch,
"*") == 0)
Int_t AddBranchTopLevel(const char *bname)
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)
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)