303 virtual TBranch *
Branch(
const char* name,
void* address,
const char* leaflist,
Int_t bufsize = 32000);
307 return Branch(name,(
void*)address,leaflist,bufsize);
312 return Branch(name,(
void*)address,leaflist,bufsize);
317 return Branch(name,(
void*)(
Long_t)address,leaflist,bufsize);
319 #if !defined(__CINT__) 320 virtual TBranch *
Branch(
const char* name,
const char* classname,
void* addobj,
Int_t bufsize = 32000,
Int_t splitlevel = 99);
327 template <
class T>
TBranch *
Branch(
const char* name,
const char* classname,
T** addobj,
Int_t bufsize = 32000,
Int_t splitlevel = 99)
342 virtual TBranch *
Bronch(
const char* name,
const char* classname,
void* addobj,
Int_t bufsize = 32000,
Int_t splitlevel = 99);
343 virtual TBranch *
BranchOld(
const char* name,
const char* classname,
void* addobj,
Int_t bufsize = 32000,
Int_t splitlevel = 1);
346 virtual Int_t BuildIndex(
const char* majorname,
const char* minorname =
"0");
367 virtual const char *
GetAlias(
const char* aliasName)
const;
406 virtual TLeaf *
GetLeaf(
const char* branchname,
const char* leafname);
473 virtual Int_t MakeProxy(
const char* classname,
const char* macrofilename = 0,
const char* cutfilename = 0,
const char* option = 0,
Int_t maxUnrolling = 3);
485 #if defined(__CINT__) 486 #if defined(R__MANUAL_DICT) 494 virtual Long64_t ReadFile(
const char* filename,
const char* branchDescriptor =
"",
char delimiter =
' ');
495 virtual Long64_t ReadStream(std::istream& inputStream,
const char* branchDescriptor =
"",
char delimiter =
' ');
504 virtual Bool_t SetAlias(
const char* aliasName,
const char* aliasFormula);
508 #if !defined(__CINT__) 519 #ifndef R__NO_CLASS_TEMPLATE_SPECIALIZATION 551 virtual void SetName(
const char* name);
565 virtual void SetObject(
const char* name,
const char* title);
virtual Double_t * GetV3()
TBranch * Branch(const char *name, const char *classname, T **addobj, Int_t bufsize=32000, Int_t splitlevel=99)
Describe Streamer information for one class version.
virtual TBranch * FindBranch(const char *name)
Return the branch that correspond to the path 'branchname', which can include the name of the tree or...
Double_t fWeight
Tree weight (see TTree::SetWeight)
Int_t GetDefaultEntryOffsetLen() const
A TLeaf describes individual elements of a TBranch See TBranch structure in TTree.
TTreeCache * GetReadCache(TFile *file) const
Find and return the TTreeCache registered with the file and which may contain branches for us...
virtual void AddTotBytes(Int_t tot)
virtual TList * GetListOfClones()
TStreamerInfo * BuildStreamerInfo(TClass *cl, void *pointer=0, Bool_t canOptimize=kTRUE)
Build StreamerInfo for class cl.
Long64_t fDebugMin
! First entry number to debug
TBranch * Branch(const char *name, T **addobj, Int_t bufsize=32000, Int_t splitlevel=99)
Principal Components Analysis (PCA)
TTree * fTree
tree being iterated
virtual void OptimizeBaskets(ULong64_t maxMemory=10000000, Float_t minComp=1.1, Option_t *option="")
This function may be called after having filled some entries in a Tree.
Bool_t MemoryFull(Int_t nbytes)
Check if adding nbytes to memory we are still below MaxVirtualsize.
virtual TBranch * BranchImpRef(const char *branchname, const char *classname, TClass *ptrClass, void *addobj, Int_t bufsize, Int_t splitlevel)
Same as TTree::Branch but automatic detection of the class name.
virtual Int_t MakeCode(const char *filename=0)
Generate a skeleton function for this tree.
TIterator * fTreeIter
current tree sub-iterator.
Abstract interface for Tree Index.
virtual Int_t GetScanField() const
virtual TTreeFormula * GetVar1() const =0
virtual Long64_t ReadStream(std::istream &inputStream, const char *branchDescriptor="", char delimiter=' ')
Create or simply read branches from an input stream.
static constexpr Long64_t kMaxEntries
virtual Int_t StopCacheLearningPhase()
Stop the cache learning phase.
virtual void SetBranchStatus(const char *bname, Bool_t status=1, UInt_t *found=0)
Set branch status to Process or DoNotProcess.
virtual void IncrementTotalBuffers(Int_t nbytes)
virtual void Delete(Option_t *option="")
Delete this tree from memory or/and disk.
virtual Int_t FlushBaskets(Bool_t create_cluster=true) const
Write to disk all the basket that have not yet been individually written and create an event cluster ...
static Int_t fgBranchStyle
Old/New branch style.
virtual void AddZipBytes(Int_t zip)
virtual Double_t * GetV4()
virtual Int_t LoadBaskets(Long64_t maxmemory=2000000000)
Read in memory all baskets from all branches up to the limit of maxmemory bytes.
static Long64_t GetMaxTreeSize()
Static function which returns the tree file size limit in bytes.
virtual void SetParallelUnzip(Bool_t opt=kTRUE, Float_t RelSize=-1)
Enable or disable parallel unzipping of Tree buffers.
Provides the interface for the PROOF internal performance measurement and event tracing.
virtual Bool_t Notify()
Function called when loading a new class library.
TTree()
Default constructor and I/O constructor.
virtual TTree * GetFriend(const char *) const
Return a pointer to the TTree friend whose name or alias is 'friendname.
virtual Long64_t GetEntriesFast() const
TBuffer * fTransientBuffer
! Pointer to the current transient buffer.
virtual void Print(Option_t *option="") const
Print a summary of the tree contents.
virtual Bool_t GetClusterPrefetch() const
virtual Int_t Fit(const char *funcname, const char *varexp, const char *selection="", Option_t *option="", Option_t *goption="", Long64_t nentries=kMaxEntries, Long64_t firstentry=0)
Fit a projected item(s) from a tree.
TIterator * fLeafIter
current leaf sub-iterator.
TList * fFriends
pointer to list of friend elements
virtual Double_t * GetV3() const =0
TPrincipal * Principal(const char *varexp="", const char *selection="", Option_t *option="np", Long64_t nentries=kMaxEntries, Long64_t firstentry=0)
Interface to the Principal Components Analysis class.
virtual TH1 * GetHistogram() const =0
virtual Int_t Fill()
Fill all branches.
Int_t GetMakeClass() const
virtual TEntryList * GetEntryList()
Returns the entry list, set to this tree.
ROOT::TIOFeatures SetIOFeatures(const ROOT::TIOFeatures &)
Provide the end-user with the ability to enable/disable various experimental IO features for this TTr...
virtual void SetMaxEntryLoop(Long64_t maxev=kMaxEntries)
virtual Int_t GetPacketSize() const
static void SetBranchStyle(Int_t style=1)
Set the current branch style.
A specialized TFileCacheRead object for a TTree.
virtual TLeaf * GetLeaf(const char *branchname, const char *leafname)
Return pointer to the 1st Leaf named name in any Branch of this Tree or any branch in the list of fri...
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
virtual TLeaf * GetLeafImpl(const char *branchname, const char *leafname)
Return pointer to the 1st Leaf named name in any Branch of this Tree or any branch in the list of fri...
virtual TList * GetListOfFriends() const
TTreeFormula * GetSelect()
virtual Long64_t GetAutoFlush() const
Buffer base class used for serializing objects.
TDirectory * fDirectory
! Pointer to directory holding this tree
Int_t fMakeClass
! not zero when processing code generated by MakeClass
virtual TBasket * CreateBasket(TBranch *)
Create a basket for this tree and given branch.
Long64_t GetDebugMin() const
virtual void SetAutoSave(Long64_t autos=-300000000)
This function may be called at the start of a program to change the default value for fAutoSave (and ...
virtual Int_t GetEntry(Long64_t entry=0, Int_t getall=0)
Read all branches of entry and return total number of bytes read.
virtual TTreeFormula * GetVar(Int_t) const =0
virtual TList * GetListOfAliases() const
virtual Int_t MakeProxy(const char *classname, const char *macrofilename=0, const char *cutfilename=0, const char *option=0, Int_t maxUnrolling=3)
Generate a skeleton analysis class for this Tree using TBranchProxy.
virtual Long64_t GetMaxEntryLoop() const
virtual void Browse(TBrowser *)
Browse content of the TTree.
constexpr std::array< decltype(std::declval< F >)(std::declval< int >))), N > make(F f)
static void SetMaxTreeSize(Long64_t maxsize=100000000000LL)
Set the maximum size in bytes of a Tree file (static function).
TIOFeatures provides the end-user with the ability to change the IO behavior of data written via a TT...
Int_t fScanField
Number of runs before prompting in Scan.
virtual Double_t * GetV4() const =0
virtual TTree * CloneTree(Long64_t nentries=-1, Option_t *option="")
Create a clone of this tree and copy nentries.
virtual TTree * CopyTree(const char *selection, Option_t *option="", Long64_t nentries=kMaxEntries, Long64_t firstentry=0)
Copy a tree with selection.
const TCollection * GetCollection() const
virtual void KeepCircular()
Keep a maximum of fMaxEntries in memory.
TArrayD fIndexValues
Sorted index values.
Long64_t fMaxEntryLoop
Maximum number of entries to process.
TVirtualTreePlayer * GetPlayer()
Load the TTreePlayer (if not already done).
virtual void SetMaxVirtualSize(Long64_t size=0)
virtual TSQLResult * Query(const char *varexp="", const char *selection="", Option_t *option="", Long64_t nentries=kMaxEntries, Long64_t firstentry=0)
Loop over entries and return a TSQLResult object containing entries following selection.
A Tree Index with majorname and minorname.
virtual Int_t GetFileNumber() const
Iterator abstract base class.
Array of integers (32 bits per element).
virtual TTreeFormula * GetSelect() const =0
virtual void Refresh()
Refresh contents of this tree and its branches from the current status on disk.
virtual void SetFileNumber(Int_t number=0)
Set fFileNumber to number.
virtual Double_t GetMinimum(const char *columname)
Return minimum of column with name columname.
virtual void DirectoryAutoAdd(TDirectory *)
Called by TKey and TObject::Clone to automatically add us to a directory when we are read from a file...
Bool_t fIMTFlush
! True if we are doing a multithreaded flush.
virtual Double_t GetWeight() const
virtual void StartViewer()
Start the TTreeViewer on this tree.
virtual Long64_t Merge(TCollection *list, Option_t *option="")
Merge the trees in the TList into this tree.
virtual Int_t GetEntryWithIndex(Int_t major, Int_t minor=0)
Read entry corresponding to major and minor number.
TList * fAliases
List of aliases for expressions based on the tree branches.
TBranch * Branch(const char *name, Long_t address, const char *leaflist, Int_t bufsize=32000)
virtual TTreeFormula * GetVar3() const =0
Bool_t fCacheDoClusterPrefetch
! true if cache is prefetching whole clusters
virtual Long64_t GetCacheSize() const
virtual TObjArray * GetListOfBranches()
Helper class to iterate over cluster of baskets.
TVirtualTreePlayer * fPlayer
! Pointer to current Tree player
Fill Area Attributes class.
void ImportClusterRanges(TTree *fromtree)
Appends the cluster range information stored in 'fromtree' to this tree, including the value of fAuto...
virtual void SetAutoFlush(Long64_t autof=-30000000)
This function may be called at the start of a program to change the default value for fAutoFlush...
#define ClassDef(name, id)
virtual Long64_t GetSelectedRows()
TTreeFormula * GetVar(Int_t i)
virtual Long64_t GetReadEvent() const
virtual Long64_t CopyEntries(TTree *tree, Long64_t nentries=-1, Option_t *option="")
Copy nentries from given tree to this tree.
virtual Int_t SetBranchAddress(const char *bname, void *add, TBranch **ptr=0)
Change branch address, dealing with clone trees properly.
Int_t fNfill
! Local for EntryLoop
virtual void SetObject(const char *name, const char *title)
Change the name and title of this tree.
The TNamed class is the base class for all named ROOT classes.
virtual Long64_t GetEntryNumberWithBestIndex(Long64_t major, Long64_t minor=0) const
Return entry number corresponding to major and minor number.
virtual Long64_t GetReadEntry() const
virtual const char * GetAlias(const char *aliasName) const
Returns the expanded value of the alias. Search in the friends if any.
virtual Long64_t LoadTree(Long64_t entry)
Set current entry.
Bool_t fCacheUserSet
! true if the cache setting was explicitly given by user
virtual void SetTreeIndex(TVirtualIndex *index)
The current TreeIndex is replaced by the new index.
Int_t fMaxClusterRange
! Memory allocated for the cluster range.
static Int_t GetBranchStyle()
Static function returning the current branch style.
virtual Int_t BuildIndex(const char *majorname, const char *minorname="0")
Build a Tree Index (default is TTreeIndex).
virtual Int_t UnbinnedFit(const char *funcname, const char *varexp, const char *selection="", Option_t *option="", Long64_t nentries=kMaxEntries, Long64_t firstentry=0)
Unbinned fit of one or more variable(s) from a tree.
virtual TBranch * BranchOld(const char *name, const char *classname, void *addobj, Int_t bufsize=32000, Int_t splitlevel=1)
Create a new TTree BranchObject.
virtual Int_t GetNbranches()
virtual TVirtualPerfStats * GetPerfStats() const
virtual void Show(Long64_t entry=-1, Int_t lenmax=20)
Print values of all active leaves for entry.
TBranchRef * fBranchRef
Branch supporting the TRefTable (if any)
virtual Int_t MakeClass(const char *classname=0, Option_t *option="")
Generate a skeleton analysis class for this tree.
virtual TClusterIterator GetClusterIterator(Long64_t firstentry)
Return an iterator over the cluster of baskets starting at firstentry.
static TClass * GetClass(const std::type_info &typeinfo)
Forward to TROOT::GetClass().
UInt_t fFriendLockStatus
! Record which method is locking the friend recursion
Int_t fTimerInterval
Timer interval in milliseconds.
virtual TFriendElement * AddFriend(const char *treename, const char *filename="")
Add a TFriendElement to the list of friends.
const Bool_t kIterForward
virtual Long64_t Scan(const char *varexp="", const char *selection="", Option_t *option="", Long64_t nentries=kMaxEntries, Long64_t firstentry=0)
Loop over tree entries and print entries passing selection.
Long64_t fFlushedBytes
Number of auto-flushed bytes.
TObject * GetNotify() const
UInt_t fNEntriesSinceSorting
! Number of entries processed since the last re-sorting of branches
Bool_t operator!=(const TDatime &d1, const TDatime &d2)
virtual Double_t GetMaximum(const char *columname)
Return maximum of column with name columname.
virtual void RemoveFriend(TTree *)
Remove a friend from the list of friends.
virtual Double_t * GetW() const =0
virtual TList * GetUserInfo()
Return a pointer to the list containing user objects associated to this tree.
std::atomic< Long64_t > fIMTZipBytes
! Zip bytes for the IMT flush baskets.
virtual void SetCacheLearnEntries(Int_t n=10)
Interface to TTreeCache to set the number of entries for the learning phase.
A branch containing and managing a TRefTable for TRef autoloading.
Long64_t fZipBytes
Total number of bytes in all branches after compression.
Long64_t fDebugMax
! Last entry number to debug
virtual TBranch * BranchImp(const char *branchname, const char *classname, TClass *ptrClass, void *addobj, Int_t bufsize, Int_t splitlevel)
Same as TTree::Branch() with added check that addobj matches className.
TBranch * Branch(const char *name, char *address, const char *leaflist, Int_t bufsize=32000)
virtual TTree * GetTree() const
virtual void SetEventList(TEventList *list)
This function transfroms the given TEventList into a TEntryList The new TEntryList is owned by the TT...
virtual Int_t GetTreeNumber() const
void UseCurrentStyle()
Replace current attributes by current style.
A specialized string object used for TTree selections.
virtual TBranch * GetBranch(const char *name)
Return pointer to the branch with the given name in this tree or its friends.
Bool_t fCacheDoAutoInit
! true if cache auto creation or resize check is needed
Int_t SetBranchAddress(const char *bname, T **add, TBranch **ptr=0)
TObjArray fLeaves
Direct pointers to individual branch leaves.
Long64_t * fClusterRangeEnd
[fNClusterRange] Last entry of a cluster range.
Using a TBrowser one can browse all ROOT objects.
Int_t fNClusterRange
Number of Cluster range in addition to the one defined by 'AutoFlush'.
virtual Long64_t GetEntryNumber(Long64_t entry) const
Return entry number corresponding to entry.
TEntryList * fEntryList
! Pointer to event selection list (if one)
virtual Long64_t GetAutoSave() const
virtual TTreeFormula * GetVar4() const =0
TBranch * Branch(const char *name, int address, const char *leaflist, Int_t bufsize=32000)
virtual Long64_t GetChainOffset() const
virtual Int_t Write(const char *name=0, Int_t option=0, Int_t bufsize=0)
Write this object to the current directory.
virtual void SetEstimate(Long64_t nentries=1000000)
Set number of entries to estimate variable limits.
virtual Double_t * GetV2() const =0
Long64_t fChainOffset
! Offset of 1st entry of this Tree in a TChain
~TFriendLock()
Restore the state of tree the same as before we set the lock.
Long64_t * fClusterSize
[fNClusterRange] Number of entries in each cluster for a given range.
virtual Double_t * GetV2()
virtual Long64_t GetEntryNumberWithIndex(Long64_t major, Long64_t minor=0) const
Return entry number corresponding to major and minor number.
virtual void SetUpdate(Int_t freq=0)
TVirtualPerfStats * fPerfStats
! pointer to the current perf stats object
TObject * operator*() const
Return current object or nullptr.
Long64_t fReadEntry
! Number of the entry being processed
virtual TVirtualIndex * GetTreeIndex() const
virtual ~TTree()
Destructor.
Collection abstract base class.
TList * fUserInfo
pointer to a list of user objects associated to this Tree
TObjArray fBranches
List of Branches.
virtual void SetNotify(TObject *obj)
Sets the address of the object to be notified when the tree is loaded.
friend TBranch * TTreeBranchImpRef(TTree *tree, const char *branchname, TClass *ptrClass, EDataType datatype, void *addobj, Int_t bufsize, Int_t splitlevel)
Int_t GetEntriesFast() const
TFile * GetCurrentFile() const
Return pointer to the current file.
Manages buffers for branches of a Tree.
A TEventList object is a list of selected events (entries) in a TTree.
virtual TLeaf * FindLeaf(const char *name)
Find leaf..
TArrayI fIndex
Index of sorted values.
The ROOT global object gROOT contains a list of all defined classes.
virtual Long64_t GetEstimate() const
Bool_t fIMTEnabled
! true if implicit multi-threading is enabled for this tree
virtual TBranchRef * GetBranchRef() const
virtual void ResetBranchAddress(TBranch *)
Tell all of our branches to set their addresses to zero.
ROOT::TIOFeatures GetIOFeatures() const
Returns the current set of IO settings.
Bool_t fDirection
iteration direction
virtual Double_t * GetVal(Int_t) const =0
TEventList * fEventList
! Pointer to event selection list (if one)
virtual TBranch * Bronch(const char *name, const char *classname, void *addobj, Int_t bufsize=32000, Int_t splitlevel=99)
Create a new TTree BranchElement.
virtual Bool_t GetBranchStatus(const char *branchname) const
Return status of branch with name branchname.
Long64_t fMaxEntries
Maximum number of entries in case of circular buffers.
void AddClone(TTree *)
Add a cloned tree to our list of trees to be notified whenever we change our branch addresses or when...
void MarkEventCluster()
Mark the previous event as being at the end of the event cluster.
char GetNewlineValue(std::istream &inputStream)
Determine which newline this file is using.
virtual Int_t DropBranchFromCache(const char *bname, Bool_t subbranches=kFALSE)
Remove the branch with name 'bname' from the Tree cache.
void InitializeBranchLists(bool checkLeafCount)
Divides the top-level branches into two vectors: (i) branches to be processed sequentially and (ii) b...
virtual Int_t * GetIndex()
Long64_t fAutoSave
Autosave tree when fAutoSave entries written or -fAutoSave (compressed) bytes produced.
Bool_t IsFolder() const
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects)...
virtual Int_t CheckBranchAddressType(TBranch *branch, TClass *ptrClass, EDataType datatype, Bool_t ptr)
Check whether or not the address described by the last 3 parameters matches the content of the branch...
virtual void SetDebug(Int_t level=1, Long64_t min=0, Long64_t max=9999999)
Set the debug level and the debug range.
virtual Long64_t Process(const char *filename, Option_t *option="", Long64_t nentries=kMaxEntries, Long64_t firstentry=0)
Process this tree executing the TSelector code in the specified filename.
TBranch * Branch(const char *name, T *obj, Int_t bufsize=32000, Int_t splitlevel=99)
virtual void DropBuffers(Int_t nbytes)
Drop branch buffers to accommodate nbytes below MaxVirtualsize.
virtual Int_t GetTimerInterval() const
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 void SetWeight(Double_t w=1, Option_t *option="")
Set tree weight.
TBranch * Branch(const char *name, const char *classname, T *obj, Int_t bufsize=32000, Int_t splitlevel=99)
A PolyMarker is defined by an array on N points in a 2-D space.
virtual void SetDirectory(TDirectory *dir)
Change the tree's directory.
virtual Long64_t LoadTreeFriend(Long64_t entry, TTree *T)
Load entry on behalf of our master tree, we may use an index.
virtual Int_t GetUpdate() const
Long64_t fMaxVirtualSize
Maximum total size of buffers kept in memory.
Int_t GetEvent(Long64_t entry=0, Int_t getall=0)
virtual void SetEntryList(TEntryList *list, Option_t *opt="")
Set an EntryList.
Long64_t GetCacheAutoSize(Bool_t withDefault=kFALSE) const
Used for automatic sizing of the cache.
virtual Double_t * GetW()
Long64_t fTotBytes
Total number of bytes in all branches before compression.
std::vector< TBranch * > fSeqBranches
! Branches to be processed sequentially when IMT is on
Describe directory structure in memory.
virtual void SetPerfStats(TVirtualPerfStats *perf)
Set perf stats.
std::vector< std::pair< Long64_t, TBranch * > > fSortedBranches
! Branches to be processed in parallel when IMT is on, sorted by average task time ...
TDirectory * GetDirectory() const
void SortBranchesByTime()
Sorts top-level branches by the last average task time recorded per branch.
unsigned long long ULong64_t
virtual Long64_t ReadFile(const char *filename, const char *branchDescriptor="", char delimiter=' ')
Create or simply read branches from filename.
Long64_t fAutoFlush
Auto-flush tree when fAutoFlush entries written or -fAutoFlush (compressed) bytes produced...
virtual Bool_t GetImplicitMT()
virtual void ResetBranchAddresses()
Tell all of our branches to drop their current objects and allocate new ones.
virtual void Draw(Option_t *opt)
Default Draw method for all objects.
Int_t fDefaultEntryOffsetLen
Initial Length of fEntryOffset table in the basket buffers.
virtual Option_t * GetOption() const
virtual Long64_t GetChainEntryNumber(Long64_t entry) const
Long64_t fEstimate
Number of entries to estimate histogram limits.
Helper class to prevent infinite recursion in the usage of TTree Friends.
static TClass * GetClass(const char *name, Bool_t load=kTRUE, Bool_t silent=kFALSE)
Static method returning pointer to TClass of the specified class name.
virtual Int_t SetCacheSize(Long64_t cachesize=-1)
Set maximum size of the file cache .
Int_t fDebug
! Debug level
Int_t SetCacheSizeAux(Bool_t autocache=kTRUE, Long64_t cacheSize=0)
Set the size of the file cache and create it if possible.
Array of doubles (64 bits per element).
virtual Long64_t GetEntries() const
virtual void SetBasketSize(const char *bname, Int_t buffsize=16000)
Set a branch's basket size.
virtual TBranch * BranchRef()
Build the optional branch supporting the TRefTable.
virtual void ResetAfterMerge(TFileMergeInfo *)
Resets the state of this TTree after a merge (keep the customization but forget the data)...
virtual Bool_t SetAlias(const char *aliasName, const char *aliasFormula)
Set a tree variable alias.
Int_t fFileNumber
! current file number (if file extensions)
Mother of all ROOT objects.
Int_t fUpdate
Update frequency for EntryLoop.
virtual Int_t Branch(TCollection *list, Int_t bufsize=32000, Int_t splitlevel=99, const char *name="")
Create one branch for each element in the collection.
Long64_t fEntries
Number of entries.
TList * fClones
! List of cloned trees which share our addresses
virtual Int_t MakeSelector(const char *selector=0, Option_t *option="")
Generate skeleton selector class for this tree.
TBuffer * GetTransientBuffer(Int_t size)
Returns the transient buffer currently used by this TTree for reading/writing baskets.
virtual Long64_t GetTotBytes() const
virtual Long64_t GetSelectedRows() const =0
Class implementing or helping the various TTree cloning method.
virtual Double_t * GetVal(Int_t i)
Abstract base class defining the interface for the plugins that implement Draw, Scan, Process, MakeProxy, etc.
Long64_t GetDebugMax() const
A TFriendElement TF describes a TTree object TF in a file.
virtual Long64_t GetZipBytes() const
Iterator on all the leaves in a TTree and its friend.
virtual TBranch * BronchExec(const char *name, const char *classname, void *addobj, Bool_t isptrptr, Int_t bufsize, Int_t splitlevel)
Helper function implementing TTree::Bronch and TTree::Branch(const char *name, T &obj);.
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 SetCircular(Long64_t maxEntries)
Enable/Disable circularity for this tree.
virtual void Reset(Option_t *option="")
Reset baskets, buffers and entries count in all branches and leaves.
virtual void SetClusterPrefetch(Bool_t enabled)
std::atomic< Long64_t > fTotalBuffers
! Total number of bytes in branch buffers
virtual void SetTimerInterval(Int_t msec=333)
virtual TTreeFormula * GetVar2() const =0
TObject * fNotify
! Object to be notified when loading a Tree
virtual Int_t SetCacheEntryRange(Long64_t first, Long64_t last)
interface to TTreeCache to set the cache entry range
A TTree object has a header with a name and a title.
TVirtualIndex * fTreeIndex
Pointer to the tree Index (if any)
TFriendLock & operator=(const TFriendLock &)
Assignment operator.
Int_t SetBranchAddressImp(TBranch *branch, void *addr, TBranch **ptr)
Change branch address, dealing with clone trees properly.
TEventList * GetEventList() const
virtual void SetDefaultEntryOffsetLen(Int_t newdefault, Bool_t updateExisting=kFALSE)
Update the default value for the branch's fEntryOffsetLen.
virtual void DropBaskets()
Remove some baskets from memory.
virtual TIterator * GetIteratorOnAllLeaves(Bool_t dir=kIterForward)
Creates a new iterator that will go through all the leaves on the tree itself and its friend...
virtual void SetImplicitMT(Bool_t enabled)
static Long64_t fgMaxTreeSize
Maximum size of a file containing a Tree.
virtual Long64_t SetEntries(Long64_t n=-1)
Change number of entries in the tree.
virtual TFile * ChangeFile(TFile *file)
Called by TTree::Fill() when file has reached its maximum fgMaxTreeSize.
static TTree * MergeTrees(TList *list, Option_t *option="")
Static function merging the trees in the TList into a new tree.
A TTree is a list of TBranches.
A TSelector object is used by the TTree::Draw, TTree::Scan, TTree::Process to navigate in a TTree and...
Int_t FlushBasketsImpl() const
Internal implementation of the FlushBaskets algorithm.
A List of entry numbers in a TTree or TChain.
virtual Int_t AddBranchToCache(const char *bname, Bool_t subbranches=kFALSE)
Add branch with name bname to the Tree cache.
Int_t fPacketSize
! Number of entries in one packet for parallel root
virtual Long64_t Project(const char *hname, const char *varexp, const char *selection="", Option_t *option="", Long64_t nentries=kMaxEntries, Long64_t firstentry=0)
Make a projection of a tree using selections.
virtual void SetScanField(Int_t n=50)
virtual Double_t * GetV1()
Int_t SetBranchAddress(const char *bname, T *add, TBranch **ptr=0)
TIOFeatures fIOFeatures
IO features to define for newly-written baskets and branches.
static constexpr Long64_t kMaxEntries
TFriendLock(const TFriendLock &)
Copy constructor.
virtual Long64_t GetEntriesFriend() const
Return pointer to the 1st Leaf named name in any Branch of this Tree or any branch in the list of fri...
virtual void SetName(const char *name)
Change the name of this tree.
virtual void PrintCacheStats(Option_t *option="") const
Print statistics about the TreeCache for this tree.
void MoveReadCache(TFile *src, TDirectory *dir)
Move a cache from a file to the current file in dir.
virtual void CopyAddresses(TTree *, Bool_t undo=kFALSE)
Set branch addresses of passed tree equal to ours.
virtual TObjArray * GetListOfLeaves()
virtual Long64_t GetMaxVirtualSize() const
Long64_t fSavedBytes
Number of autosaved bytes.
Long64_t fCacheSize
! Maximum size of file buffers
virtual const char * GetFriendAlias(TTree *) const
If the 'tree' is a friend, this method returns its alias name.
virtual void SetChainOffset(Long64_t offset=0)
virtual Long64_t AutoSave(Option_t *option="")
AutoSave tree header every fAutoSave bytes.
virtual Double_t * GetIndexValues()
virtual Double_t * GetV1() const =0
std::atomic< Long64_t > fIMTTotBytes
! Total bytes for the IMT flush baskets