72 TChain(
const char*
name,
const char* title =
"");
104 virtual TLeaf *
GetLeaf(
const char* branchname,
const char* leafname);
111 virtual const char *
GetAlias(
const char *aliasName)
const;
146 return TTree::SetBranchAddress<T>(bname, add, ptr);
148 #ifndef R__NO_CLASS_TEMPLATE_SPECIALIZATION
152 return TTree::SetBranchAddress<T>(bname, add, ptr);
171 #endif // ROOT_TChain
virtual Int_t LoadBaskets(Long64_t maxmemory)
Dummy function.
virtual void SetAutoDelete(Bool_t autodel=kTRUE)
Set the global branch kAutoDelete bit.
virtual void SetMakeClass(Int_t make)
Set all the branches in this TTree to be in decomposed object mode (also known as MakeClass mode)...
A TLeaf describes individual elements of a TBranch See TBranch structure in TTree.
virtual void Browse(TBrowser *)
Browse the contents of the chain.
virtual TObjArray * GetListOfLeaves()
Return a pointer to the list of leaves of the current tree.
virtual TLeaf * GetLeaf(const char *branchname, const char *leafname)
Return a pointer to the leaf name in the current tree.
virtual void Reset(Option_t *option="")
Resets the state of this chain.
virtual Double_t GetWeight() const
Return the chain weight.
TFile * GetFile() const
Return a pointer to the current file.
Int_t GetTreeOffsetLen() const
virtual Int_t SetCacheSize(Long64_t cacheSize=-1)
Set maximum size of the file cache .
virtual void ResetBranchAddress(TBranch *)
Reset the addresses of the branch.
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...
virtual void SetWeight(Double_t w=1, Option_t *option="")
Set chain weight.
virtual Long64_t GetEntries() const
Return the total number of entries in the chain.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
virtual void SetDirectory(TDirectory *dir)
Remove reference to this chain from current directory and add reference to new directory dir...
static const char * filename()
virtual Double_t GetMaximum(const char *columname)
Return maximum of column with name columname.
virtual Long64_t GetChainEntryNumber(Long64_t entry) const
Return absolute entry number in the chain.
virtual const char * GetAlias(const char *aliasName) const
Returns the expanded value of the alias. Search in the friends if any.
virtual TTree * GetTree() const
constexpr std::array< decltype(std::declval< F >)(std::declval< int >))), N > make(F f)
virtual Long64_t Scan(const char *varexp="", const char *selection="", Option_t *option="", Long64_t nentries=kMaxEntries, Long64_t firstentry=0)
Loop on tree and print entries passing selection.
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)
virtual void RecursiveRemove(TObject *obj)
Make sure that obj (which is being deleted or will soon be) is no longer referenced by this TTree...
virtual void Print(Option_t *option="") const
Print the header information of each tree in the chain.
TTree * fTree
If true, TProcessIDs are deleted when closing a file.
virtual void DirectoryAutoAdd(TDirectory *)
Override the TTree::DirectoryAutoAdd behavior: we never auto add.
virtual Long64_t GetReadEntry() const
See TTree::GetReadEntry().
Int_t SetBranchAddress(const char *bname, T **add, TBranch **ptr=0)
virtual Double_t GetMinimum(const char *columname)
Return minimum of column with name columname.
virtual void CanDeleteRefs(Bool_t flag=kTRUE)
When closing a file during the chain processing, the file may be closed with option "R" if flag is se...
virtual TClusterIterator GetClusterIterator(Long64_t firstentry)
Return an iterator over the cluster of baskets starting at firstentry.
virtual Int_t AddFileInfoList(TCollection *list, Long64_t nfiles=TTree::kMaxEntries)
Add all files referenced in the list to the chain.
virtual void Draw(Option_t *opt)
Default Draw method for all objects.
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.
Long64_t * GetTreeOffset() const
virtual Long64_t Draw(const char *varexp, const TCut &selection, Option_t *option="", Long64_t nentries=kMaxEntries, Long64_t firstentry=0)
Draw expression varexp for selected entries.
virtual void ls(Option_t *option="") const
List the chain.
virtual Int_t GetTreeNumber() const
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 ...
virtual TBranch * FindBranch(const char *name)
See TTree::GetReadEntry().
virtual void SetEntryList(TEntryList *elist, Option_t *opt="")
Set the input entry list (processing the entries of the chain will then be limited to the entries in ...
void InvalidateCurrentTree()
Set the TTree to be reloaded as soon as possible.
virtual Long64_t GetEntries(const char *sel)
Return the number of entries matching the selection.
virtual TBranch * GetBranch(const char *name)
Return pointer to the branch name in the current tree.
virtual Long64_t LoadTree(Long64_t entry)
Find the tree which contains entry, and set it as the current tree.
TChain & operator=(const TChain &)
virtual Long64_t GetCacheSize() const
Long64_t * fTreeOffset
Current Tree number in fTreeOffset table.
A specialized string object used for TTree selections.
virtual void RemoveFriend(TTree *)
Remove a friend from the list of friends.
Using a TBrowser one can browse all ROOT objects.
virtual Long64_t GetCacheSize() const
virtual Int_t GetNbranches()
Return the number of branches of the current tree.
Collection abstract base class.
virtual void SetProof(Bool_t on=kTRUE, Bool_t refresh=kFALSE, Bool_t gettreeheader=kFALSE)
Enable/Disable PROOF processing on the current default Proof (gProof).
A TEventList object is a list of selected events (entries) in a TTree.
The ROOT global object gROOT contains a list of all defined classes.
TObjArray * GetListOfFiles() const
virtual Int_t AddFile(const char *name, Long64_t nentries=TTree::kMaxEntries, const char *tname="")
Add a new file to this chain.
virtual Int_t Fill()
Fill all branches.
virtual Int_t GetEntryWithIndex(Int_t major, Int_t minor=0)
Return entry corresponding to major and minor number.
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 Int_t GetEntry(Long64_t entry=0, Int_t getall=0)
Get entry from the file to memory.
virtual TFriendElement * AddFriend(const char *chainname, const char *dummy="")
Add a TFriendElement to the list of friends of this chain.
Describe directory structure in memory.
virtual Bool_t GetBranchStatus(const char *branchname) const
See TTree::GetReadEntry().
void Lookup(Bool_t force=kFALSE)
Check / locate the files in the chain.
static RooMathCoreReg dummy
virtual void UseCache(Int_t maxCacheSize=10, Int_t pageSize=0)
Dummy function kept for back compatibility.
virtual void SetBranchStatus(const char *bname, Bool_t status=1, UInt_t *found=0)
Set branch status to Process or DoNotProcess.
static constexpr auto kBigNumber
virtual void ResetBranchAddresses()
Reset the addresses of the branches.
Mother of all ROOT objects.
virtual Long64_t Process(const char *filename, Option_t *option="", Long64_t nentries=kMaxEntries, Long64_t firstentry=0)
Process all entries in this chain, calling functions in filename.
A TFriendElement TF describes a TTree object TF in a file.
A chain is a collection of files containg TTree objects.
virtual void ResetAfterMerge(TFileMergeInfo *)
Resets the state of this chain after a merge (keep the customization but forget the data)...
virtual void SetPacketSize(Int_t size=100)
Set number of entries per packet for parallel root.
TObjArray * fFiles
Pointer to current file (We own the file).
Int_t SetBranchAddress(const char *bname, T *add, TBranch **ptr=0)
virtual Int_t SetBranchAddress(const char *bname, void *add, TBranch **ptr=0)
Set branch address.
virtual void CreatePackets()
Initialize the packet descriptor string.
virtual Long64_t GetEntries() const
A TTree object has a header with a name and a title.
TFile * fFile
Pointer to current tree (Note: We do not own this tree.)
TList * GetStatus() const
void ParseTreeFilename(const char *name, TString &filename, TString &treename, TString &query, TString &suffix, Bool_t wildcards) const
Get the tree url or filename and other information from the name.
A TTree is a list of TBranches.
virtual TLeaf * FindLeaf(const char *name)
See TTree::GetReadEntry().
A TSelector object is used by the TTree::Draw, TTree::Scan, TTree::Process to navigate in a TTree and...
A List of entry numbers in a TTree or TChain.
virtual ~TChain()
Destructor.
virtual TObjArray * GetListOfBranches()
Return a pointer to the list of branches of the current tree.
static constexpr Long64_t kMaxEntries
virtual void SetEventList(TEventList *evlist)
This function transfroms the given TEventList into a TEntryList.
virtual Int_t Add(TChain *chain)
Add all files referenced by the passed chain to this chain.
virtual Long64_t GetEntryNumber(Long64_t entry) const
Return entry number corresponding to entry.