106 TLeaf *
GetLeaf(
const char* branchname,
const char* leafname)
override;
113 const char *
GetAlias(
const char *aliasName)
const override;
127 void Lookup(
bool force =
false);
150 return TTree::SetBranchAddress<T>(bname, add, ptr);
152#ifndef R__NO_CLASS_TEMPLATE_SPECIALIZATION
156 return TTree::SetBranchAddress<T>(bname, add, ptr);
169 virtual void SetProof(
bool on =
true,
bool refresh =
false,
bool gettreeheader =
false);
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
#define ClassDefOverride(name, id)
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 filename
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 sel
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
Option_t Option_t TPoint TPoint const char mode
A TTree is a list of TBranches.
Using a TBrowser one can browse all ROOT objects.
A chain is a collection of files containing TTree objects.
TChain & operator=(const TChain &)
TLeaf * FindLeaf(const char *name) override
See TTree::GetReadEntry().
Int_t SetBranchAddress(const char *bname, T **add, TBranch **ptr=nullptr)
Int_t SetCacheSize(Long64_t cacheSize=-1) override
Set maximum size of the file cache .
virtual void CanDeleteRefs(bool flag=true)
When closing a file during the chain processing, the file may be closed with option "R" if flag is se...
TObjArray * GetListOfBranches() override
Return a pointer to the list of branches of the current tree.
Long64_t GetEntryNumber(Long64_t entry) const override
Return entry number corresponding to entry.
Double_t GetWeight() const override
Return the chain weight.
virtual void SetAutoDelete(bool autodel=true)
Set the global branch kAutoDelete bit.
bool fCanDeleteRefs
! If true, TProcessIDs are deleted when closing a file
void SetEntryList(TEntryList *elist, Option_t *opt="") override
Set the input entry list (processing the entries of the chain will then be limited to the entries in ...
Int_t fNtrees
Number of trees.
TFriendElement * AddFriend(const char *chainname, const char *dummy="") override
Add a TFriendElement to the list of friends of this chain.
void DirectoryAutoAdd(TDirectory *) override
Override the TTree::DirectoryAutoAdd behavior: we never auto add.
TObjArray * GetListOfFiles() const
Int_t Fill() override
Fill all branches.
~TChain() override
Destructor.
Int_t LoadBaskets(Long64_t maxmemory) override
Dummy function.
void SetMakeClass(Int_t make) override
Set all the branches in this TTree to be in decomposed object mode (also known as MakeClass mode).
Long64_t GetEntries(const char *sel) override
Return the number of entries matching the selection.
TTree * GetTree() const override
void Print(Option_t *option="") const override
Print the header information of each tree in the chain.
void RecursiveRemove(TObject *obj) override
Make sure that obj (which is being deleted or will soon be) is no longer referenced by this TTree.
const char * GetAlias(const char *aliasName) const override
Returns the expanded value of the alias. Search in the friends if any.
virtual void SetProof(bool on=true, bool refresh=false, bool gettreeheader=false)
Enable/Disable PROOF processing on the current default Proof (gProof).
virtual Int_t AddFile(const char *name, Long64_t nentries=TTree::kMaxEntries, const char *tname="")
Add a new file to this chain.
void Reset(Option_t *option="") override
Resets the state of this chain.
void ResetAfterMerge(TFileMergeInfo *) override
Resets the state of this chain after a merge (keep the customization but forget the data).
Long64_t * fTreeOffset
[fTreeOffsetLen] Array of variables
TBranch * FindBranch(const char *name) override
See TTree::GetReadEntry().
void ResetBranchAddresses() override
Reset the addresses of the branches.
Int_t SetBranchAddress(const char *bname, T *add, TBranch **ptr=nullptr)
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save TChain as a C++ statements on output stream out.
void SetEventList(TEventList *evlist) override
This function transfroms the given TEventList into a TEntryList.
TObjArray * GetListOfLeaves() override
Return a pointer to the list of leaves of the current tree.
bool GetBranchStatus(const char *branchname) const override
See TTree::GetReadEntry().
static constexpr auto kBigNumber
TBranch * GetBranch(const char *name) override
Return pointer to the branch name in the current tree.
Int_t GetEntryWithIndex(Int_t major, Int_t minor=0) override
Return entry corresponding to major and minor number.
Long64_t Scan(const char *varexp="", const char *selection="", Option_t *option="", Long64_t nentries=kMaxEntries, Long64_t firstentry=0) override
Loop on tree and print entries passing selection.
Double_t GetMaximum(const char *columname) override
Return maximum of column with name columname.
void SetWeight(Double_t w=1, Option_t *option="") override
Set chain weight.
virtual void Loop(Option_t *option="", Long64_t nentries=kMaxEntries, Long64_t firstentry=0)
Loop on nentries of this chain starting at firstentry. (NOT IMPLEMENTED)
TChain * fProofChain
! chain proxy when going to be processed by PROOF
Int_t SetBranchAddress(const char *bname, void *add, TBranch **ptr=nullptr) override
Set branch address.
Long64_t Process(const char *filename, Option_t *option="", Long64_t nentries=kMaxEntries, Long64_t firstentry=0) override
Process all entries in this chain, calling functions in filename.
void RemoveFriend(TTree *) override
Remove a friend from the list of friends.
virtual Int_t AddFileInfoList(TCollection *list, Long64_t nfiles=TTree::kMaxEntries)
Add all files referenced in the list to the chain.
TList * GetStatus() const
Long64_t * GetTreeOffset() const
virtual void CreatePackets()
Initialize the packet descriptor string.
void ResetBranchAddress(TBranch *) override
Reset the addresses of the branch.
TList * fStatus
-> List of active/inactive branches (TChainElement, owned)
void SetDirectory(TDirectory *dir) override
Remove reference to this chain from current directory and add reference to new directory dir.
Double_t GetMinimum(const char *columname) override
Return minimum of column with name columname.
virtual Long64_t Merge(const char *name, Option_t *option="")
Merge all the entries in the chain into a new tree in a new file.
TTree * fTree
! Pointer to current tree (Note: We do not own this tree.)
virtual Int_t Add(TChain *chain)
Add all files referenced by the passed chain to this chain.
void ParseTreeFilename(const char *name, TString &filename, TString &treename, TString &query, TString &suffix) const
Get the tree url or filename and other information from the name.
bool InPlaceClone(TDirectory *newdirectory, const char *options="") override
Move content to a new file. (NOT IMPLEMENTED for TChain)
Int_t GetNbranches() override
Return the number of branches of the current tree.
bool fGlobalRegistration
! if true, bypass use of global lists
virtual void SetEntryListFile(const char *filename="", Option_t *opt="")
Set the input entry list (processing the entries of the chain will then be limited to the entries in ...
Long64_t GetChainEntryNumber(Long64_t entry) const override
Return absolute entry number in the chain.
Int_t fTreeOffsetLen
Current size of fTreeOffset array.
void SetName(const char *name) override
Change the name of this TChain.
void ls(Option_t *option="") const override
List the chain.
void SetBranchStatus(const char *bname, bool status=true, UInt_t *found=nullptr) override
Set branch status to Process or DoNotProcess.
Long64_t LoadTree(Long64_t entry) override
Find the tree which contains entry, and set it as the current tree.
TClusterIterator GetClusterIterator(Long64_t firstentry) override
Return an iterator over the cluster of baskets starting at firstentry.
Int_t GetTreeOffsetLen() const
void Browse(TBrowser *) override
Browse the contents of the chain.
TObjArray * fFiles
-> List of file names containing the trees (TChainElement, owned)
Long64_t GetReadEntry() const override
See TTree::GetReadEntry().
@ kWithGlobalRegistration
@ kWithoutGlobalRegistration
TFile * fFile
! Pointer to current file (We own the file).
virtual void UseCache(Int_t maxCacheSize=10, Int_t pageSize=0)
Dummy function kept for back compatibility.
void InvalidateCurrentTree()
Set the TTree to be reloaded as soon as possible.
Long64_t GetEntries() const override
Return the total number of entries in the chain.
TFile * GetFile() const
Return a pointer to the current file.
Int_t GetEntry(Long64_t entry=0, Int_t getall=0) override
Get entry from the file to memory.
virtual void SetPacketSize(Int_t size=100)
Set number of entries per packet for parallel root.
Int_t fTreeNumber
! Current Tree number in fTreeOffset table
Int_t GetTreeNumber() const override
Long64_t GetCacheSize() const override
void Lookup(bool force=false)
Check / locate the files in the chain.
void Draw(Option_t *opt) override
Default Draw method for all objects.
TLeaf * GetLeaf(const char *branchname, const char *leafname) override
Return a pointer to the leaf name in the current tree.
TClass instances represent classes, structs and namespaces in the ROOT type system.
Collection abstract base class.
A specialized string object used for TTree selections.
Describe directory structure in memory.
A List of entry numbers in a TTree or TChain.
<div class="legacybox"><h2>Legacy Code</h2> TEventList is a legacy interface: there will be no bug fi...
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
A TFriendElement TF describes a TTree object TF in a file.
A TLeaf describes individual elements of a TBranch See TBranch structure in TTree.
Mother of all ROOT objects.
void MayNotUse(const char *method) const
Use this method to signal that a method (defined in a base class) may not be called in a derived clas...
A TSelector object is used by the TTree::Draw, TTree::Scan, TTree::Process to navigate in a TTree and...
A TTree represents a columnar dataset.
virtual void SetMakeClass(Int_t make)
Set all the branches in this TTree to be in decomposed object mode (also known as MakeClass mode).
virtual Long64_t GetEntries() const
Long64_t fCacheSize
! Maximum size of file buffers
virtual Long64_t GetCacheSize() const
static constexpr Long64_t kMaxEntries