Logo ROOT  
Reference Guide
TBranchElement.h
Go to the documentation of this file.
1// @(#)root/tree:$Id$
2// Author: Rene Brun 14/01/2001
3
4/*************************************************************************
5 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef ROOT_TBranchElement
13#define ROOT_TBranchElement
14
15
16//////////////////////////////////////////////////////////////////////////
17// //
18// TBranchElement //
19// //
20// A Branch for the case of an object. //
21//////////////////////////////////////////////////////////////////////////
22
23
24#include "TBranch.h"
25
26#include "TClassRef.h"
27
28#include "TTree.h"
29
30#include "TError.h"
31
32class TFolder;
33class TStreamerInfo;
37class TVirtualArray;
38
40
41class TBranchElement : public TBranch {
42
43// Friends
44 friend class TTreeCloner;
45 friend class TLeafElement;
46
47// Types
48protected:
51 kDeleteObject = BIT(16), ///< We are the owner of fObject.
52 kCache = BIT(18), ///< Need to pushd/pop fOnfileObject.
53 kOwnOnfileObj = BIT(19), ///< We are the owner of fOnfileObject.
54 kAddressSet = BIT(20), ///< The addressing set have been called for this branch
55 kMakeClass = BIT(21), ///< This branch has been switched to using the MakeClass Mode
56 kDecomposedObj = BIT(21) ///< More explicit alias for kMakeClass.
57 };
58
59 // Note on fType values:
60 // -1 unsplit object with custom streamer at time of writing
61 // 0 unsplit object with default streamer at time of writing
62 // OR simple data member of split object (fID==-1 for the former)
63 // 1 base class of a split object.
64 // 2 class typed data member of a split object
65 // 3 branch count of a split TClonesArray
66 // 31 data member of the content of a split TClonesArray
67 // 4 branch count of a split STL Collection.
68 // 41 data member of the content of a split STL collection
69
70
71// Data Members
72protected:
73 TString fClassName; ///< Class name of referenced object
74 TString fParentName; ///< Name of parent class
75 TString fClonesName; ///< Name of class in TClonesArray (if any)
76 TVirtualCollectionProxy *fCollProxy; ///<! collection interface (if any)
77 UInt_t fCheckSum; ///< CheckSum of class
78 Version_t fClassVersion; ///< Version number of class
79 Int_t fID; ///< element serial number in fInfo
80 Int_t fType; ///< branch type
81 Int_t fStreamerType; ///< branch streamer type
82 Int_t fMaximum; ///< Maximum entries for a TClonesArray or variable array
83 Int_t fSTLtype; ///<! STL container type
84 Int_t fNdata; ///<! Number of data in this branch
85 TBranchElement *fBranchCount; ///< pointer to primary branchcount branch
86 TBranchElement *fBranchCount2; ///< pointer to secondary branchcount branch
87 TStreamerInfo *fInfo; ///<! Pointer to StreamerInfo
88 char *fObject; ///<! Pointer to object at *fAddress
89 TVirtualArray *fOnfileObject; ///<! Place holder for the onfile representation of data members.
90 Bool_t fInit : 1; ///<! Initialization flag for branch assignment
91 Bool_t fInInitInfo : 1;///<! True during the 2nd part of InitInfo (cut recursion).
92 Bool_t fInitOffsets: 1;///<! Initialization flag to not endlessly recalculate offsets
93 TClassRef fTargetClass; ///<! Reference to the target in-memory class
94 TClassRef fCurrentClass; ///<! Reference to current (transient) class definition
95 TClassRef fParentClass; ///<! Reference to class definition in fParentName
96 TClassRef fBranchClass; ///<! Reference to class definition in fClassName
97 TClassRef fClonesClass; ///<! Reference to class definition in fClonesName
98 Int_t *fBranchOffset; ///<! Sub-Branch offsets with respect to current transient class
99 Int_t fBranchID; ///<! ID number assigned by a TRefTable.
100 TStreamerInfoActions::TIDs fNewIDs; ///<! Nested List of the serial number of all the StreamerInfo to be used.
101 TStreamerInfoActions::TActionSequence *fReadActionSequence; ///<! Set of actions to be executed to extract the data from the basket.
102 TStreamerInfoActions::TActionSequence *fFillActionSequence; ///<! Set of actions to be executed to write the data to the basket.
103 TVirtualCollectionIterators *fIterators; ///<! holds the iterators when the branch is of fType==4.
104 TVirtualCollectionIterators *fWriteIterators; ///<! holds the read (non-staging) iterators when the branch is of fType==4 and associative containers.
105 TVirtualCollectionPtrIterators *fPtrIterators; ///<! holds the iterators when the branch is of fType==4 and it is a split collection of pointers.
106
107// Not implemented
108private:
109 TBranchElement(const TBranchElement&); // not implemented
110 TBranchElement& operator=(const TBranchElement&); // not implemented
111
112 static void SwitchContainer(TObjArray *);
113
114// Implementation use only functions.
115protected:
116 void BuildTitle(const char* name);
117 virtual void InitializeOffsets();
118 virtual void InitInfo();
120 TStreamerInfo *FindOnfileInfo(TClass *valueClass, const TObjArray &branches) const;
121 TClass *GetParentClass(); // Class referenced by fParentName
122 TStreamerInfo *GetInfoImp() const;
123 void ReleaseObject();
124 void SetupInfo();
127 Int_t Unroll(const char* name, TClass* cltop, TClass* cl, char* ptr, Int_t basketsize, Int_t splitlevel, Int_t btype);
128 inline void ValidateAddress() const;
129
130 void Init(TTree *tree, TBranch *parent, const char* name, TStreamerInfo* sinfo, Int_t id, char* pointer, Int_t basketsize = 32000, Int_t splitlevel = 0, Int_t btype = 0);
131 void Init(TTree *tree, TBranch *parent, const char* name, TClonesArray* clones, Int_t basketsize = 32000, Int_t splitlevel = 0, Int_t compress = ROOT::RCompressionSetting::EAlgorithm::kInherit);
132 void Init(TTree *tree, TBranch *parent, const char* name, TVirtualCollectionProxy* cont, Int_t basketsize = 32000, Int_t splitlevel = 0, Int_t compress = ROOT::RCompressionSetting::EAlgorithm::kInherit);
133
135 void ReadLeavesImpl(TBuffer& b);
147 void SetReadLeavesPtr();
149 void SetupAddressesImpl();
150 void SetAddressImpl(void *addr, Bool_t implied);
151
152 void FillLeavesImpl(TBuffer& b);
165 void SetFillLeavesPtr();
167
168// Public Interface.
169public:
171 TBranchElement(TTree *tree, const char* name, TStreamerInfo* sinfo, Int_t id, char* pointer, Int_t basketsize = 32000, Int_t splitlevel = 0, Int_t btype = 0);
172 TBranchElement(TTree *tree, const char* name, TClonesArray* clones, Int_t basketsize = 32000, Int_t splitlevel = 0, Int_t compress = ROOT::RCompressionSetting::EAlgorithm::kInherit);
173 TBranchElement(TTree *tree, const char* name, TVirtualCollectionProxy* cont, Int_t basketsize = 32000, Int_t splitlevel = 0, Int_t compress = ROOT::RCompressionSetting::EAlgorithm::kInherit);
174 TBranchElement(TBranch *parent, const char* name, TStreamerInfo* sinfo, Int_t id, char* pointer, Int_t basketsize = 32000, Int_t splitlevel = 0, Int_t btype = 0);
175 TBranchElement(TBranch *parent, const char* name, TClonesArray* clones, Int_t basketsize = 32000, Int_t splitlevel = 0, Int_t compress = ROOT::RCompressionSetting::EAlgorithm::kInherit);
176 TBranchElement(TBranch *parent, const char* name, TVirtualCollectionProxy* cont, Int_t basketsize = 32000, Int_t splitlevel = 0, Int_t compress = ROOT::RCompressionSetting::EAlgorithm::kInherit);
177
178 virtual ~TBranchElement();
179
180 virtual void Browse(TBrowser* b);
181 virtual TBranch *FindBranch(const char *name);
182 virtual TLeaf *FindLeaf(const char *name);
183 virtual char *GetAddress() const;
188 virtual const char *GetClassName() const { return fClassName.Data(); }
189 virtual TClass *GetClass() const { return fBranchClass; }
190 virtual const char *GetClonesName() const { return fClonesName.Data(); }
192 TClass *GetCurrentClass(); // Class referenced by transient description
193 virtual Int_t GetEntry(Long64_t entry = 0, Int_t getall = 0);
194 virtual Int_t GetExpectedType(TClass *&clptr,EDataType &type);
195 virtual TString GetFullName() const;
196 const char *GetIconName() const;
197 Int_t GetID() const { return fID; }
198 TStreamerInfo *GetInfo() const;
199 Bool_t GetMakeClass() const;
200 char *GetObject() const;
202 virtual const char *GetParentName() const { return fParentName.Data(); }
203 virtual Int_t GetMaximum() const;
204 Int_t GetNdata() const { return fNdata; }
205 Int_t GetType() const { return fType; }
207 virtual TClass *GetTargetClass() { return fTargetClass; }
208 virtual const char *GetTypeName() const;
209 Double_t GetValue(Int_t i, Int_t len, Bool_t subarr = kFALSE) const { return GetTypedValue<Double_t>(i, len, subarr); }
210 template<typename T > T GetTypedValue(Int_t i, Int_t len, Bool_t subarr = kFALSE) const;
211 virtual void *GetValuePointer() const;
214 Bool_t IsFolder() const;
215 virtual Bool_t IsObjectOwner() const { return TestBit(kDeleteObject); }
216 virtual Bool_t Notify() { if (fAddress) { ResetAddress(); } return 1; }
217 virtual void Print(Option_t* option = "") const;
218 void PrintValue(Int_t i) const;
219 virtual void Reset(Option_t* option = "");
220 virtual void ResetAfterMerge(TFileMergeInfo *);
221 virtual void ResetAddress();
222 virtual void ResetDeleteObject();
223 virtual void ResetInitInfo(bool recurse);
224 virtual void SetAddress(void* addobj);
225 virtual Bool_t SetMakeClass(Bool_t decomposeObj = kTRUE);
226 virtual void SetObject(void *objadd);
227 virtual void SetBasketSize(Int_t buffsize);
229 virtual void SetClassName(const char* name) { fClassName = name; }
230 virtual void SetOffset(Int_t offset);
231 virtual void SetMissing();
232 inline void SetParentClass(TClass* clparent);
233 virtual void SetParentName(const char* name) { fParentName = name; }
234 virtual void SetTargetClass(const char *name);
235 virtual void SetupAddresses();
236 virtual void SetType(Int_t btype) { fType = btype; }
237 virtual void UpdateFile();
238 void Unroll(const char *name, TClass *cl, TStreamerInfo *sinfo, char* objptr, Int_t bufsize, Int_t splitlevel);
239
242 kBaseClassNode = 1, // -- We are a base class element.
243 // Note: This does not include an STL container class which is
244 // being used as a base class because the streamer element
245 // in that case is not the base streamer element it is the
246 // STL streamer element.
251 kSTLMemberNode = 41
252 };
253
254private:
256
257 ClassDef(TBranchElement,10) // Branch in case of an object
258};
259
261{
262 fParentClass = clparent;
263 fParentName = clparent ? clparent->GetName() : "";
264}
265
267{
268 // Check to see if the user changed the object pointer without telling us.
269
270 if (fID < 0) {
271 // We are a top-level branch.
272 if (!fTree->GetMakeClass() && fAddress && (*((char**) fAddress) != fObject)) {
273 // The semantics of fAddress and fObject are violated.
274 // Assume the user changed the pointer on us.
275 // Note: The cast is here because we want to be able to
276 // be called from the constant get functions.
277
278 // FIXME: Disable the check/warning TTree until we add a missing interface.
279 if (TestBit(kDeleteObject)) {
280 // This should never happen!
281 Error("ValidateAddress", "We owned an object whose address changed! our ptr: %p new ptr: %p",
282 (void*)fObject, (void*)*((char**) fAddress));
283 const_cast<TBranchElement*>(this)->ResetBit(kDeleteObject);
284 }
285 const_cast<TBranchElement*>(this)->SetAddress(fAddress);
286 }
287 }
288}
289
290#endif // ROOT_TBranchElement
#define b(i)
Definition: RSha256.hxx:100
int Int_t
Definition: RtypesCore.h:43
short Version_t
Definition: RtypesCore.h:63
unsigned int UInt_t
Definition: RtypesCore.h:44
const Bool_t kFALSE
Definition: RtypesCore.h:90
bool Bool_t
Definition: RtypesCore.h:61
double Double_t
Definition: RtypesCore.h:57
long long Long64_t
Definition: RtypesCore.h:71
const Bool_t kTRUE
Definition: RtypesCore.h:89
const char Option_t
Definition: RtypesCore.h:64
#define ClassDef(name, id)
Definition: Rtypes.h:322
#define BIT(n)
Definition: Rtypes.h:83
EDataType
Definition: TDataType.h:28
char name[80]
Definition: TGX11.cxx:109
int type
Definition: TGX11.cxx:120
A Branch for the case of an object.
void ReadLeavesClonesMember(TBuffer &b)
Read leaves into i/o buffers for this branch.
Bool_t fInit
! Initialization flag for branch assignment
virtual void ResetAddress()
Set branch address to zero and free all allocated memory.
void SetActionSequence(TClass *originalClass, TStreamerInfo *localInfo, TStreamerInfoActions::TActionSequence::SequenceGetter_t create, TStreamerInfoActions::TActionSequence *&actionSequence)
Set the sequence of actions needed to read the data out of the buffer.
char * fObject
! Pointer to object at *fAddress
TBranchElement * GetBranchCount() const
TStreamerInfo * fInfo
! Pointer to StreamerInfo
Int_t fSTLtype
! STL container type
void ReadLeavesCustomStreamer(TBuffer &b)
Read leaves into i/o buffers for this branch.
virtual void SetBranchFolder()
void SetParentClass(TClass *clparent)
TBranchElement * fBranchCount2
pointer to secondary branchcount branch
Int_t fNdata
! Number of data in this branch
Int_t GetClassVersion()
const char * GetIconName() const
Return icon name depending on type of branch element.
void FillLeavesCollectionMember(TBuffer &b)
Write leaves into i/o buffers for this branch.
TString fClassName
Class name of referenced object.
virtual void Print(Option_t *option="") const
Print TBranch parameters.
TStreamerInfoActions::TActionSequence * fFillActionSequence
! Set of actions to be executed to write the data to the basket.
Bool_t fInInitInfo
! True during the 2nd part of InitInfo (cut recursion).
Int_t GetID() const
Int_t * GetBranchOffset() const
TStreamerInfo * GetInfo() const
Get streamer info for the branch class.
void ReadLeavesCollection(TBuffer &b)
Read leaves into i/o buffers for this branch.
virtual Int_t FillImpl(ROOT::Internal::TBranchIMTHelper *)
Loop on all leaves of this branch to fill the basket buffer.
virtual void SetType(Int_t btype)
void FillLeavesMember(TBuffer &b)
Write leaves into i/o buffers for this branch.
void SetBranchCount(TBranchElement *bre)
Set the branch counter for this branch.
virtual char * GetAddress() const
Get the branch address.
static void SwitchContainer(TObjArray *)
Modify the container type of the branches.
void SetReadActionSequence()
Set the sequence of actions needed to read the data out of the buffer.
virtual const char * GetClassName() const
Return the name of the user class whose content is stored in this branch, if any.
virtual Int_t GetExpectedType(TClass *&clptr, EDataType &type)
Fill expectedClass and expectedType with information on the data type of the object/values contained ...
TVirtualCollectionProxy * GetCollectionProxy()
Return the collection proxy describing the branch content, if any.
@ kOwnOnfileObj
We are the owner of fOnfileObject.
@ kAddressSet
The addressing set have been called for this branch.
@ kDecomposedObj
More explicit alias for kMakeClass.
@ kDeleteObject
We are the owner of fObject.
@ kCache
Need to pushd/pop fOnfileObject.
@ kMakeClass
This branch has been switched to using the MakeClass Mode.
void SetupAddressesImpl()
If the branch address is not set, we set all addresses starting with the top level parent branch.
virtual Bool_t IsObjectOwner() const
TClassRef fParentClass
! Reference to class definition in fParentName
void BuildTitle(const char *name)
Set branch and leaf name and title in the case of a container sub-branch.
virtual Int_t GetMaximum() const
Return maximum count value of the branchcount if any.
TString fParentName
Name of parent class.
Bool_t IsBranchFolder() const
void ReadLeavesCollectionSplitPtrMember(TBuffer &b)
Read leaves into i/o buffers for this branch.
Double_t GetValue(Int_t i, Int_t len, Bool_t subarr=kFALSE) const
TClassRef fBranchClass
! Reference to class definition in fClassName
TStreamerInfoActions::TIDs fNewIDs
! Nested List of the serial number of all the StreamerInfo to be used.
Int_t GetStreamerType() const
TClass * GetCurrentClass()
Return a pointer to the current type of the data member corresponding to branch element.
UInt_t fCheckSum
CheckSum of class.
TStreamerInfoActions::TActionSequence * fReadActionSequence
! Set of actions to be executed to extract the data from the basket.
void FillLeavesClones(TBuffer &b)
Write leaves into i/o buffers for this branch.
virtual void SetObject(void *objadd)
Set object this branch is pointing to.
virtual void SetAddress(void *addobj)
Point this branch at an object.
TBranchElement * GetBranchCount2() const
virtual TLeaf * FindLeaf(const char *name)
Find the leaf corresponding to the name 'searchname'.
void ReadLeavesMemberBranchCount(TBuffer &b)
Read leaves into i/o buffers for this branch.
void SetReadLeavesPtr()
Set the ReadLeaves pointer to execute the expected operations.
Int_t Unroll(const char *name, TClass *cltop, TClass *cl, char *ptr, Int_t basketsize, Int_t splitlevel, Int_t btype)
Split class cl into sub-branches of this branch.
void FillLeavesMakeClass(TBuffer &b)
Write leaves into i/o buffers for this branch.
void FillLeavesCollectionSplitVectorPtrMember(TBuffer &b)
Write leaves into i/o buffers for this branch.
void FillLeavesCollection(TBuffer &b)
Write leaves into i/o buffers for this branch.
Int_t fID
element serial number in fInfo
Bool_t IsMissingCollection() const
Detect a collection written using a zero pointer in old versions of root.
void FillLeavesMemberCounter(TBuffer &b)
Write leaves into i/o buffers for this branch.
virtual void Browse(TBrowser *b)
Browse the branch content.
void SetAddressImpl(void *addr, Bool_t implied)
See TBranchElement::SetAddress.
void SetBranchCount2(TBranchElement *bre)
void FillLeavesCollectionSplitPtrMember(TBuffer &b)
Write leaves into i/o buffers for this branch.
virtual Int_t GetEntry(Long64_t entry=0, Int_t getall=0)
Read all branches of a BranchElement and return total number of bytes.
virtual Bool_t Notify()
This method must be overridden to handle object notification.
TStreamerInfo * GetInfoImp() const
Get streamer info for the branch class.
virtual void SetTargetClass(const char *name)
Set the name of the class of the in-memory object into which the data will loaded.
virtual void ResetDeleteObject()
Release ownership of any allocated objects.
virtual const char * GetParentName() const
void ValidateAddress() const
TVirtualArray * GetOnfileObject() const
TVirtualCollectionIterators * fWriteIterators
! holds the read (non-staging) iterators when the branch is of fType==4 and associative containers.
void PrintValue(Int_t i) const
Prints values of leaves.
TVirtualArray * fOnfileObject
! Place holder for the onfile representation of data members.
virtual const char * GetTypeName() const
Return type name of element in the branch.
virtual TClass * GetTargetClass()
void FillLeavesAssociativeCollectionMember(TBuffer &b)
Write leaves into i/o buffers for this branch.
void Init(TTree *tree, TBranch *parent, const char *name, TStreamerInfo *sinfo, Int_t id, char *pointer, Int_t basketsize=32000, Int_t splitlevel=0, Int_t btype=0)
Init when the branch object is not a TClonesArray nor an STL container.
virtual void UpdateFile()
Refresh the value of fDirectory (i.e.
TClassRef fClonesClass
! Reference to class definition in fClonesName
virtual void * GetValuePointer() const
Returns pointer to first data element of this branch.
void ReadLeavesImpl(TBuffer &b)
Unconfiguration Read Leave function.
TBranchElement(const TBranchElement &)
virtual void SetClassName(const char *name)
void SetupInfo()
Set the value of fInfo.
void FillLeavesImpl(TBuffer &b)
Unconfiguration Fill Leave function.
void FillLeavesClonesMember(TBuffer &b)
Write leaves into i/o buffers for this branch.
TClassRef fCurrentClass
! Reference to current (transient) class definition
char * GetObject() const
Return a pointer to our object.
TStreamerInfo * FindOnfileInfo(TClass *valueClass, const TObjArray &branches) const
void ReadLeavesClones(TBuffer &b)
Read leaves into i/o buffers for this branch.
Bool_t IsFolder() const
Return kTRUE if more than one leaf, kFALSE otherwise.
virtual TString GetFullName() const
Return the 'full' name of the branch.
Bool_t GetMakeClass() const
Return whether this branch is in a mode where the object are decomposed or not (Also known as MakeCla...
Int_t * fBranchOffset
! Sub-Branch offsets with respect to current transient class
Int_t fType
branch type
virtual void ResetInitInfo(bool recurse)
Reset offset and StremerInfo information from this branch.
void ReadLeavesMakeClass(TBuffer &b)
Read leaves into i/o buffers for this branch.
TBranchElement()
Default and I/O constructor.
void FillLeavesCustomStreamer(TBuffer &b)
Write leaves into i/o buffers for this branch.
virtual const char * GetClonesName() const
virtual TClass * GetClass() const
Int_t fMaximum
Maximum entries for a TClonesArray or variable array.
T GetTypedValue(Int_t i, Int_t len, Bool_t subarr=kFALSE) const
void ReadLeavesMemberCounter(TBuffer &b)
Read leaves into i/o buffers for this branch.
Int_t fBranchID
! ID number assigned by a TRefTable.
TVirtualCollectionIterators * fIterators
! holds the iterators when the branch is of fType==4.
virtual TBranch * FindBranch(const char *name)
Find the immediate sub-branch with passed name.
void ReleaseObject()
Delete any object we may have allocated on a previous call to SetAddress.
TClassRef fTargetClass
! Reference to the target in-memory class
void FillLeavesMemberBranchCount(TBuffer &b)
Write leaves into i/o buffers for this branch.
TBranchElement & operator=(const TBranchElement &)
virtual void SetMissing()
Set offset of the object (to which the data member represented by this branch belongs) inside its con...
virtual Bool_t SetMakeClass(Bool_t decomposeObj=kTRUE)
Set the branch in a mode where the object are decomposed (Also known as MakeClass mode).
virtual void SetBasketSize(Int_t buffsize)
Reset the basket size for all sub-branches of this branch element.
TString fClonesName
Name of class in TClonesArray (if any)
TBranchElement * fBranchCount
pointer to primary branchcount branch
Int_t GetType() const
void ReadLeavesMember(TBuffer &b)
Read leaves into i/o buffers for this branch.
virtual void ResetAfterMerge(TFileMergeInfo *)
Reset a Branch after a Merge operation (drop data but keep customizations)
virtual ~TBranchElement()
Destructor.
Bool_t fInitOffsets
! Initialization flag to not endlessly recalculate offsets
virtual void SetParentName(const char *name)
Version_t fClassVersion
Version number of class.
TVirtualCollectionPtrIterators * fPtrIterators
! holds the iterators when the branch is of fType==4 and it is a split collection of pointers.
UInt_t GetCheckSum()
virtual void InitInfo()
Init the streamer info for the branch class, try to compensate for class code unload/reload and schem...
virtual void InitializeOffsets()
Initialize the base class subobjects offsets of our sub-branches and set fOffset if we are a containe...
virtual void SetupAddresses()
If the branch address is not set, we set all addresses starting with the top level parent branch.
TClass * GetParentClass()
Return a pointer to the parent class of the branch element.
Int_t GetNdata() const
TVirtualCollectionProxy * fCollProxy
! collection interface (if any)
void SetFillActionSequence()
Set the sequence of actions needed to write the data out from the buffer.
virtual void SetOffset(Int_t offset)
Set offset of the object (to which the data member represented by this branch belongs) inside its con...
virtual void Reset(Option_t *option="")
Reset a Branch.
Int_t fStreamerType
branch streamer type
void ReadLeavesCollectionSplitVectorPtrMember(TBuffer &b)
Read leaves into i/o buffers for this branch.
void SetFillLeavesPtr()
Set the FillLeaves pointer to execute the expected operations.
void ReadLeavesCollectionMember(TBuffer &b)
Read leaves into i/o buffers for this branch.
A TTree is a list of TBranches.
Definition: TBranch.h:91
char * fAddress
! Address of 1st leaf (variable or object)
Definition: TBranch.h:145
TTree * fTree
! Pointer to Tree header
Definition: TBranch.h:142
Using a TBrowser one can browse all ROOT objects.
Definition: TBrowser.h:37
Buffer base class used for serializing objects.
Definition: TBuffer.h:42
TClassRef is used to implement a permanent reference to a TClass object.
Definition: TClassRef.h:28
TClass instances represent classes, structs and namespaces in the ROOT type system.
Definition: TClass.h:80
An array of clone (identical) objects.
Definition: TClonesArray.h:32
A TFolder object is a collection of objects and folders.
Definition: TFolder.h:30
A TLeaf for the general case when using the branches created via a TStreamerInfo (i....
Definition: TLeafElement.h:32
A TLeaf describes individual elements of a TBranch See TBranch structure in TTree.
Definition: TLeaf.h:49
virtual const char * GetName() const
Returns name of object.
Definition: TNamed.h:47
An array of TObjects.
Definition: TObjArray.h:37
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
Definition: TObject.h:187
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
Definition: TObject.cxx:694
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
Definition: TObject.cxx:891
void ResetBit(UInt_t f)
Definition: TObject.h:186
EStatusBits
Definition: TObject.h:57
SequencePtr(*)(TStreamerInfo *info, TVirtualCollectionProxy *collectionProxy, TClass *originalClass) SequenceGetter_t
Describe Streamer information for one class version.
Definition: TStreamerInfo.h:46
Basic string class.
Definition: TString.h:131
const char * Data() const
Definition: TString.h:364
Class implementing or helping the various TTree cloning method.
Definition: TTreeCloner.h:31
A TTree represents a columnar dataset.
Definition: TTree.h:78
Int_t GetMakeClass() const
Definition: TTree.h:489
Wrapper around an object and giving indirect access to its content even if the object is not of a cla...
Definition: TVirtualArray.h:27
Small helper class to generically acquire and release iterators.
double T(double x)
Definition: ChebyshevPol.h:34
std::vector< TIDNode > TIDs
Definition: tree.py:1
@ kInherit
Some objects use this value to denote that the compression algorithm should be inherited from the par...
Definition: Compression.h:86