Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

TBranch Class Reference

#include <TBranch.h>

Inheritance diagram for TBranch:

Inheritance graph
[legend]
Collaboration diagram for TBranch:

Collaboration graph
[legend]
List of all members.

Public Methods

 TBranch ()
 TBranch (const char *name, void *address, const char *leaflist, Int_t basketsize=32000, Int_t compress=-1)
virtual ~TBranch ()
virtual void Browse (TBrowser *b)
virtual void DropBaskets ()
virtual Int_t Fill ()
virtual void FillLeaves (TBuffer &b)
virtual TBranch * FindBranch (const char *name)
virtual TLeafFindLeaf (const char *name)
virtual char * GetAddress () const
virtual Int_t GetBasketSize () const
virtual const char * GetClassName () const
virtual Int_t GetCompressionLevel () 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 GetEvent (Int_t entry=0)
Int_t GetEntryOffsetLen () const
const char * GetIconName () const
virtual TLeafGetLeaf (const char *name) const
TBasketGetBasket (Int_t basket)
Int_t * GetBasketBytes () const
Int_t * GetBasketEntry () const
virtual Seek_t GetBasketSeek (Int_t basket) const
TDirectoryGetDirectory () const
virtual TFileGetFile (Int_t mode=0)
const char * GetFileName () const
Int_t GetOffset () const
Int_t GetReadBasket () const
Int_t GetReadEntry () const
Int_t GetWriteBasket () const
Stat_t GetTotalSize () const
Stat_t GetTotBytes () const
Stat_t GetZipBytes () const
Int_t GetEntryNumber () const
TObjArrayGetListOfBaskets ()
TObjArrayGetListOfBranches ()
TObjArrayGetListOfLeaves ()
Int_t GetMaxBaskets () const
Int_t GetNleaves () const
Int_t GetSplitLevel () const
Stat_t GetEntries () const
TTreeGetTree () const
virtual Int_t GetRow (Int_t row)
TBranch * GetMother () const
TBranch * GetSubBranch (const TBranch *br) const
Bool_t IsAutoDelete () const
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 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 UpdateAddress ()

Static Public Methods

void ResetCount ()

Protected Types

enum  { kAutoDelete = BIT(15) }

Protected Methods

void SetSkipZip (Bool_t skip=kTRUE)
 After being read, the buffer will not be unziped.

void WriteBasket (TBasket *basket)

Protected Attributes

Int_t fCompress
 branch counter

Int_t fBasketSize
Int_t fEntryOffsetLen
Int_t fWriteBasket
Int_t fEntryNumber
Int_t fOffset
Int_t fMaxBaskets
Int_t fSplitLevel
Int_t fNleaves
Int_t fReadBasket
 Number of leaves.

Int_t fReadEntry
 Current basket number when reading.

Stat_t fEntries
 Current entry number when reading.

Stat_t fTotBytes
Stat_t fZipBytes
TObjArray fBranches
TObjArray fLeaves
TObjArray fBaskets
Int_t fNBasketRAM
Int_t * fBasketRAM
 Number of baskets in fBasketRAM.

Int_t * fBasketBytes
 [fNBasketRAM] table of basket numbers in memory

Int_t * fBasketEntry
Seek_t * fBasketSeek
TTreefTree
char * fAddress
 Pointer to Tree header.

TDirectoryfDirectory
 Address of 1st leaf (variable or object).

TString fFileName
 Pointer to directory where this branch buffers are stored.

TBufferfEntryBuffer
Bool_t fSkipZip
 Buffer used to directly pass the content without streaming.


Static Protected Attributes

Int_t fgCount

Member Enumeration Documentation

anonymous enum [protected]
 

Enumeration values:
kAutoDelete 

Definition at line 63 of file TBranch.h.


Constructor & Destructor Documentation

TBranch::TBranch  
 

TBranch::TBranch const char *    name,
void *    address,
const char *    leaflist,
Int_t    basketsize = 32000,
Int_t    compress = -1
 

