56 :
TBranch(), fRequestedEntry(-1), fRefTable(nullptr)
60 SetTitle(
"List of branch numbers with referenced objects");
132 if (!friends)
return true;
A helper class for managing IMT work during TTree:Fill operations.
A branch containing and managing a TRefTable for TRef autoloading.
TRefTable * GetRefTable() const
void Reset(Option_t *option="") override
TBranchRef()
Default constructor.
void FillLeavesImpl(TBuffer &b)
This function called by TBranch::Fill overloads TBranch::FillLeaves.
bool Notify() override
This function is called by TRefTable::Notify, itself called by TRef::GetObject.
Int_t FillImpl(ROOT::Internal::TBranchIMTHelper *) override
Fill the branch basket with the referenced objects parent numbers.
void Print(Option_t *option="") const override
Print the TRefTable branch.
void Clear(Option_t *option="") override
Clear entries in the TRefTable.
TRefTable * fRefTable
pointer to the TRefTable
Long64_t fRequestedEntry
! Cursor indicating which entry is being requested.
~TBranchRef() override
Typical destructor.
void ReadLeavesImpl(TBuffer &b)
This function called by TBranch::GetEntry overloads TBranch::ReadLeaves.
void ResetAfterMerge(TFileMergeInfo *) override
Reset a Branch after a Merge operation (drop data but keep customizations) TRefTable is cleared.
virtual Int_t SetParent(const TObject *obj, Int_t branchID)
Set the current parent branch.
A TTree is a list of TBranches.
TString fFileName
Name of file where buffers are stored ("" if in same file as Tree header)
Int_t fMaxBaskets
Maximum number of Baskets so far.
FillLeaves_t fFillLeaves
! Pointer to the FillLeaves implementation to use.
void(TBranch::* ReadLeaves_t)(TBuffer &b)
char * fAddress
! Address of 1st leaf (variable or object)
Long64_t * fBasketEntry
[fMaxBaskets] Table of first entry in each basket
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.
ReadLeaves_t fReadLeaves
! Pointer to the ReadLeaves implementation to use.
void(TBranch::* FillLeaves_t)(TBuffer &b)
Long64_t GetReadEntry() const
Int_t * fBasketBytes
[fMaxBaskets] Length of baskets on file
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.
Long64_t * fBasketSeek
[fMaxBaskets] Addresses of baskets on file
Int_t fBasketSize
Initial Size of Basket Buffer.
virtual void Reset(Option_t *option="")
Reset a Branch.
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.
TTree * fTree
! Pointer to Tree header
Buffer base class used for serializing objects.
A TFriendElement TF describes a TTree object TF in a file.
virtual TTree * GetTree()
Return pointer to friend TTree.
virtual TObjLink * FirstLink() const
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
virtual void SetName(const char *name)
Set the name of the TNamed.
Wrapper around a TObject so it can be stored in a TList.
TObject * GetObject() const
Mother of all ROOT objects.
A TProcessID identifies a ROOT job in a unique way in time and space.
A TRefTable maintains the association between a referenced object and the parent object supporting th...
void Clear(Option_t *="") override
Clear all entries in the table.
virtual Int_t SetParent(const TObject *parent, Int_t branchID)
– Set current parent object, typically a branch of a tree.
TProcessID * GetUIDContext() const
virtual void FillBuffer(TBuffer &b)
Fill buffer b with the fN elements in fParentdIDs.
TObject * GetParent(Int_t uid, TProcessID *context=nullptr) const
Return object corresponding to uid.
static void SetRefTable(TRefTable *table)
Static function setting the current TRefTable.
virtual void Reset(Option_t *="")
Clear all entries in the table.
virtual void ReadBuffer(TBuffer &b)
Fill buffer b with the fN elements in fParentdIDs.
A TTree represents a columnar dataset.
TDirectory * GetDirectory() const
virtual TList * GetListOfFriends() const