#include <TTreeCache.h>
Inheritance diagram for TTreeCache:
Public Member Functions | |
TTreeCache () | |
TTreeCache (TTree *tree, Int_t buffersize=0) | |
virtual | ~TTreeCache () |
virtual void | AddBranch (TBranch *b, Bool_t subbranches=kFALSE) |
virtual void | AddBranch (const char *branch, Bool_t subbranches=kFALSE) |
Double_t | GetEfficiency () const |
Double_t | GetEfficiencyRel () const |
virtual Bool_t | FillBuffer () |
TTree * | GetOwner () const |
TTree * | GetTree () const |
virtual Bool_t | IsLearning () const |
virtual void | Print (Option_t *option="") const |
virtual Int_t | ReadBuffer (char *buf, Long64_t pos, Int_t len) |
virtual void | ResetCache () |
virtual void | SetEntryRange (Long64_t emin, Long64_t emax) |
void | StartLearningPhase () |
virtual void | StopLearningPhase () |
virtual void | UpdateBranches (TTree *tree, Bool_t owner=kFALSE) |
TTreeCache () | |
TTreeCache (TTree *tree, Int_t buffersize=0) | |
virtual | ~TTreeCache () |
virtual void | AddBranch (TBranch *b, Bool_t subbranches=kFALSE) |
virtual void | AddBranch (const char *branch, Bool_t subbranches=kFALSE) |
Double_t | GetEfficiency () const |
Double_t | GetEfficiencyRel () const |
virtual Bool_t | FillBuffer () |
TTree * | GetOwner () const |
TTree * | GetTree () const |
virtual Bool_t | IsLearning () const |
virtual void | Print (Option_t *option="") const |
virtual Int_t | ReadBuffer (char *buf, Long64_t pos, Int_t len) |
virtual void | ResetCache () |
virtual void | SetEntryRange (Long64_t emin, Long64_t emax) |
void | StartLearningPhase () |
virtual void | StopLearningPhase () |
virtual void | UpdateBranches (TTree *tree, Bool_t owner=kFALSE) |
Static Public Member Functions | |
static Int_t | GetLearnEntries () |
static void | SetLearnEntries (Int_t n=10) |
static Int_t | GetLearnEntries () |
static void | SetLearnEntries (Int_t n=10) |
Protected Attributes | |
Long64_t | fEntryMin |
Long64_t | fEntryMax |
first entry in the cache | |
Long64_t | fEntryCurrent |
last entry in the cache | |
Long64_t | fEntryNext |
current lowest entry number in the cache | |
Long64_t | fZipBytes |
next entry number where cache must be filled | |
Int_t | fNbranches |
Total compressed size of branches in cache. | |
Int_t | fNReadOk |
Number of branches in the cache. | |
Int_t | fNReadMiss |
Int_t | fNReadPref |
TObjArray * | fBranches |
TList * | fBrNames |
List of branches to be stored in the cache. | |
TTree * | fOwner |
list of branch names in the cache | |
TTree * | fTree |
pointer to the owner Tree/chain | |
Bool_t | fIsLearning |
pointer to the current Tree | |
Bool_t | fIsManual |
true if cache is in learning mode | |
TObjArray * | fBranches |
TList * | fBrNames |
List of branches to be stored in the cache. | |
TTree * | fOwner |
list of branch names in the cache | |
TTree * | fTree |
pointer to the owner Tree/chain | |
Static Protected Attributes | |
static Int_t | fgLearnEntries |
true if cache is StopLearningPhase was used | |
Private Member Functions | |
TTreeCache (const TTreeCache &) | |
TTreeCache & | operator= (const TTreeCache &) |
TTreeCache (const TTreeCache &) | |
TTreeCache & | operator= (const TTreeCache &) |
Definition at line 34 of file TTreeCache.h.
TTreeCache::TTreeCache | ( | const TTreeCache & | ) | [private] |
TTreeCache::TTreeCache | ( | ) |
Definition at line 268 of file TTreeCache.cxx.
References fBranches, fEntryMin, fEntryNext, fgLearnEntries, TObjArray::GetEntries(), and TTree::GetListOfLeaves().
TTreeCache::~TTreeCache | ( | ) | [virtual] |
TTreeCache::TTreeCache | ( | const TTreeCache & | ) | [private] |
TTreeCache::TTreeCache | ( | ) |
virtual TTreeCache::~TTreeCache | ( | ) | [virtual] |
TTreeCache& TTreeCache::operator= | ( | const TTreeCache & | ) | [private] |
Reimplemented from TFileCacheRead.
Definition at line 302 of file TTreeCache.cxx.
References TList::Add(), TObjArray::AddAtAndExpand(), b, fBranches, fBrNames, fIsLearning, fNbranches, fOwner, fTree, fZipBytes, gDebug, TObjArray::GetEntriesFast(), TTree::GetTree(), i, j, kFALSE, kTRUE, and TObjArray::UncheckedAt().
Referenced by TTreeCacheUnzip::AddBranch(), and AddBranch().
Reimplemented from TFileCacheRead.
Definition at line 340 of file TTreeCache.cxx.
References AddBranch(), fEntryNext, TString::Form(), fOwner, gDebug, TTree::GetBranch(), TLeaf::GetBranch(), TLeaf::GetLeafCount(), TTree::GetListOfFriends(), TTree::GetListOfLeaves(), TNamed::GetName(), TFriendElement::GetTree(), i, kFALSE, kNPOS, kTRUE, name, s, StopLearningPhase(), and t.
Double_t TTreeCache::GetEfficiency | ( | ) | const |
Definition at line 543 of file TTreeCache.cxx.
References fNReadOk, and fNReadPref.
Referenced by Print().
Double_t TTreeCache::GetEfficiencyRel | ( | ) | const |
Definition at line 559 of file TTreeCache.cxx.
References fNReadMiss, and fNReadOk.
Referenced by Print().
Int_t TTreeCache::GetLearnEntries | ( | ) | [static] |
Definition at line 571 of file TTreeCache.cxx.
References fgLearnEntries.
Referenced by G__G__Tree_280_0_9(), G__setup_memfuncTTreeCache(), TEventIterTree::GetLearnEntries(), and Print().
Bool_t TTreeCache::FillBuffer | ( | ) | [virtual] |
Definition at line 426 of file TTreeCache.cxx.
References b, chain, xmlio::Class, elist, entries, entry, fBranches, TFileCacheRead::fBufferSizeMin, fEntryCurrent, fEntryMax, fEntryMin, fEntryNext, TFileCacheRead::fFile, fIsLearning, fNbranches, fNReadPref, TFileCacheRead::fNseek, TFileCacheRead::fNtot, fOwner, fZipBytes, gDebug, TTree::GetAutoFlush(), TTree::GetEntries(), TTree::GetEventList(), TObject::GetName(), TTree::GetReadEntry(), GetTree(), TChain::GetTreeNumber(), TChain::GetTreeOffset(), TTree::GetZipBytes(), i, j, kFALSE, kTRUE, len, Long64_t, TFileCacheRead::Prefetch(), t, and TObjArray::UncheckedAt().
Referenced by ReadBuffer(), and StopLearningPhase().
TTree * TTreeCache::GetOwner | ( | ) | const |
TTree * TTreeCache::GetTree | ( | ) | const |
Definition at line 588 of file TTreeCache.cxx.
References fBranches, fNbranches, TTree::GetTree(), and TObjArray::UncheckedAt().
Referenced by TTreeCacheUnzip::FillBuffer(), and FillBuffer().
virtual Bool_t TTreeCache::IsLearning | ( | ) | const [inline, virtual] |
Reimplemented from TFileCacheRead.
Definition at line 71 of file TTreeCache.h.
References fIsLearning.
Referenced by TEventIterTree::GetNextEvent(), and TEventIterTree::GetTrees().
void TTreeCache::Print | ( | Option_t * | option = "" |
) | const [virtual] |
Reimplemented from TFileCacheRead.
Definition at line 596 of file TTreeCache.cxx.
References TFileCacheRead::fFile, fNbranches, GetEfficiency(), GetEfficiencyRel(), GetLearnEntries(), TNamed::GetName(), TFileCacheRead::Print(), and TString::ToLower().
Referenced by TTreeCacheUnzip::Print().
Reimplemented from TFileCacheRead.
Definition at line 624 of file TTreeCache.cxx.
References FillBuffer(), fNReadMiss, fNReadOk, and TFileCacheRead::ReadBuffer().
void TTreeCache::ResetCache | ( | ) | [virtual] |
Definition at line 660 of file TTreeCache.cxx.
References TFileCacheRead::Prefetch().
Referenced by TChain::LoadTree().
Definition at line 668 of file TTreeCache.cxx.
References TList::Delete(), fBrNames, fEntryCurrent, fEntryMax, fEntryMin, fEntryNext, fgLearnEntries, fIsLearning, fIsManual, fNbranches, fZipBytes, gDebug, TObject::Info(), kFALSE, and kTRUE.
Referenced by TEventIterTree::GetNextEvent(), TTreePlayer::Process(), and TTreeCacheUnzip::SetEntryRange().
void TTreeCache::SetLearnEntries | ( | Int_t | n = 10 |
) | [static] |
Definition at line 697 of file TTreeCache.cxx.
References fgLearnEntries.
Referenced by G__G__Tree_280_0_18(), G__setup_memfuncTTreeCache(), TTree::SetCacheLearnEntries(), and stress8read().
void TTreeCache::StartLearningPhase | ( | ) |
Definition at line 707 of file TTreeCache.cxx.
References TList::Delete(), fBrNames, fEntryCurrent, fIsLearning, fIsManual, TFileCacheRead::fIsTransferred, fNbranches, fZipBytes, kFALSE, and kTRUE.
void TTreeCache::StopLearningPhase | ( | ) | [virtual] |
Definition at line 723 of file TTreeCache.cxx.
References fEntryNext, FillBuffer(), fIsLearning, fIsManual, kFALSE, and kTRUE.
Referenced by AddBranch(), and TTreeCacheUnzip::StopLearningPhase().
Definition at line 742 of file TTreeCache.cxx.
References TObjArray::AddAt(), b, fBranches, fBrNames, fEntryCurrent, fEntryMax, fEntryMin, fEntryNext, fgLearnEntries, fIsLearning, fNbranches, fOwner, fTree, fZipBytes, TTree::GetCurrentFile(), TCollection::GetEntries(), TObjString::GetName(), kFALSE, and TFileCacheRead::SetFile().
Referenced by TEventIterTree::GetTrees(), TChain::LoadTree(), and TTreeCacheUnzip::UpdateBranches().
TTreeCache& TTreeCache::operator= | ( | const TTreeCache & | ) | [private] |
Reimplemented from TFileCacheRead.
Reimplemented from TFileCacheRead.
Double_t TTreeCache::GetEfficiency | ( | ) | const |
Double_t TTreeCache::GetEfficiencyRel | ( | ) | const |
static Int_t TTreeCache::GetLearnEntries | ( | ) | [static] |
virtual Bool_t TTreeCache::FillBuffer | ( | ) | [virtual] |
TTree* TTreeCache::GetOwner | ( | ) | const |
TTree* TTreeCache::GetTree | ( | ) | const |
virtual Bool_t TTreeCache::IsLearning | ( | ) | const [inline, virtual] |
Reimplemented from TFileCacheRead.
Definition at line 71 of file TTreeCache.h.
References fIsLearning.
virtual void TTreeCache::Print | ( | Option_t * | option = "" |
) | const [virtual] |
Reimplemented from TFileCacheRead.
Reimplemented from TFileCacheRead.
virtual void TTreeCache::ResetCache | ( | ) | [virtual] |
static void TTreeCache::SetLearnEntries | ( | Int_t | n = 10 |
) | [static] |
void TTreeCache::StartLearningPhase | ( | ) |
virtual void TTreeCache::StopLearningPhase | ( | ) | [virtual] |
Long64_t TTreeCache::fEntryMin [protected] |
Definition at line 37 of file TTreeCache.h.
Referenced by FillBuffer(), SetEntryRange(), TTreeCache(), and UpdateBranches().
Long64_t TTreeCache::fEntryMax [protected] |
first entry in the cache
Definition at line 38 of file TTreeCache.h.
Referenced by TTreeCacheUnzip::FillBuffer(), FillBuffer(), SetEntryRange(), and UpdateBranches().
Long64_t TTreeCache::fEntryCurrent [protected] |
last entry in the cache
Definition at line 39 of file TTreeCache.h.
Referenced by TTreeCacheUnzip::FillBuffer(), FillBuffer(), SetEntryRange(), StartLearningPhase(), and UpdateBranches().
Long64_t TTreeCache::fEntryNext [protected] |
current lowest entry number in the cache
Definition at line 40 of file TTreeCache.h.
Referenced by AddBranch(), TTreeCacheUnzip::FillBuffer(), FillBuffer(), SetEntryRange(), StopLearningPhase(), TTreeCache(), and UpdateBranches().
Long64_t TTreeCache::fZipBytes [protected] |
next entry number where cache must be filled
Definition at line 41 of file TTreeCache.h.
Referenced by AddBranch(), TTreeCacheUnzip::FillBuffer(), FillBuffer(), SetEntryRange(), StartLearningPhase(), and UpdateBranches().
Int_t TTreeCache::fNbranches [protected] |
Total compressed size of branches in cache.
Definition at line 42 of file TTreeCache.h.
Referenced by AddBranch(), TTreeCacheUnzip::FillBuffer(), FillBuffer(), GetTree(), Print(), SetEntryRange(), StartLearningPhase(), and UpdateBranches().
Int_t TTreeCache::fNReadOk [protected] |
Number of branches in the cache.
Definition at line 43 of file TTreeCache.h.
Referenced by GetEfficiency(), GetEfficiencyRel(), and ReadBuffer().
Int_t TTreeCache::fNReadMiss [protected] |
Int_t TTreeCache::fNReadPref [protected] |
Definition at line 45 of file TTreeCache.h.
Referenced by TTreeCacheUnzip::FillBuffer(), FillBuffer(), and GetEfficiency().
TObjArray* TTreeCache::fBranches [protected] |
Definition at line 46 of file TTreeCache.h.
Referenced by AddBranch(), TTreeCacheUnzip::FillBuffer(), FillBuffer(), GetTree(), TTreeCache(), TTreeCacheUnzip::UnzipBuffer(), UpdateBranches(), and ~TTreeCache().
TList* TTreeCache::fBrNames [protected] |
List of branches to be stored in the cache.
Definition at line 47 of file TTreeCache.h.
Referenced by AddBranch(), SetEntryRange(), StartLearningPhase(), UpdateBranches(), and ~TTreeCache().
TTree* TTreeCache::fOwner [protected] |
list of branch names in the cache
Definition at line 48 of file TTreeCache.h.
Referenced by AddBranch(), TTreeCacheUnzip::FillBuffer(), FillBuffer(), GetOwner(), and UpdateBranches().
TTree* TTreeCache::fTree [protected] |
pointer to the owner Tree/chain
Definition at line 49 of file TTreeCache.h.
Referenced by AddBranch(), and UpdateBranches().
Bool_t TTreeCache::fIsLearning [protected] |
pointer to the current Tree
Definition at line 50 of file TTreeCache.h.
Referenced by AddBranch(), TTreeCacheUnzip::FillBuffer(), FillBuffer(), TTreeCacheUnzip::GetUnzipBuffer(), IsLearning(), TTreeCacheUnzip::IsQueueEmpty(), SetEntryRange(), StartLearningPhase(), StopLearningPhase(), TTreeCacheUnzip::UnzipCache(), and UpdateBranches().
Bool_t TTreeCache::fIsManual [protected] |
true if cache is in learning mode
Definition at line 51 of file TTreeCache.h.
Referenced by SetEntryRange(), StartLearningPhase(), and StopLearningPhase().
Int_t TTreeCache::fgLearnEntries [static, protected] |
true if cache is StopLearningPhase was used
Definition at line 52 of file TTreeCache.h.
Referenced by GetLearnEntries(), SetEntryRange(), SetLearnEntries(), TTreeCache(), and UpdateBranches().
TObjArray* TTreeCache::fBranches [protected] |
Definition at line 46 of file TTreeCache.h.
TList* TTreeCache::fBrNames [protected] |
TTree* TTreeCache::fOwner [protected] |
TTree* TTreeCache::fTree [protected] |