ROOT » TREE » TREE » TLeaf

class TLeaf: public TNamed


A TLeaf describes individual elements of a TBranch
See TBranch structure in TTree.

Function Members (Methods)

public:
virtual~TLeaf()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidBrowse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTNamed::Clear(Option_t* option = "")
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual Int_tTNamed::Compare(const TObject* obj) const
virtual voidTNamed::Copy(TObject& named) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidExport(TClonesArray*, Int_t)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual voidFillBasket(TBuffer& b)
virtual voidTNamed::FillBuffer(char*& buffer)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
TBranch*GetBranch() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
virtual TLeaf*GetLeafCount() const
virtual TLeaf*GetLeafCounter(Int_t& countval) const
virtual Int_tGetLen() const
virtual Int_tGetLenStatic() const
virtual Int_tGetLenType() const
virtual Int_tGetMaximum() const
virtual Int_tGetMinimum() const
virtual const char*TNamed::GetName() const
virtual Int_tGetNdata() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Int_tGetOffset() const
virtual Option_t*TObject::GetOption() const
virtual const char*TNamed::GetTitle() const
virtual const char*GetTypeName() const
virtual UInt_tTObject::GetUniqueID() const
virtual Double_tGetValue(Int_t i = 0) const
virtual Long64_tGetValueLong64(Int_t i = 0) const
virtual LongDouble_tGetValueLongDouble(Int_t i = 0) const
virtual void*GetValuePointer() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTNamed::Hash() const
virtual voidImport(TClonesArray*, Int_t)
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tIsOnTerminalBranch() const
virtual Bool_tIsRange() const
virtual Bool_tTNamed::IsSortable() const
virtual Bool_tIsUnsigned() const
Bool_tTObject::IsZombie() const
virtual voidTNamed::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
voidTObject::operator delete(void* ptr)
voidTObject::operator delete(void* ptr, void* vp)
voidTObject::operator delete[](void* ptr)
voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTNamed::Print(Option_t* option = "") const
virtual voidPrintValue(Int_t i = 0) const
virtual Int_tTObject::Read(const char* name)
virtual voidReadBasket(TBuffer&)
virtual voidReadBasketExport(TBuffer&, TClonesArray*, Int_t)
virtual voidReadValue(istream&, Char_t = ' ')
virtual voidTObject::RecursiveRemove(TObject* obj)
Int_tResetAddress(void* add, Bool_t destructor = kFALSE)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
virtual voidSetAddress(void* add = 0)
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidSetBranch(TBranch* branch)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
virtual voidSetLeafCount(TLeaf* leaf)
virtual voidSetLen(Int_t len = 1)
virtual voidTNamed::SetName(const char* name)MENU
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidSetOffset(Int_t offset = 0)
virtual voidSetRange(Bool_t range = kTRUE)
virtual voidTNamed::SetTitle(const char* title = "")MENU
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidSetUnsigned()
virtual voidShowMembers(TMemberInspector& insp) const
virtual Int_tTNamed::Sizeof() const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
TLeaf()
TLeaf(TBranch* parent, const char* name, const char* type)
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()
TLeaf&operator=(const TLeaf&)
TLeaf(const TLeaf&)

Data Members

public:
static TObject::<anonymous>TObject::kBitMask
static TObject::EStatusBitsTObject::kCanDelete
static TObject::EStatusBitsTObject::kCannotPick
static TObject::EStatusBitsTObject::kHasUUID
static TLeaf::<anonymous>kIndirectAddress
static TObject::EStatusBitsTObject::kInvalidObject
static TObject::<anonymous>TObject::kIsOnHeap
static TObject::EStatusBitsTObject::kIsReferenced
static TObject::EStatusBitsTObject::kMustCleanup
static TLeaf::<anonymous>kNewValue
static TObject::EStatusBitsTObject::kNoContextMenu
static TObject::<anonymous>TObject::kNotDeleted
static TObject::EStatusBitsTObject::kObjInCanvas
static TObject::<anonymous>TObject::kOverwrite
static TObject::<anonymous>TObject::kSingleKey
static TObject::<anonymous>TObject::kWriteDelete
static TObject::<anonymous>TObject::kZombie
protected:
TBranch*fBranch! Pointer to supporting branch (we do not own the branch)
Bool_tfIsRange(=kTRUE if leaf has a range, kFALSE otherwise)
Bool_tfIsUnsigned(=kTRUE if unsigned, kFALSE otherwise)
TLeaf*fLeafCountPointer to Leaf count if variable length (we do not own the counter)
Int_tfLenNumber of fixed length elements
Int_tfLenTypeNumber of bytes for this data type
TStringTNamed::fNameobject identifier
Int_tfNdata! Number of elements in fAddress data buffer
Int_tfOffsetOffset in ClonesArray object (if one)
TStringTNamed::fTitleobject title

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TLeaf()
TLeaf(TBranch* parent, const char* name, const char* type)
 Create a Leaf.

 See the TTree and TBranch constructors for explanation of parameters.
