#ifndef ROOT_TTreeCache
#define ROOT_TTreeCache
#ifndef ROOT_TFileCacheRead
#include "TFileCacheRead.h"
#endif
class TTree;
class TBranch;
class TTreeCache : public TFileCacheRead {
protected:
Long64_t fEntryMin;
Long64_t fEntryMax;
Long64_t fEntryNext;
Long64_t fZipBytes;
Int_t fNbranches;
Int_t fNReadOk;
Int_t fNReadMiss;
Int_t fNReadPref;
TBranch **fBranches;
TList *fBrNames;
TTree *fOwner;
TTree *fTree;
Bool_t fIsLearning;
static Int_t fgLearnEntries;
private:
TTreeCache(const TTreeCache &);
TTreeCache& operator=(const TTreeCache &);
public:
TTreeCache();
TTreeCache(TTree *tree, Int_t buffersize=0);
virtual ~TTreeCache();
void AddBranch(TBranch *b);
Double_t GetEfficiency();
Double_t GetEfficiencyRel();
static Int_t GetLearnEntries();
Bool_t FillBuffer();
TTree *GetTree() const;
Bool_t IsLearning() const {return fIsLearning;}
virtual Int_t ReadBuffer(char *buf, Long64_t pos, Int_t len);
void SetEntryRange(Long64_t emin, Long64_t emax);
static void SetLearnEntries(Int_t n = 100);
void UpdateBranches(TTree *tree);
ClassDef(TTreeCache,1)
};
#endif
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.