12#ifndef ROOT_TBranchClones
13#define ROOT_TBranchClones
#define ClassDefOverride(name, id)
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.
const char * GetClassName() const override
Return the name of the user class whose content is stored in this branch, if any.
Bool_t IsFolder() const override
Return kTRUE if more than one leaf or browsables, kFALSE otherwise.
void Print(Option_t *option="") const override
Print branch parameters.
Int_t fRead
! flag = 1 if clonesarray has been read
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.
virtual Int_t GetN() const
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).
TClonesArray * GetList() const
Int_t fNdataMax
! Maximum value of fN
void SetTree(TTree *tree) override
A TTree is a list of TBranches.
virtual void SetTree(TTree *tree)
TTree * fTree
! Pointer to Tree header
Using a TBrowser one can browse all ROOT objects.
An array of clone (identical) objects.
Class implementing or helping the various TTree cloning method.
A TTree represents a columnar dataset.