46, fBranchCount(nullptr)
59, fBranchCount(nullptr)
73, fBranchCount(nullptr)
83 if (tree==
nullptr && parent!=
nullptr) tree = parent->
GetTree();
92 if ((
compress == -1) && tree->GetDirectory()) {
94 if (tree->GetDirectory()) {
95 bfile = tree->GetDirectory()->GetFile();
109 tree->BuildStreamerInfo(cl);
126 const char*
itype =
nullptr;
132 if (
rd->IsObject()) {
136 if (!
member->IsPersistent()) {
146 if (!std::strcmp(
member->GetName(),
"fBits")) {
149 if (!std::strcmp(
member->GetName(),
"fUniqueID")) {
157 Warning(
"BranchClones",
"Cannot process: %s::%s of type zero!", cl->
GetName(),
member->GetName());
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) {
188 leaf->SetOffset(
rd->GetThisOffset());
286 if (((
TLeaf*)
branch->GetListOfLeaves()->UncheckedAt(0))->GetOffset() < 0) {
359 if (pp && (*pp ==
nullptr)) {
447 leaf->SetOffset(
rd->GetThisOffset());
466 b.SetByteCount(
R__c,
true);
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
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.
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.
Basic data type descriptor (datatype information is obtained from CINT).
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
A TLeaf for an Integer data type.
A TLeaf describes individual elements of a TBranch See TBranch structure in TTree.
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 * Data() const
virtual void Streamer(TBuffer &)
Stream a string object.
A TTree represents a columnar dataset.
TDirectory * GetDirectory() const