61 Init(
tree,0,
name,pointer,basketsize,compress,splitlevel);
75 Init(0,parent,
name,pointer,basketsize,compress,splitlevel);
92 if ((compress == -1) &&
tree->GetDirectory()) {
94 if (
tree->GetDirectory()) {
95 bfile =
tree->GetDirectory()->GetFile();
101 char* cpointer = (
char*) pointer;
102 char** ppointer = (
char**) pointer;
109 tree->BuildStreamerInfo(cl);
114 if (basketsize < 100) {
126 const char* itype = 0;
146 if (!std::strcmp(member->
GetName(),
"fBits")) {
149 if (!std::strcmp(member->
GetName(),
"fUniqueID")) {
163 }
else if (
type == 2) {
165 }
else if (
type == 3) {
167 }
else if (
type == 5) {
169 }
else if (
type == 8) {
171 }
else if (
type == 9) {
173 }
else if (
type == 11) {
175 }
else if (
type == 12) {
177 }
else if (
type == 13) {
181 leaflist.
Form(
"%s[%s]/%s", member->
GetName(), branchcount.
Data(), itype);
182 Int_t comp = compress;
184 TBranch* branch =
new TBranch(
this, branchname,
this, leaflist, basketsize, comp);
230 char** ppointer = (
char**)
fAddress;
243 for (i = 0; i < nbranches; i++) {
251 for (i = 0; i < nbranches; i++) {
256 nbytes += branch->
FillImpl(imtHelper);
284 for (
Int_t i = 0; i < nbranches; i++) {
292 for (
Int_t i = 0; i < nbranches; i++) {
294 nbytes += branch->
GetEntry(entry, getall);
307 for (
Int_t i = 0; i < nbranches; i++) {
325 for (
Int_t i = 0; i < nbranches; i++) {
344 for (
Int_t i = 0; i < nbranches; i++) {
359 if (pp && (*pp == 0)) {
378 for (
Int_t i = 0; i < nbranches; i++) {
391 b.ReadVersion(&R__s, &R__c);
410 for (
Int_t i = 0; i < nbranches; i++) {
466 b.SetByteCount(R__c,
kTRUE);
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
A helper class for managing IMT work during TTree:Fill operations.
A Branch for the case of an array of clone objects.
TClonesArray * fList
! Pointer to the clonesarray
void UpdateFile() override
Refresh the value of fDirectory (i.e.
TBranch * fBranchCount
Branch with clones count.
Int_t FillImpl(ROOT::Internal::TBranchIMTHelper *) override
Loop on all branches and fill Basket buffer.
void SetAddress(void *add) override
Set address of this branch.
void Browse(TBrowser *b) override
Browse this branch.
Int_t fN
! Number of elements in ClonesArray
void Reset(Option_t *option="") override
Reset branch.
void Print(Option_t *option="") const override
Print branch parameters.
Int_t fRead
! flag = 1 if clonesarray has been read
void Streamer(TBuffer &) override
Serialize/Deserialize from a buffer.
TString fClassName
Name of the class of the objets in the ClonesArray.
void SetBasketSize(Int_t buffsize) override
Reset basket size for all sub-branches.
TClass * IsA() const override
TBranchClones()
Default and i/o constructor.
void ResetAfterMerge(TFileMergeInfo *) override
Reset branch after a merge.
~TBranchClones() override
Destructor.
Int_t GetEntry(Long64_t entry=0, Int_t getall=0) override
Read all branches and return total number of bytes read.
void Init(TTree *tree, TBranch *parent, const char *name, void *clonesaddress, Int_t basketsize=32000, Int_t compress=-1, Int_t splitlevel=1)
Initialization (non-virtual, to be called from constructor).
Int_t fNdataMax
! Maximum value of fN
A TTree is a list of TBranches.
virtual TLeaf * GetLeaf(const char *name) const
Return pointer to the 1st Leaf named name in thisBranch.
TString fFileName
Name of file where buffers are stored ("" if in same file as Tree header)
Int_t fEntryOffsetLen
Initial Length of fEntryOffset table in the basket buffers.
TBranch()
Default constructor. Used for I/O by default.
Int_t fMaxBaskets
Maximum number of Baskets so far.
Long64_t fTotBytes
Total number of bytes in all leaves before compression.
@ kIsClone
To indicate a TBranchClones.
@ kDoNotProcess
Active bit for branches.
char * fAddress
! Address of 1st leaf (variable or object)
Int_t fOffset
Offset of this branch.
virtual Int_t GetEntry(Long64_t entry=0, Int_t getall=0)
Read all leaves of entry and return total number of bytes read.
Long64_t fReadEntry
! Current entry number when reading
void Print(Option_t *option="") const override
Print TBranch parameters.
virtual void SetAddress(void *add)
Set address of this branch.
virtual Int_t GetEntryExport(Long64_t entry, Int_t getall, TClonesArray *list, Int_t n)
Read all leaves of an entry and export buffers to real objects in a TClonesArray list.
Long64_t fZipBytes
Total number of bytes in all leaves after compression.
Int_t fSplitLevel
Branch split level.
virtual void UpdateFile()
Refresh the value of fDirectory (i.e.
TObjArray fBranches
-> List of Branches of this branch
virtual void ResetAfterMerge(TFileMergeInfo *)
Reset a Branch.
TDirectory * fDirectory
! Pointer to directory where this branch buffers are stored
TBranch * fMother
! Pointer to top-level parent branch in the tree.
TBranch * fParent
! Pointer to parent branch.
virtual void SetBasketSize(Int_t buffsize)
Set the basket size The function makes sure that the basket size is greater than fEntryOffsetlen.
Int_t fWriteBasket
Last basket number written.
TObjArray * GetListOfLeaves()
Int_t fBasketSize
Initial Size of Basket Buffer.
virtual void Reset(Option_t *option="")
Reset a Branch.
Long64_t fEntryNumber
Current entry number (last one filled in this branch)
TBranch * GetMother() const
Get our top-level parent branch in the tree.
Int_t fCompress
Compression level and algorithm.
virtual Int_t FillImpl(ROOT::Internal::TBranchIMTHelper *)
Loop on all leaves of this branch to fill Basket buffer.
Long64_t fEntries
Number of entries.
TTree * fTree
! Pointer to Tree header
Using a TBrowser one can browse all ROOT objects.
Buffer base class used for serializing objects.
TClass instances represent classes, structs and namespaces in the ROOT type system.
void BuildRealData(void *pointer=nullptr, Bool_t isTransient=kFALSE)
Build a full list of persistent data members.
TList * GetListOfRealData() const
Bool_t CanIgnoreTObjectStreamer()
static TClass * GetClass(const char *name, Bool_t load=kTRUE, Bool_t silent=kFALSE)
Static method returning pointer to TClass of the specified class name.
An array of clone (identical) objects.
virtual void ExpandCreateFast(Int_t n)
Expand or shrink the array to n elements and create the clone objects by calling their default ctor.
TClass * GetClass() const
void Clear(Option_t *option="") override
Clear the clones array.
void Browse(TBrowser *b) override
Browse this collection (called by TBrowser).
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
All ROOT classes may have RTTI (run time type identification) support added.
Int_t GetMaxIndex(Int_t dim) const
Return maximum index for array dimension "dim".
Bool_t IsPersistent() const
Int_t GetArrayDim() const
Return number of array dimensions.
Bool_t IsBasic() const
Return true if data member is a basic type, e.g. char, int, long...
Bool_t IsaPointer() const
Return true if data member is a pointer.
TDataType * GetDataType() const
const char * GetFullTypeName() const
Get the concrete type name of this data member, including const and volatile qualifiers.
Basic data type descriptor (datatype information is obtained from CINT).
A ROOT file is composed of a header, followed by consecutive data records (TKey instances) with a wel...
Int_t GetCompressionSettings() const
A TLeaf for an Integer data type.
virtual void SetMaximum(Int_t max)
A TLeaf describes individual elements of a TBranch See TBranch structure in TTree.
virtual Double_t GetValue(Int_t i=0) const
virtual void SetLen(Int_t len=1)
virtual void SetAddress(void *add=nullptr)
virtual void SetOffset(Int_t offset=0)
virtual void SetLeafCount(TLeaf *leaf)
Set the leaf count of this leaf.
virtual void Import(TClonesArray *, Int_t)
const char * GetName() const override
Returns name of object.
void Streamer(TBuffer &) override
Stream an object of class TObject.
virtual void SetName(const char *name)
Set the name of the TNamed.
Int_t GetEntriesFast() const
void Streamer(TBuffer &) override
Stream all objects in the array to or from the I/O buffer.
void Delete(Option_t *option="") override
Remove all objects from the array AND delete all heap based objects.
TObject * At(Int_t idx) const override
TObject * UncheckedAt(Int_t i) const
TObject * FindObject(const char *name) const override
Find an object in this collection using its name.
void Add(TObject *obj) override
friend class TClonesArray
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
The TRealData class manages the effective list of all data members for a given class.
const char * GetName() const override
Returns name of object.
TDataMember * GetDataMember() const
Long_t GetThisOffset() const
const char * Data() const
virtual void Streamer(TBuffer &)
Stream a string object.
void Form(const char *fmt,...)
Formats a string using a printf style format descriptor.
A TTree represents a columnar dataset.
TDirectory * GetDirectory() const