TLeaf(const TLeaf& )
copy constructor
TLeaf& operator=(const TLeaf& )
assignment operator
~TLeaf()
 -- Destructor.
void Browse(TBrowser* b)
 Browse the content of this leaf.
void FillBasket(TBuffer& b)
 -- Pack leaf elements in Basket output buffer.
TLeaf* GetLeafCounter(Int_t& countval) const
 -- Return a pointer to the counter of this leaf.

  If leaf name has the form var[nelem], where nelem is alphanumeric, then
     if nelem is a leaf name, return countval = 1 and the pointer to
          the leaf named nelem, otherwise return 0.
  If leaf name has the form var[nelem], where nelem is a non-negative integer, then
     return countval = nelem and a null pointer.
  If leaf name has the form of a multi-dimensional array (e.g. var[nelem][nelem2]
     where nelem and nelem2 are non-negative integers) then
     return countval = product of all dimension sizes and a null pointer.
  If leaf name has the form var[... (and does not match the previous 2
     cases) return countval = -1 and null pointer;
  Otherwise return countval = 1 and a null pointer.

Int_t GetLen() const
 -- Return the number of effective elements of this leaf.
Int_t ResetAddress(void* add, Bool_t destructor = kFALSE)
 -- Helper routine for TLeafX::SetAddress.

 The return value is non-zero if we owned the old
 value buffer and must delete it now.  The size
 of the value buffer is recalculated and stored,
 and a decision is made whether or not we own the
 new value buffer.

void SetLeafCount(TLeaf* leaf)
 -- Set the leaf count of this leaf.
void Streamer(TBuffer& )
 -- Stream a class object.
Double_t GetValue(Int_t i = 0) const
{ return 0.0; }
void PrintValue(Int_t i = 0) const
{}
void SetAddress(void* add = 0)
{}
void Export(TClonesArray* , Int_t )
{}
TBranch * GetBranch() const
{ return fBranch; }
TLeaf * GetLeafCount() const
{ return fLeafCount; }
Int_t GetLenStatic() const
{ return fLen; }
Int_t GetLenType() const
{ return fLenType; }
Int_t GetMaximum() const
{ return 0; }
Int_t GetMinimum() const
{ return 0; }
Int_t GetNdata() const
{ return fNdata; }
Int_t GetOffset() const
{ return fOffset; }
void * GetValuePointer() const
{ return 0; }
const char * GetTypeName() const
{ return ""; }
Long64_t GetValueLong64(Int_t i = 0) const
{ return GetValue(i); }
LongDouble_t GetValueLongDouble(Int_t i = 0) const
{ return GetValue(i); }
void Import(TClonesArray* , Int_t )
{}
Bool_t IsOnTerminalBranch() const
{ return kTRUE; }
Bool_t IsRange() const
{ return fIsRange; }
Bool_t IsUnsigned() const
{ return fIsUnsigned; }
void ReadBasket(TBuffer& )
{}
void ReadBasketExport(TBuffer& , TClonesArray* , Int_t )
{}
void ReadValue(istream& , Char_t = ' ')
void SetBranch(TBranch* branch)
{ fBranch = branch; }
void SetLen(Int_t len = 1)
{ fLen = len; }
void SetOffset(Int_t offset = 0)
{ fOffset = offset; }
void SetRange(Bool_t range = kTRUE)
{ fIsRange = range; }
void SetUnsigned()