virtual TBranch::~TBranch   [virtual]
 


Member Function Documentation

void TBranch::SetSkipZip Bool_t    skip = kTRUE [protected]
 

After being read, the buffer will not be unziped.

Definition at line 95 of file TBranch.h.

References fSkipZip.

void TBranch::WriteBasket TBasket   basket [protected]
 

virtual void TBranch::Browse TBrowser   b [virtual]
 

Reimplemented from TObject.

Reimplemented in TBranchClones, TBranchElement, TBranchObject, and THbookBranch.

virtual void TBranch::DropBaskets   [virtual]
 

virtual Int_t TBranch::Fill   [virtual]
 

Reimplemented in TBranchClones, TBranchElement, and TBranchObject.

virtual void TBranch::FillLeaves TBuffer   b [virtual]
 

Reimplemented in TBranchElement.

virtual TBranch* TBranch::FindBranch const char *    name [virtual]
 

virtual TLeaf* TBranch::FindLeaf const char *    name [virtual]
 

virtual char* TBranch::GetAddress   const [virtual]
 

Definition at line 109 of file TBranch.h.

References fAddress.

virtual Int_t TBranch::GetBasketSize   const [virtual]
 

Definition at line 110 of file TBranch.h.

References fBasketSize.

virtual const char* TBranch::GetClassName   const [virtual]
 

Reimplemented in TBranchElement, and TBranchObject.

Definition at line 111 of file TBranch.h.

virtual Int_t TBranch::GetCompressionLevel   const [virtual]
 

Definition at line 112 of file TBranch.h.

References fCompress.

virtual Int_t TBranch::GetEntry Int_t    entry = 0,
Int_t    getall = 0
[virtual]
 

Reimplemented in TBranchClones, TBranchElement, TBranchObject, and THbookBranch.

Referenced by GetEvent().

virtual Int_t TBranch::GetEntryExport Int_t    entry,
Int_t    getall,
TClonesArray   list,
Int_t    n
[virtual]
 

Int_t TBranch::GetEvent Int_t    entry = 0
 

Definition at line 115 of file TBranch.h.

References GetEntry().

Int_t TBranch::GetEntryOffsetLen   const
 

Definition at line 116 of file TBranch.h.

References fEntryOffsetLen.

const char* TBranch::GetIconName   const [virtual]
 

Reimplemented from TObject.

Reimplemented in TBranchElement.

virtual TLeaf* TBranch::GetLeaf const char *    name const [virtual]
 

TBasket* TBranch::GetBasket Int_t    basket
 

Int_t* TBranch::GetBasketBytes   const
 

Definition at line 120 of file TBranch.h.

References fBasketBytes.

Int_t* TBranch::GetBasketEntry   const
 

Definition at line 121 of file TBranch.h.

References fBasketEntry.

virtual Seek_t TBranch::GetBasketSeek Int_t    basket const [virtual]
 

TDirectory* TBranch::GetDirectory   const
 

Definition at line 123 of file TBranch.h.

virtual TFile* TBranch::GetFile Int_t    mode = 0 [virtual]
 

const char* TBranch::GetFileName   const
 

Definition at line 125 of file TBranch.h.

References TString::Data().

Int_t TBranch::GetOffset   const
 

Definition at line 126 of file TBranch.h.

References fOffset.

Int_t TBranch::GetReadBasket   const
 

Definition at line 127 of file TBranch.h.

References fReadBasket.

Int_t TBranch::GetReadEntry   const
 

Definition at line 128 of file TBranch.h.

References fReadEntry.

Int_t TBranch::GetWriteBasket   const
 

Definition at line 129 of file TBranch.h.

References fWriteBasket.

Stat_t TBranch::GetTotalSize   const
 

Stat_t TBranch::GetTotBytes   const
 

Definition at line 131 of file TBranch.h.

References fTotBytes.

Stat_t TBranch::GetZipBytes   const
 

Definition at line 132 of file TBranch.h.

