|
ROOT
Reference Guide |
|
Go to the documentation of this file.
42 #ifdef R__LESS_INCLUDES
146 #ifdef R__TRACK_BASKET_ALLOC_TIME
147 mutable std::atomic<ULong64_t> fAllocationTime{0};
330 #ifdef R__TRACK_BASKET_ALLOC_TIME
331 void AddAllocationTime(
ULong64_t time) { fAllocationTime += time; }
368 return BranchImp(
name, TClass::GetClass<T>(), addobj, bufsize, splitlevel);
378 return Branch(
name,(
void*)address,leaflist,bufsize);
383 return Branch(
name,(
void*)address,leaflist,bufsize);
394 return BranchImpRef(
name, classname, TClass::GetClass<T>(), obj, bufsize, splitlevel);
399 return BranchImp(
name, classname, TClass::GetClass<T>(), addobj, bufsize, splitlevel);
403 TClass *cl = TClass::GetClass<T>();
405 TClass *arrCl = TClass::GetClass<std::array<T, N>>();
406 Error(
"Branch",
"std::array of objects not yet supported as top level branch object (the class is %s)",
416 virtual Int_t BuildIndex(
const char* majorname,
const char* minorname =
"0");
437 virtual const char *
GetAlias(
const char* aliasName)
const;
439 #ifdef R__TRACK_BASKET_ALLOC_TIME
440 ULong64_t GetAllocationTime()
const {
return fAllocationTime; }
480 virtual TLeaf *
GetLeaf(
const char* branchname,
const char* leafname);
549 virtual Int_t MakeProxy(
const char* classname,
const char* macrofilename = 0,
const char* cutfilename = 0,
const char* option = 0,
Int_t maxUnrolling = 3);
564 virtual Long64_t ReadFile(
const char* filename,
const char* branchDescriptor =
"",
char delimiter =
' ');
565 virtual Long64_t ReadStream(std::istream& inputStream,
const char* branchDescriptor =
"",
char delimiter =
' ');
576 virtual Bool_t SetAlias(
const char* aliasName,
const char* aliasFormula);
584 TClass *cl = TClass::GetClass<T>();
589 #ifndef R__NO_CLASS_TEMPLATE_SPECIALIZATION
593 TClass *cl = TClass::GetClass<T>();
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 Bool_t InPlaceClone(TDirectory *newdirectory, const char *options="")
Copy the content to a new new file, update this TTree with the new location information and attach th...
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.
virtual TTreeFormula * GetSelect() const =0
@ kMissingCompiledCollectionProxy
constexpr std::array< decltype(std::declval< F >)(std::declval< int >))), N > make(F f)
Bool_t MemoryFull(Int_t nbytes)
Check if adding nbytes to memory we are still below MaxVirtualsize.
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...
TIterator * fTreeIter
current tree sub-iterator.
virtual Int_t GetScanField() const
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 Reset(Option_t *option="")
Reset baskets, buffers and entries count in all branches and leaves.
TObject * operator*() const
Return current object or nullptr.
virtual void PrintCacheStats(Option_t *option="") const
Print statistics about the TreeCache for this tree.
Long64_t fSavedBytes
Number of autosaved bytes.
virtual Long64_t AutoSave(Option_t *option="")
AutoSave tree header every fAutoSave bytes.
A specialized string object used for TTree selections.
TVirtualIndex * fTreeIndex
Pointer to the tree Index (if any)
virtual Double_t * GetV4()
virtual TList * GetListOfAliases() const
TBranch * Branch(const char *name, const char *classname, T **addobj, Int_t bufsize=32000, Int_t splitlevel=99)
Using a TBrowser one can browse all ROOT objects.
virtual Int_t LoadBaskets(Long64_t maxmemory=2000000000)
Read in memory all baskets from all branches up to the limit of maxmemory bytes.
virtual void SetParallelUnzip(Bool_t opt=kTRUE, Float_t RelSize=-1)
Enable or disable parallel unzipping of Tree buffers.
virtual TBranch * FindBranch(const char *name)
Return the branch that correspond to the path 'branchname', which can include the name of the tree or...
virtual void Browse(TBrowser *)
Browse content of the TTree.
virtual TTreeFormula * GetVar(Int_t) const =0
Long64_t Previous()
Move on to the previous cluster and return the starting entry of this previous cluster.
A TEventList object is a list of selected events (entries) in a TTree.
static TTree * MergeTrees(TList *list, Option_t *option="")
Static function merging the trees in the TList into a new tree.
A TSelector object is used by the TTree::Draw, TTree::Scan, TTree::Process to navigate in a TTree and...
TBranch * Branch(const char *name, T **addobj, Int_t bufsize=32000, Int_t splitlevel=99)
Add a new branch, and infer the data type from the array addobj being passed.
virtual Int_t GetPacketSize() const
virtual TTree * CopyTree(const char *selection, Option_t *option="", Long64_t nentries=kMaxEntries, Long64_t firstentry=0)
Copy a tree with selection.
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...
virtual void SetScanField(Int_t n=50)
virtual Double_t * GetV1()
TIOFeatures fIOFeatures
IO features to define for newly-written baskets and branches.
Int_t SetBranchAddress(const char *bname, T *add, TBranch **ptr=0)
TVirtualTreePlayer * GetPlayer()
Load the TTreePlayer (if not already done).
virtual Int_t MakeCode(const char *filename=0)
Generate a skeleton function for this tree.
virtual TList * GetListOfFriends() const
Abstract interface for Tree Index.
Int_t fMakeClass
! not zero when processing code generated by MakeClass
virtual void IncrementTotalBuffers(Int_t nbytes)
virtual TBasket * CreateBasket(TBranch *)
Create a basket for this tree and given branch.
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 ...
TTree & operator=(const TTree &tt)=delete
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.
TClusterIterator(TTree *tree, Long64_t firstEntry)
Regular constructor.
Iterator on all the leaves in a TTree and its friend.
virtual TTree * GetFriend(const char *) const
Return a pointer to the TTree friend whose name or alias is friendname.
virtual Bool_t Notify()
Function called when loading a new class library.
TList * fAliases
List of aliases for expressions based on the tree branches.
TBuffer * fTransientBuffer
! Pointer to the current transient buffer.
TTreeCache * GetReadCache(TFile *file) const
Find and return the TTreeCache registered with the file and which may contain branches for us.
virtual Bool_t GetClusterPrefetch() const
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
virtual TList * GetListOfClones()
TStreamerInfo * BuildStreamerInfo(TClass *cl, void *pointer=0, Bool_t canOptimize=kTRUE)
Build StreamerInfo for class cl.
virtual TTree * CloneTree(Long64_t nentries=-1, Option_t *option="")
Create a clone of this tree and copy nentries.
Int_t GetMakeClass() const
virtual TEntryList * GetEntryList()
Returns the entry list assigned to this tree.
A TTree represents a columnar dataset.
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 KeepCircular()
Keep a maximum of fMaxEntries in memory.
virtual TTreeFormula * GetVar2() const =0
virtual TTreeFormula * GetVar4() const =0
virtual void SetMaxVirtualSize(Long64_t size=0)
virtual void SetTreeIndex(TVirtualIndex *index)
The current TreeIndex is replaced by the new index.
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 BuildIndex(const char *majorname, const char *minorname="0")
Build a Tree Index (default is TTreeIndex).
virtual void Show(Long64_t entry=-1, Int_t lenmax=20)
Print values of all active leaves for entry.
virtual Double_t * GetV4() const =0
virtual Long64_t ReadStream(std::istream &inputStream, const char *branchDescriptor="", char delimiter=' ')
Create or simply read branches from an input stream.
virtual TClusterIterator GetClusterIterator(Long64_t firstentry)
Return an iterator over the cluster of baskets starting at firstentry.
Provides the interface for the PROOF internal performance measurement and event tracing.
virtual Int_t MakeClass(const char *classname=0, Option_t *option="")
Generate a skeleton analysis class for this tree.
virtual void SetFileNumber(Int_t number=0)
Set fFileNumber to number.
virtual void AddZipBytes(Int_t zip)
static Long64_t GetMaxTreeSize()
Static function which returns the tree file size limit in bytes.
TObject * GetNotify() const
Long64_t fFlushedBytes
Number of auto-flushed bytes.
TTree()
Default constructor and I/O constructor.
virtual Long64_t GetMaxEntryLoop() const
virtual Long64_t GetEntriesFast() const
virtual void Print(Option_t *option="") const
Print a summary of the tree contents.
A TFriendElement TF describes a TTree object TF in a file.
Option_t * GetOption() const
Returns the object option stored in the list.
Int_t fScanField
Number of runs before prompting in Scan.
virtual void RemoveFriend(TTree *)
Remove a friend from the list of friends.
virtual TH1 * GetHistogram() const =0
Buffer base class used for serializing objects.
virtual TList * GetUserInfo()
Return a pointer to the list containing user objects associated to this tree.
virtual void SetCacheLearnEntries(Int_t n=10)
Interface to TTreeCache to set the number of entries for the learning phase.
TTreeFormula * GetVar(Int_t i)
virtual void SetMaxEntryLoop(Long64_t maxev=kMaxEntries)
virtual Int_t Fill()
Fill all branches.
TIOFeatures provides the end-user with the ability to change the IO behavior of data written via a TT...
@ kEntriesReshuffled
If set, signals that this TTree is the output of the processing of another TTree, and the entries are...
TArrayD fIndexValues
Sorted index values.
Float_t fTargetMemoryRatio
! Ratio for memory usage in uncompressed buffers versus actual occupancy.
virtual Long64_t GetEntryNumberWithBestIndex(Long64_t major, Long64_t minor=0) const
Return entry number corresponding to major and minor number.
Long64_t fMaxEntryLoop
Maximum number of entries to process.
void UseCurrentStyle()
Replace current attributes by current style.
Int_t fMaxClusterRange
! Memory allocated for the cluster range.
virtual TBranch * BranchOld(const char *name, const char *classname, void *addobj, Int_t bufsize=32000, Int_t splitlevel=1)
Create a new TTree BranchObject.
Int_t SetBranchAddress(const char *bname, T **add, TBranch **ptr=0)
TTreeFormula * GetSelect()
virtual Long64_t GetAutoFlush() const
TDirectory * fDirectory
! Pointer to directory holding this tree
Long64_t * fClusterRangeEnd
[fNClusterRange] Last entry of a cluster range.
virtual void Refresh()
Refresh contents of this tree and its branches from the current status on disk.
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 Double_t GetMinimum(const char *columname)
Return minimum of column with name columname.
Int_t fNClusterRange
Number of Cluster range in addition to the one defined by 'AutoFlush'.
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 Long64_t GetEntryNumber(Long64_t entry) const
Return entry number corresponding to entry.
Int_t fTimerInterval
Timer interval in milliseconds.
virtual Long64_t GetChainOffset() const
Bool_t fIMTFlush
! True if we are doing a multithreaded flush.
Iterator abstract base class.
virtual Int_t Write(const char *name=0, Int_t option=0, Int_t bufsize=0)
Write this object to the current directory.
@ kSplitCollectionOfPointers
UInt_t fNEntriesSinceSorting
! Number of entries processed since the last re-sorting of branches
virtual void SetEstimate(Long64_t nentries=1000000)
Set number of entries to estimate variable limits.
TBranch * Branch(const char *name, Long_t address, const char *leaflist, Int_t bufsize=32000)
virtual Long64_t GetCacheSize() const
Bool_t fCacheDoClusterPrefetch
! true if cache is prefetching whole clusters
virtual Double_t GetMaximum(const char *columname)
Return maximum of column with name columname.
virtual TObjArray * GetListOfBranches()
TVirtualTreePlayer * fPlayer
! Pointer to current Tree player
static void SetMaxTreeSize(Long64_t maxsize=100000000000LL)
Set the maximum size in bytes of a Tree file (static function).
Long64_t fChainOffset
! Offset of 1st entry of this Tree in a TChain
virtual TTreeFormula * GetVar1() const =0
Float_t GetTargetMemoryRatio() const
void ImportClusterRanges(TTree *fromtree)
Appends the cluster range information stored in 'fromtree' to this tree, including the value of fAuto...
virtual Long64_t GetSelectedRows()
const Bool_t kIterForward
@ kMatchConversionCollection
virtual TTree * GetTree() const
virtual const char * GetAlias(const char *aliasName) const
Returns the expanded value of the alias. Search in the friends if any.
virtual void SetEventList(TEventList *list)
This function transfroms the given TEventList into a TEntryList The new TEntryList is owned by the TT...
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.
Bool_t fCacheUserSet
! true if the cache setting was explicitly given by user
A TTree is a list of TBranches.
TList * fUserInfo
pointer to a list of user objects associated to this Tree
virtual TBranch * GetBranch(const char *name)
Return pointer to the branch with the given name in this tree or its friends.
static Int_t GetBranchStyle()
Static function returning the current branch style.
virtual Int_t GetNbranches()
TFile * GetCurrentFile() const
Return pointer to the current file.
virtual Int_t GetFileNumber() const
UInt_t fFriendLockStatus
! Record which method is locking the friend recursion
virtual void DirectoryAutoAdd(TDirectory *)
Called by TKey and TObject::Clone to automatically add us to a directory when we are read from a file...
TArrayI fIndex
Index of sorted values.
TEntryList * fEntryList
! Pointer to event selection list (if one)
void SetTargetMemoryRatio(Float_t ratio)
virtual TFriendElement * AddFriend(const char *treename, const char *filename="")
Add a TFriendElement to the list of friends.
virtual Double_t GetWeight() const
virtual Long64_t Merge(TCollection *list, Option_t *option="")
Merge the trees in the TList into this tree.
virtual void StartViewer()
Start the TTreeViewer on this tree.
TIterator * fLeafIter
current leaf sub-iterator.
TIterator & operator=(const TIterator &rhs)
Overridden assignment operator. Does NOT copy the 'cursor' location!
virtual Int_t GetEntryWithIndex(Int_t major, Int_t minor=0)
Read entry corresponding to major and minor number.
TEventList * fEventList
! Pointer to event selection list (if one)
void MarkEventCluster()
Mark the previous event as being at the end of the event cluster.
virtual Double_t * GetV2()
std::atomic< Long64_t > fIMTZipBytes
! Zip bytes for the IMT flush baskets.
TVirtualPerfStats * fPerfStats
! pointer to the current perf stats object
Long64_t fZipBytes
Total number of bytes in all branches after compression.
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.
Describe Streamer information for one class version.
virtual Int_t * GetIndex()
virtual Long64_t GetReadEvent() const
virtual void RegisterExternalFriend(TFriendElement *)
Record a TFriendElement that we need to warn when the chain switches to a new file (typically this is...
Long64_t fAutoSave
Autosave tree when fAutoSave entries written or -fAutoSave (compressed) bytes produced.
std::atomic< UInt_t > fAllocationCount
indicates basket should be resized to exact memory usage, but causes significant
A TLeaf describes individual elements of a TBranch See TBranch structure in TTree.
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
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.
virtual void SetObject(const char *name, const char *title)
Change the name and title of this tree.
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)
Add a new branch, and infer the data type from the type of obj being passed.
virtual Long64_t GetReadEntry() const
virtual Long64_t LoadTree(Long64_t entry)
Set current entry.
Bool_t fCacheDoAutoInit
! true if cache auto creation or resize check is needed
Class implementing or helping the various TTree cloning method.
Int_t GetEntriesFast() const
virtual Int_t GetTimerInterval() const
TObjArray fBranches
List of Branches.
virtual void SetNotify(TObject *obj)
Sets the address of the object to be notified when the tree is loaded.
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 TVirtualPerfStats * GetPerfStats() const
friend TBranch * TTreeBranchImpRef(TTree *tree, const char *branchname, TClass *ptrClass, EDataType datatype, void *addobj, Int_t bufsize, Int_t splitlevel)
The TNamed class is the base class for all named ROOT classes.
TObjArray fLeaves
Direct pointers to individual branch leaves.
TBranchRef * fBranchRef
Branch supporting the TRefTable (if any)
virtual Long64_t LoadTreeFriend(Long64_t entry, TTree *T)
Load entry on behalf of our master tree, we may use an index.
Abstract base class defining the interface for the plugins that implement Draw, Scan,...
virtual void SetEntryList(TEntryList *list, Option_t *opt="")
Set an EntryList.
virtual Long64_t GetEstimate() const
Principal Components Analysis (PCA)
virtual TBranchRef * GetBranchRef() const
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.
void SortBranchesByTime()
Sorts top-level branches by the last average task time recorded per branch.
virtual void Draw(Option_t *opt)
Default Draw method for all objects.
TTree(const TTree &tt)=delete
char GetNewlineValue(std::istream &inputStream)
Determine which newline this file is using.
Long64_t fDebugMax
! Last entry number to debug
TTree * fTree
tree being iterated
Int_t fDebug
! Debug level
Long64_t fReadEntry
! Number of the entry being processed
TBranch * Branch(const char *name, char *address, const char *leaflist, Int_t bufsize=32000)
virtual ~TTree()
Destructor.
Int_t SetCacheSizeAux(Bool_t autocache=kTRUE, Long64_t cacheSize=0)
Set the size of the file cache and create it if possible.
virtual Int_t GetTreeNumber() const
virtual void SetWeight(Double_t w=1, Option_t *option="")
Set tree weight.
virtual void SetBasketSize(const char *bname, Int_t buffsize=16000)
Set a branch's basket size.
virtual Bool_t SetAlias(const char *aliasName, const char *aliasFormula)
Set a tree variable alias.
Helper class to prevent infinite recursion in the usage of TTree Friends.
Int_t fUpdate
Update frequency for EntryLoop.
~TFriendLock()
Restore the state of tree the same as before we set the lock.
Long64_t Next()
Move on to the next cluster and return the starting entry of this next cluster.
virtual void SetDirectory(TDirectory *dir)
Change the tree's directory.
Long64_t GetEstimatedClusterSize()
Estimate the cluster size.
virtual TLeaf * FindLeaf(const char *name)
Find leaf..
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
virtual Int_t MakeSelector(const char *selector=0, Option_t *option="")
Generate skeleton selector class for this tree.
virtual Long64_t GetAutoSave() const
Long64_t GetCacheAutoSize(Bool_t withDefault=kFALSE) const
Used for automatic sizing of the cache.
TBranch * Branch(const char *name, int address, const char *leaflist, Int_t bufsize=32000)
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
virtual Double_t * GetW() const =0
A List of entry numbers in a TTree or TChain.
virtual Long64_t ReadFile(const char *filename, const char *branchDescriptor="", char delimiter=' ')
Create or simply read branches from filename.
Bool_t fDirection
iteration direction
Long64_t * fClusterSize
[fNClusterRange] Number of entries in each cluster for a given range.
Helper class to iterate over cluster of baskets.
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.
@ kNeedDisableDecomposedObj
Int_t fDefaultEntryOffsetLen
Initial Length of fEntryOffset table in the basket buffers.
virtual Long64_t GetEntryNumberWithIndex(Long64_t major, Long64_t minor=0) const
Return entry number corresponding to major and minor number.
A Tree Index with majorname and minorname.
virtual void SetUpdate(Int_t freq=0)
virtual Int_t DropBranchFromCache(const char *bname, Bool_t subbranches=kFALSE)
Remove the branch with name 'bname' from the Tree cache.
virtual Long64_t GetChainEntryNumber(Long64_t entry) const
unsigned long long ULong64_t
Bool_t IsFolder() const
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).
virtual Int_t SetCacheSize(Long64_t cachesize=-1)
Set maximum size of the file cache .
virtual void SetCircular(Long64_t maxEntries)
Enable/Disable circularity for this tree.
virtual void SetDebug(Int_t level=1, Long64_t min=0, Long64_t max=9999999)
Set the debug level and the debug range.
virtual TVirtualIndex * GetTreeIndex() const
Manages buffers for branches of a Tree.
A cache to speed-up the reading of ROOT datasets.
virtual void SetTimerInterval(Int_t msec=333)
TFriendLock(const TFriendLock &)
Copy constructor.
TObject * fNotify
! Object to be notified when loading a Tree
TList * fExternalFriends
! List of TFriendsElement pointing to us and need to be notified of LoadTree. Content not owned.
virtual TBranch * BranchImpArr(const char *branchname, EDataType datatype, std::size_t N, void *addobj, Int_t bufsize, Int_t splitlevel)
virtual void DropBaskets()
Remove some baskets from memory.
const TCollection * GetCollection() const
virtual Int_t GetUpdate() const
static Long64_t fgMaxTreeSize
Maximum size of a file containing a Tree.
static constexpr Long64_t kMaxEntries
Long64_t fEntries
Number of entries.
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.
virtual Double_t * GetW()
TClass instances represent classes, structs and namespaces in the ROOT type system.
virtual Double_t * GetV2() const =0
void AddAllocationCount(UInt_t count)
Bool_t fIMTEnabled
! true if implicit multi-threading is enabled for this tree
Bool_t operator!=(const TIterator &) const
Compare two iterator objects.
Long64_t GetDebugMax() const
virtual Int_t AddBranchToCache(const char *bname, Bool_t subbranches=kFALSE)
Add branch with name bname to the Tree cache.
ROOT::TIOFeatures GetIOFeatures() const
Returns the current set of IO settings.
TBranch * Branch(const char *name, std::array< T, N > *obj, Int_t bufsize=32000, Int_t splitlevel=99)
virtual void ResetBranchAddress(TBranch *)
Tell all of our branches to set their addresses to zero.
Mother of all ROOT objects.
#define ClassDef(name, id)
virtual Long64_t GetZipBytes() const
Long64_t fMaxEntries
Maximum number of entries in case of circular buffers.
TH1 is the base class of all histogram classes in ROOT.
void AddClone(TTree *)
Add a cloned tree to our list of trees to be notified whenever we change our branch addresses or when...
virtual void RecursiveRemove(TObject *obj)
Make sure that obj (which is being deleted or will soon be) is no longer referenced by this TTree.
void InitializeBranchLists(bool checkLeafCount)
Divides the top-level branches into two vectors: (i) branches to be processed sequentially and (ii) b...
A PolyMarker is defined by an array on N points in a 2-D space.
virtual TTreeFormula * GetVar3() const =0
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 Double_t * GetV1() const =0
virtual void SetName(const char *name)
Change the name of this tree.
virtual void SetClusterPrefetch(Bool_t enabled)
Describe directory structure in memory.
std::atomic< Long64_t > fTotalBuffers
! Total number of bytes in branch buffers
virtual void CopyAddresses(TTree *, Bool_t undo=kFALSE)
Set branch addresses of passed tree equal to ours.
virtual void DropBuffers(Int_t nbytes)
Drop branch buffers to accommodate nbytes below MaxVirtualsize.
virtual const char * GetFriendAlias(TTree *) const
If the 'tree' is a friend, this method returns its alias name.
Long64_t fCacheSize
! Maximum size of file buffers
virtual Long64_t CopyEntries(TTree *tree, Long64_t nentries=-1, Option_t *option="", Bool_t needCopyAddresses=false)
Copy nentries from given tree to this tree.
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 TBranch * BranchRef()
Build the optional branch supporting the TRefTable.
Int_t SetBranchAddressImp(TBranch *branch, void *addr, TBranch **ptr)
Change branch address, dealing with clone trees properly.
TBranch * Branch(const char *name, const char *classname, T *obj, Int_t bufsize=32000, Int_t splitlevel=99)
TEventList * GetEventList() const
virtual Long64_t GetSelectedRows() const =0
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.
Long64_t fMaxVirtualSize
Maximum total size of buffers kept in memory.
Int_t GetEvent(Long64_t entry=0, Int_t getall=0)
Double_t fWeight
Tree weight (see TTree::SetWeight)
TList * fClones
! List of cloned trees which share our addresses
virtual Long64_t GetTotBytes() const
TBuffer * GetTransientBuffer(Int_t size)
Returns the transient buffer currently used by this TTree for reading/writing baskets.
Collection abstract base class.
Fill Area Attributes class.
Long64_t fTotBytes
Total number of bytes in all branches before compression.
Int_t FlushBasketsImpl() const
Internal implementation of the FlushBaskets algorithm.
std::vector< TBranch * > fSeqBranches
! Branches to be processed sequentially when IMT is on
virtual Double_t * GetVal(Int_t i)
virtual const char * GetName() const
Returns name of object.
@ kNeedEnableDecomposedObj
Long64_t fAutoFlush
Auto-flush tree when fAutoFlush entries written or -fAutoFlush (compressed) bytes produced.
virtual Bool_t GetImplicitMT()
Int_t fPacketSize
! Number of entries in one packet for parallel root
virtual void ResetBranchAddresses()
Tell all of our branches to drop their current objects and allocate new ones.
Array of doubles (64 bits per element).
virtual Double_t * GetVal(Int_t) const =0
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 Double_t * GetV3() const =0
static constexpr Long64_t kMaxEntries
Long64_t fEstimate
Number of entries to estimate histogram limits.
virtual Int_t StopCacheLearningPhase()
Stop the cache learning phase.
virtual TObjArray * GetListOfLeaves()
virtual void SetBranchStatus(const char *bname, Bool_t status=1, UInt_t *found=0)
Set branch status to Process or DoNotProcess.
virtual Int_t SetCacheEntryRange(Long64_t first, Long64_t last)
interface to TTreeCache to set the cache entry range
virtual Long64_t GetEntries() const
void MoveReadCache(TFile *src, TDirectory *dir)
Move a cache from a file to the current file in dir.
virtual Long64_t GetMaxVirtualSize() const
virtual void SetChainOffset(Long64_t offset=0)
virtual Double_t * GetIndexValues()
virtual void ResetAfterMerge(TFileMergeInfo *)
Resets the state of this TTree after a merge (keep the customization but forget the data).
std::atomic< Long64_t > fIMTTotBytes
! Total bytes for the IMT flush baskets
static Int_t fgBranchStyle
Old/New branch style.
virtual void SetDefaultEntryOffsetLen(Int_t newdefault, Bool_t updateExisting=kFALSE)
Update the default value for the branch's fEntryOffsetLen.
Int_t fFileNumber
! current file number (if file extensions)
virtual Double_t * GetV3()
TFriendLock & operator=(const TFriendLock &)
Assignment operator.
TObject * Next()
Go the next friend element.
virtual void SetImplicitMT(Bool_t enabled)
Int_t GetDefaultEntryOffsetLen() const
A branch containing and managing a TRefTable for TRef autoloading.
virtual void AddTotBytes(Int_t tot)
Array of integers (32 bits per element).
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.
@ kOnlyFlushAtCluster
If set, the branch's buffers will grow until an event cluster boundary is hit, guaranteeing a basket ...
TList * fFriends
pointer to list of friend elements
UInt_t GetAllocationCount() const
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.
Long64_t fDebugMin
! First entry number to debug
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 RemoveExternalFriend(TFriendElement *)
Removes external friend.
static void SetBranchStyle(Int_t style=1)
Set the current branch style.