#include <FWTTreeCache.h>
Classes | |
struct | LearnGuard |
Public Member Functions | |
Int_t | AddBranch (TBranch *b, Bool_t subbranches=kFALSE) override |
Int_t | AddBranch (const char *branch, Bool_t subbranches=kFALSE) override |
Int_t | AddBranchTopLevel (const char *bname) |
void | BranchAccessCallIn (const TBranch *b) |
Int_t | DropBranch (TBranch *b, Bool_t subbranches=kFALSE) override |
Int_t | DropBranch (const char *branch, Bool_t subbranches=kFALSE) override |
Int_t | DropBranchTopLevel (const char *bname) |
FWTTreeCache () | |
FWTTreeCache (TTree *tree, Int_t buffersize=0) | |
~FWTTreeCache () override | |
Static Public Member Functions | |
static int | GetDefaultCacheSize () |
static bool | IsLogging () |
static bool | IsPrefetching () |
static void | LoggingOff () |
static void | LoggingOn () |
static void | PrefetchingOff () |
static void | PrefetchingOn () |
static void | SetDefaultCacheSize (int def_size) |
Protected Member Functions | |
bool | is_branch_in_cache (const char *name) |
bool | start_learning () |
void | stop_learning () |
Private Attributes | |
std::set< std::string > | m_branch_set |
bool | m_silent_low_level = false |
Static Private Attributes | |
static int | s_default_size = 50 * 1024 * 1024 |
static bool | s_logging = false |
static bool | s_prefetching = false |
Definition at line 9 of file FWTTreeCache.h.
FWTTreeCache::FWTTreeCache | ( | ) |
Definition at line 9 of file FWTTreeCache.cc.
Referenced by FWTTreeCache::LearnGuard::~LearnGuard().
FWTTreeCache::FWTTreeCache | ( | TTree * | tree, |
Int_t | buffersize = 0 |
||
) |
Definition at line 13 of file FWTTreeCache.cc.
|
override |
Definition at line 17 of file FWTTreeCache.cc.
References s_default_size, s_logging, and s_prefetching.
Referenced by FWTTreeCache::LearnGuard::~LearnGuard().
|
override |
Definition at line 103 of file FWTTreeCache.cc.
References m_silent_low_level, and s_logging.
Referenced by AddBranchTopLevel(), and FWTTreeCache::LearnGuard::~LearnGuard().
|
override |
Int_t FWTTreeCache::AddBranchTopLevel | ( | const char * | bname | ) |
Definition at line 39 of file FWTTreeCache.cc.
References AddBranch(), is_branch_in_cache(), m_branch_set, and s_logging.
Referenced by BranchAccessCallIn(), and FWTTreeCache::LearnGuard::~LearnGuard().
void FWTTreeCache::BranchAccessCallIn | ( | const TBranch * | b | ) |
Definition at line 93 of file FWTTreeCache.cc.
References AddBranchTopLevel(), and s_logging.
Referenced by FWTTreeCache::LearnGuard::~LearnGuard().
|
override |
Definition at line 119 of file FWTTreeCache.cc.
References m_silent_low_level, and s_logging.
Referenced by DropBranchTopLevel(), and FWTTreeCache::LearnGuard::~LearnGuard().
|
override |
Int_t FWTTreeCache::DropBranchTopLevel | ( | const char * | bname | ) |
Definition at line 68 of file FWTTreeCache.cc.
References DropBranch(), is_branch_in_cache(), m_branch_set, and s_logging.
Referenced by FWTTreeCache::LearnGuard::~LearnGuard().
|
static |
Definition at line 35 of file FWTTreeCache.cc.
References s_default_size.
Referenced by FWFileEntry::openFile(), and FWTTreeCache::LearnGuard::~LearnGuard().
|
inlineprotected |
Definition at line 19 of file FWTTreeCache.h.
Referenced by AddBranchTopLevel(), and DropBranchTopLevel().
|
static |
Definition at line 28 of file FWTTreeCache.cc.
References s_logging.
Referenced by CmsShowNavigator::goTo(), FWFileEntry::NewEventItemCallIn(), FWFileEntry::openFile(), FWFileEntry::RemovingEventItemCallIn(), and FWTTreeCache::LearnGuard::~LearnGuard().
|
static |
Definition at line 32 of file FWTTreeCache.cc.
References s_prefetching.
Referenced by FWFileEntry::openFile(), FWFileEntry::runFilter(), and FWTTreeCache::LearnGuard::~LearnGuard().
|
static |
Definition at line 27 of file FWTTreeCache.cc.
References s_logging.
Referenced by FWTTreeCache::LearnGuard::~LearnGuard().
|
static |
Definition at line 26 of file FWTTreeCache.cc.
References s_logging.
Referenced by CmsShowMain::CmsShowMain(), and FWTTreeCache::LearnGuard::~LearnGuard().
|
static |
Definition at line 31 of file FWTTreeCache.cc.
References s_prefetching.
Referenced by FWTTreeCache::LearnGuard::~LearnGuard().
|
static |
Definition at line 30 of file FWTTreeCache.cc.
References s_prefetching.
Referenced by CmsShowMain::CmsShowMain(), and FWTTreeCache::LearnGuard::~LearnGuard().
|
static |
Definition at line 34 of file FWTTreeCache.cc.
References s_default_size.
Referenced by CmsShowMain::CmsShowMain(), and FWTTreeCache::LearnGuard::~LearnGuard().
|
inlineprotected |
Definition at line 21 of file FWTTreeCache.h.
Referenced by FWTTreeCache::LearnGuard::LearnGuard().
|
inlineprotected |
Definition at line 22 of file FWTTreeCache.h.
Referenced by FWTTreeCache::LearnGuard::~LearnGuard().
|
private |
Definition at line 11 of file FWTTreeCache.h.
Referenced by AddBranchTopLevel(), and DropBranchTopLevel().
|
private |
Definition at line 12 of file FWTTreeCache.h.
Referenced by AddBranch(), DropBranch(), FWTTreeCache::LearnGuard::LearnGuard(), and FWTTreeCache::LearnGuard::~LearnGuard().
|
staticprivate |
Definition at line 14 of file FWTTreeCache.h.
Referenced by GetDefaultCacheSize(), SetDefaultCacheSize(), and ~FWTTreeCache().
|
staticprivate |
Definition at line 15 of file FWTTreeCache.h.
Referenced by AddBranch(), AddBranchTopLevel(), BranchAccessCallIn(), DropBranch(), DropBranchTopLevel(), IsLogging(), LoggingOff(), LoggingOn(), and ~FWTTreeCache().
|
staticprivate |
Definition at line 16 of file FWTTreeCache.h.
Referenced by IsPrefetching(), PrefetchingOff(), PrefetchingOn(), and ~FWTTreeCache().