References fZipBytes.

Int_t TBranch::GetEntryNumber   const
 

Definition at line 133 of file TBranch.h.

References fEntryNumber.

TObjArray* TBranch::GetListOfBaskets  
 

Definition at line 134 of file TBranch.h.

TObjArray* TBranch::GetListOfBranches  
 

Definition at line 135 of file TBranch.h.

TObjArray* TBranch::GetListOfLeaves  
 

Definition at line 136 of file TBranch.h.

Int_t TBranch::GetMaxBaskets   const
 

Definition at line 137 of file TBranch.h.

References fMaxBaskets.

Int_t TBranch::GetNleaves   const
 

Definition at line 138 of file TBranch.h.

References fNleaves.

Int_t TBranch::GetSplitLevel   const
 

Definition at line 139 of file TBranch.h.

References fSplitLevel.

Stat_t TBranch::GetEntries   const
 

Definition at line 140 of file TBranch.h.

References fEntries.

TTree* TBranch::GetTree   const
 

Definition at line 141 of file TBranch.h.

virtual Int_t TBranch::GetRow Int_t    row [virtual]
 

TBranch* TBranch::GetMother   const
 

TBranch* TBranch::GetSubBranch const TBranch *    br const
 

Bool_t TBranch::IsAutoDelete   const
 

Bool_t TBranch::IsFolder   const [virtual]
 

Reimplemented from TObject.

Reimplemented in TBranchClones, TBranchElement, and TBranchObject.

virtual void TBranch::Print Option_t *    option = "" const [virtual]
 

Reimplemented from TNamed.

Reimplemented in TBranchClones, TBranchElement, and TBranchObject.

virtual void TBranch::ReadBasket TBuffer   b [virtual]
 

virtual void TBranch::ReadLeaves TBuffer   b [virtual]
 

Reimplemented in TBranchElement.

virtual void TBranch::Reset Option_t *    option = "" [virtual]
 

Reimplemented in TBranchClones, TBranchElement, and TBranchObject.

virtual void TBranch::ResetReadEntry   [virtual]
 

Definition at line 151 of file TBranch.h.

References fReadEntry.

virtual void TBranch::SetAddress void *    add [virtual]
 

Reimplemented in TBranchClones, TBranchElement, TBranchObject, and THbookBranch.

virtual void TBranch::SetAutoDelete Bool_t    autodel = kTRUE [virtual]
 

Reimplemented in TBranchElement, and TBranchObject.

virtual void TBranch::SetBasketSize Int_t    buffsize [virtual]
 

Reimplemented in TBranchClones, TBranchElement, and TBranchObject.

virtual void TBranch::SetBufferAddress TBuffer   entryBuffer [virtual]
 

virtual void TBranch::SetCompressionLevel Int_t    level = 1 [virtual]
 

virtual void TBranch::SetEntryOffsetLen Int_t    len [virtual]
 

Definition at line 157 of file TBranch.h.

References fEntryOffsetLen.

virtual void TBranch::SetFile TFile   file = 0 [virtual]
 

virtual void TBranch::SetFile const char *    filename [virtual]
 

virtual void TBranch::SetOffset Int_t    offset = 0 [virtual]
 

Definition at line 160 of file TBranch.h.

References fOffset.

virtual void TBranch::SetTree TTree   tree [virtual]
 

Definition at line 161 of file TBranch.h.

virtual void TBranch::UpdateAddress   [virtual]
 

Reimplemented in TBranchObject.

Definition at line 162 of file TBranch.h.

void TBranch::ResetCount   [static]
 

Definition at line 164 of file TBranch.h.

References fgCount.


Member Data Documentation

Int_t TBranch::fgCount [static, protected]
 

Definition at line 65 of file TBranch.h.

Referenced by ResetCount().

Int_t TBranch::fCompress [protected]
 

branch counter

Definition at line 66 of file TBranch.h.

Referenced by GetCompressionLevel().

