TBranch


class description - source file - inheritance tree

class TBranch : public TNamed, public TAttFill


    protected:
void SetSkipZip(Bool_t skip = kTRUE) void WriteBasket(TBasket* basket) public:
TBranch(const char* name, void* address, const char* leaflist, Int_t basketsize = 32000, Int_t compress = -1) TBranch() virtual ~TBranch() virtual void Browse(TBrowser* b) static TClass* Class() virtual void DropBaskets() virtual Int_t Fill() virtual void FillLeaves(TBuffer& b) virtual TBranch* FindBranch(const char* name) virtual TLeaf* FindLeaf(const char* name) virtual char* GetAddress() const TBasket* GetBasket(Int_t basket) Int_t* GetBasketBytes() const Int_t* GetBasketEntry() const virtual Seek_t GetBasketSeek(Int_t basket) const virtual Int_t GetBasketSize() const virtual const char* GetClassName() const virtual Int_t GetCompressionLevel() const TDirectory* GetDirectory() const Stat_t GetEntries() const virtual Int_t GetEntry(Int_t entry = 0, Int_t getall = 0) virtual Int_t GetEntryExport(Int_t entry, Int_t getall, TClonesArray* list, Int_t n) Int_t GetEntryNumber() const Int_t GetEntryOffsetLen() const Int_t GetEvent(Int_t entry = 0) virtual TFile* GetFile(Int_t mode = 0) const char* GetFileName() const virtual const char* GetIconName() const virtual TLeaf* GetLeaf(const char* name) const TObjArray* GetListOfBaskets() TObjArray* GetListOfBranches() TObjArray* GetListOfLeaves() Int_t GetMaxBaskets() const TBranch* GetMother() const Int_t GetNleaves() const Int_t GetOffset() const Int_t GetReadBasket() const Int_t GetReadEntry() const virtual Int_t GetRow(Int_t row) Int_t GetSplitLevel() const TBranch* GetSubBranch(const TBranch* br) const Stat_t GetTotalSize() const Stat_t GetTotBytes() const TTree* GetTree() const Int_t GetWriteBasket() const Stat_t GetZipBytes() const virtual TClass* IsA() const Bool_t IsAutoDelete() const virtual Bool_t IsFolder() const virtual void Print(Option_t* option) const virtual void ReadBasket(TBuffer& b) virtual void ReadLeaves(TBuffer& b) virtual void Reset(Option_t* option) virtual void ResetAddress() static void ResetCount() virtual void ResetReadEntry() virtual void SetAddress(void* add) virtual void SetAutoDelete(Bool_t autodel = kTRUE) virtual void SetBasketSize(Int_t buffsize) virtual void SetBufferAddress(TBuffer* entryBuffer) virtual void SetCompressionLevel(Int_t level = 1) virtual void SetEntryOffsetLen(Int_t len) virtual void SetFile(TFile* file = 0) virtual void SetFile(const char* filename) virtual void SetOffset(Int_t offset = 0) virtual void SetTree(TTree* tree) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) virtual void UpdateAddress()

Data Members


    protected:
static Int_t fgCount ! branch counter Int_t fCompress (=1 branch is compressed, 0 otherwise) Int_t fBasketSize Initial Size of Basket Buffer Int_t fEntryOffsetLen Initial Length of fEntryOffset table in the basket buffers Int_t fWriteBasket Last basket number written Int_t fEntryNumber Current entry number (last one filled in this branch) Int_t fOffset Offset of this branch Int_t fMaxBaskets Maximum number of Baskets so far Int_t fSplitLevel Branch split level Int_t fNleaves ! Number of leaves Int_t fReadBasket ! Current basket number when reading Int_t fReadEntry ! Current entry number when reading Stat_t fEntries Number of entries Stat_t fTotBytes Total number of bytes in all leaves before compression Stat_t fZipBytes Total number of bytes in all leaves after compression TObjArray fBranches -> List of Branches of this branch TObjArray fLeaves -> List of leaves of this branch TObjArray fBaskets -> List of baskets of this branch Int_t fNBasketRAM ! Number of baskets in fBasketRAM Int_t* fBasketRAM ! [fNBasketRAM] table of basket numbers in memory Int_t* fBasketBytes [fMaxBaskets] Lenght of baskets on file Int_t* fBasketEntry [fMaxBaskets] Table of first entry in eack basket Seek_t* fBasketSeek [fMaxBaskets] Addresses of baskets on file TTree* fTree ! Pointer to Tree header char* fAddress ! Address of 1st leaf (variable or object) TDirectory* fDirectory ! Pointer to directory where this branch buffers are stored TString fFileName Name of file where buffers are stored ("" if in same file as Tree header) TBuffer* fEntryBuffer ! Buffer used to directly pass the content without streaming Bool_t fSkipZip !After being read, the buffer will not be unziped. public:
static const enum TBranch:: kAutoDelete


See also

TBranchClones, TBranchElement, TBranchObject

Class Description



Last update: Fri May 14 13:32:36 2004


ROOT page - Class index - Top of the page

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.