106 virtual TLeaf *
GetLeaf(
const char* branchname,
const char* leafname);
113 virtual const char *
GetAlias(
const char *aliasName)
const;
150 return TTree::SetBranchAddress<T>(bname, add, ptr);
152#ifndef R__NO_CLASS_TEMPLATE_SPECIALIZATION
156 return TTree::SetBranchAddress<T>(bname, add, ptr);
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
#define ClassDef(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 &)
virtual void Reset(Option_t *option="")
Resets the state of this chain.
Int_t SetBranchAddress(const char *bname, T **add, TBranch **ptr=nullptr)
virtual TBranch * GetBranch(const char *name)
Return pointer to the branch name in the current tree.
virtual ~TChain()
Destructor.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save TChain as a C++ statements on output stream out.
virtual void ResetAfterMerge(TFileMergeInfo *)
Resets the state of this chain after a merge (keep the customization but forget the data).
virtual Int_t GetEntry(Long64_t entry=0, Int_t getall=0)
Get entry from the file to memory.
Int_t fNtrees
Number of trees.
TObjArray * GetListOfFiles() const
virtual void SetAutoDelete(Bool_t autodel=kTRUE)
Set the global branch kAutoDelete bit.
virtual void SetWeight(Double_t w=1, Option_t *option="")
Set chain weight.
virtual Long64_t LoadTree(Long64_t entry)
Find the tree which contains entry, and set it as the current tree.
virtual void SetDirectory(TDirectory *dir)
Remove reference to this chain from current directory and add reference to new directory dir.
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.
virtual void Print(Option_t *option="") const
Print the header information of each tree in the chain.
virtual Double_t GetMaximum(const char *columname)
Return maximum of column with name columname.
virtual Int_t SetBranchAddress(const char *bname, void *add, TBranch **ptr=nullptr)
Set branch address.
virtual Int_t GetTreeNumber() const
virtual void DirectoryAutoAdd(TDirectory *)
Override the TTree::DirectoryAutoAdd behavior: we never auto add.
virtual TObjArray * GetListOfBranches()
Return a pointer to the list of branches of the current tree.
virtual void RemoveFriend(TTree *)
Remove a friend from the list of friends.
virtual void SetBranchStatus(const char *bname, Bool_t status=1, UInt_t *found=nullptr)
Set branch status to Process or DoNotProcess.
virtual TObjArray * GetListOfLeaves()
Return a pointer to the list of leaves of the current tree.
virtual Int_t AddFile(const char *name, Long64_t nentries=TTree::kMaxEntries, const char *tname="")
Add a new file to this chain.
Long64_t * fTreeOffset
[fTreeOffsetLen] Array of variables
virtual Bool_t GetBranchStatus(const char *branchname) const
See TTree::GetReadEntry().
Int_t SetBranchAddress(const char *bname, T *add, TBranch **ptr=nullptr)
virtual TTree * GetTree() const
virtual TLeaf * FindLeaf(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 ...
virtual TBranch * FindBranch(const char *name)
See TTree::GetReadEntry().
static constexpr auto kBigNumber
virtual Bool_t InPlaceClone(TDirectory *newdirectory, const char *options="")
Move content to a new file. (NOT IMPLEMENTED for TChain)
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
virtual void Browse(TBrowser *)
Browse the contents of the chain.
virtual Int_t AddFileInfoList(TCollection *list, Long64_t nfiles=TTree::kMaxEntries)
Add all files referenced in the list to the chain.
virtual Int_t SetCacheSize(Long64_t cacheSize=-1)
Set maximum size of the file cache .
TList * GetStatus() const
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 SetMakeClass(Int_t make)
Set all the branches in this TTree to be in decomposed object mode (also known as MakeClass mode).
Long64_t * GetTreeOffset() const
virtual void CreatePackets()
Initialize the packet descriptor string.
virtual TLeaf * GetLeaf(const char *branchname, const char *leafname)
Return a pointer to the leaf name in the current tree.
TList * fStatus
-> List of active/inactive branches (TChainElement, owned)
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 Long64_t GetEntries() const
Return the total number of entries in the chain.
virtual Int_t Add(TChain *chain)
Add all files referenced by the passed chain to this chain.
virtual TFriendElement * AddFriend(const char *chainname, const char *dummy="")
Add a TFriendElement to the list of friends of this chain.
virtual const char * GetAlias(const char *aliasName) const
Returns the expanded value of the alias. Search in the friends if any.
virtual void ResetBranchAddress(TBranch *)
Reset the addresses of the branch.
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.
virtual void ResetBranchAddresses()
Reset the addresses of the branches.
virtual Int_t LoadBaskets(Long64_t maxmemory)
Dummy function.
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).
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 ...
virtual Long64_t GetEntries(const char *sel)
Return the number of entries matching the selection.
Int_t fTreeOffsetLen
Current size of fTreeOffset array.
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 Long64_t GetReadEntry() const
See TTree::GetReadEntry().
virtual Int_t GetEntryWithIndex(Int_t major, Int_t minor=0)
Return entry corresponding to major and minor number.
Int_t GetTreeOffsetLen() const
virtual TClusterIterator GetClusterIterator(Long64_t firstentry)
Return an iterator over the cluster of baskets starting at firstentry.
virtual Int_t GetNbranches()
Return the number of branches of the current tree.
TObjArray * fFiles
-> List of file names containing the trees (TChainElement, owned)
virtual void SetEventList(TEventList *evlist)
This function transfroms the given TEventList into a TEntryList.
virtual void RecursiveRemove(TObject *obj)
Make sure that obj (which is being deleted or will soon be) is no longer referenced by this TTree.
Bool_t fCanDeleteRefs
! If true, TProcessIDs are deleted when closing a file
@ kWithGlobalRegistration
@ kWithoutGlobalRegistration
TFile * fFile
! Pointer to current file (We own the file).
virtual Double_t GetWeight() const
Return the chain weight.
virtual Long64_t GetEntryNumber(Long64_t entry) const
Return entry number corresponding to entry.
virtual Long64_t GetCacheSize() const
virtual void UseCache(Int_t maxCacheSize=10, Int_t pageSize=0)
Dummy function kept for back compatibility.
virtual void SetName(const char *name)
Change the name of this TChain.
void InvalidateCurrentTree()
Set the TTree to be reloaded as soon as possible.
virtual void ls(Option_t *option="") const
List the chain.
TFile * GetFile() const
Return a pointer to the current file.
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
void Lookup(Bool_t force=kFALSE)
Check / locate the files in the chain.
virtual Double_t GetMinimum(const char *columname)
Return minimum of column with name columname.
virtual Long64_t GetChainEntryNumber(Long64_t entry) const
Return absolute entry number in the chain.
virtual void Draw(Option_t *opt)
Default Draw method for all objects.
virtual Int_t Fill()
Fill all branches.
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.
A TEventList object is a list of selected events (entries) in a TTree.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
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