Int_t TBranch::fBasketSize [protected]
 

Definition at line 67 of file TBranch.h.

Referenced by GetBasketSize().

Int_t TBranch::fEntryOffsetLen [protected]
 

Definition at line 68 of file TBranch.h.

Referenced by GetEntryOffsetLen(), and SetEntryOffsetLen().

Int_t TBranch::fWriteBasket [protected]
 

Definition at line 69 of file TBranch.h.

Referenced by GetWriteBasket().

Int_t TBranch::fEntryNumber [protected]
 

Definition at line 70 of file TBranch.h.

Referenced by GetEntryNumber().

Int_t TBranch::fOffset [protected]
 

Definition at line 71 of file TBranch.h.

Referenced by GetOffset(), and SetOffset().

Int_t TBranch::fMaxBaskets [protected]
 

Definition at line 72 of file TBranch.h.

Referenced by GetMaxBaskets().

Int_t TBranch::fSplitLevel [protected]
 

Definition at line 73 of file TBranch.h.

Referenced by GetSplitLevel().

Int_t TBranch::fNleaves [protected]
 

Definition at line 74 of file TBranch.h.

Referenced by GetNleaves().

Int_t TBranch::fReadBasket [protected]
 

Number of leaves.

Definition at line 75 of file TBranch.h.

Referenced by GetReadBasket().

Int_t TBranch::fReadEntry [protected]
 

Current basket number when reading.

Definition at line 76 of file TBranch.h.

Referenced by GetReadEntry(), and ResetReadEntry().

Stat_t TBranch::fEntries [protected]
 

Current entry number when reading.

Definition at line 77 of file TBranch.h.

Referenced by GetEntries(), and THbookBranch::SetEntries().

Stat_t TBranch::fTotBytes [protected]
 

Definition at line 78 of file TBranch.h.

Referenced by GetTotBytes().

Stat_t TBranch::fZipBytes [protected]
 

Definition at line 79 of file TBranch.h.

Referenced by GetZipBytes().

TObjArray TBranch::fBranches [protected]
 

Definition at line 80 of file TBranch.h.

TObjArray TBranch::fLeaves [protected]
 

Definition at line 81 of file TBranch.h.

TObjArray TBranch::fBaskets [protected]
 

Definition at line 82 of file TBranch.h.

Int_t TBranch::fNBasketRAM [protected]
 

Definition at line 83 of file TBranch.h.

Int_t* TBranch::fBasketRAM [protected]
 

Number of baskets in fBasketRAM.

Definition at line 84 of file TBranch.h.

Int_t* TBranch::fBasketBytes [protected]
 

[fNBasketRAM] table of basket numbers in memory

Definition at line 85 of file TBranch.h.

Referenced by GetBasketBytes().

Int_t* TBranch::fBasketEntry [protected]
 

Definition at line 86 of file TBranch.h.

Referenced by GetBasketEntry().

Seek_t* TBranch::fBasketSeek [protected]
 

Definition at line 87 of file TBranch.h.

TTree* TBranch::fTree [protected]
 

Definition at line 88 of file TBranch.h.

char* TBranch::fAddress [protected]
 

Pointer to Tree header.

Definition at line 89 of file TBranch.h.

Referenced by GetAddress(), and TBranchElement::Notify().

TDirectory* TBranch::fDirectory [protected]
 

Address of 1st leaf (variable or object).

Definition at line 90 of file TBranch.h.

TString TBranch::fFileName [protected]
 

Pointer to directory where this branch buffers are stored.

Definition at line 91 of file TBranch.h.

TBuffer* TBranch::fEntryBuffer [protected]
 

Definition at line 92 of file TBranch.h.

Bool_t TBranch::fSkipZip [protected]
 

Buffer used to directly pass the content without streaming.

Definition at line 94 of file TBranch.h.

Referenced by SetSkipZip().


The documentation for this class was generated from the following file:
Generated on Thu Dec 18 14:56:42 2003 for ROOT by doxygen1.2.16