Logo ROOT   6.12/07
Reference Guide
TTree.h
Go to the documentation of this file.
1 // @(#)root/tree:$Id$
2 // Author: Rene Brun 12/01/96
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TTree
13 #define ROOT_TTree
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // TTree //
18 // //
19 // A TTree object is a list of TBranch. //
20 // To Create a TTree object one must: //
21 // - Create the TTree header via the TTree constructor //
22 // - Call the TBranch constructor for every branch. //
23 // //
24 // To Fill this object, use member function Fill with no parameters. //
25 // The Fill function loops on all defined TBranch. //
26 // //
27 //////////////////////////////////////////////////////////////////////////
28 
29 #include "ROOT/TIOFeatures.hxx"
30 #include "TArrayD.h"
31 #include "TArrayI.h"
32 #include "TAttFill.h"
33 #include "TAttLine.h"
34 #include "TAttMarker.h"
35 #include "TBranch.h"
36 #include "TBuffer.h"
37 #include "TClass.h"
38 #include "TDataType.h"
39 #include "TDirectory.h"
40 #include "TObjArray.h"
41 #include "TVirtualTreePlayer.h"
42 
43 #include <atomic>
44 
45 
46 class TBranch;
47 class TBrowser;
48 class TFile;
49 class TLeaf;
50 class TH1;
51 class TTreeFormula;
52 class TPolyMarker;
53 class TEventList;
54 class TEntryList;
55 class TList;
56 class TSQLResult;
57 class TSelector;
58 class TPrincipal;
59 class TFriendElement;
60 class TCut;
61 class TVirtualIndex;
62 class TBranchRef;
63 class TBasket;
64 class TStreamerInfo;
65 class TTreeCache;
66 class TTreeCloner;
67 class TFileMergeInfo;
68 class TVirtualPerfStats;
69 
70 class TTree : public TNamed, public TAttLine, public TAttFill, public TAttMarker {
71 
73 
74 protected:
75  Long64_t fEntries; ///< Number of entries
76 // NOTE: cannot use std::atomic for these counters as it cannot be serialized.
77  Long64_t fTotBytes; ///< Total number of bytes in all branches before compression
78  Long64_t fZipBytes; ///< Total number of bytes in all branches after compression
79  Long64_t fSavedBytes; ///< Number of autosaved bytes
80  Long64_t fFlushedBytes; ///< Number of auto-flushed bytes
81  Double_t fWeight; ///< Tree weight (see TTree::SetWeight)
82  Int_t fTimerInterval; ///< Timer interval in milliseconds
83  Int_t fScanField; ///< Number of runs before prompting in Scan
84  Int_t fUpdate; ///< Update frequency for EntryLoop
85  Int_t fDefaultEntryOffsetLen; ///< Initial Length of fEntryOffset table in the basket buffers
86  Int_t fNClusterRange; ///< Number of Cluster range in addition to the one defined by 'AutoFlush'
87  Int_t fMaxClusterRange; ///<! Memory allocated for the cluster range.
88  Long64_t fMaxEntries; ///< Maximum number of entries in case of circular buffers
89  Long64_t fMaxEntryLoop; ///< Maximum number of entries to process
90  Long64_t fMaxVirtualSize; ///< Maximum total size of buffers kept in memory
91  Long64_t fAutoSave; ///< Autosave tree when fAutoSave entries written or -fAutoSave (compressed) bytes produced
92  Long64_t fAutoFlush; ///< Auto-flush tree when fAutoFlush entries written or -fAutoFlush (compressed) bytes produced
93  Long64_t fEstimate; ///< Number of entries to estimate histogram limits
94  Long64_t *fClusterRangeEnd; ///<[fNClusterRange] Last entry of a cluster range.
95  Long64_t *fClusterSize; ///<[fNClusterRange] Number of entries in each cluster for a given range.
96  Long64_t fCacheSize; ///<! Maximum size of file buffers
97  Long64_t fChainOffset; ///<! Offset of 1st entry of this Tree in a TChain
98  Long64_t fReadEntry; ///<! Number of the entry being processed
99  std::atomic<Long64_t> fTotalBuffers; ///<! Total number of bytes in branch buffers
100  Int_t fPacketSize; ///<! Number of entries in one packet for parallel root
101  Int_t fNfill; ///<! Local for EntryLoop
102  Int_t fDebug; ///<! Debug level
103  Long64_t fDebugMin; ///<! First entry number to debug
104  Long64_t fDebugMax; ///<! Last entry number to debug
105  TIOFeatures fIOFeatures{0}; ///< IO features to define for newly-written baskets and branches.
106  Int_t fMakeClass; ///<! not zero when processing code generated by MakeClass
107  Int_t fFileNumber; ///<! current file number (if file extensions)
108  TObject *fNotify; ///<! Object to be notified when loading a Tree
109  TDirectory *fDirectory; ///<! Pointer to directory holding this tree
110  TObjArray fBranches; ///< List of Branches
111  TObjArray fLeaves; ///< Direct pointers to individual branch leaves
112  TList *fAliases; ///< List of aliases for expressions based on the tree branches.
113  TEventList *fEventList; ///<! Pointer to event selection list (if one)
114  TEntryList *fEntryList; ///<! Pointer to event selection list (if one)
115  TArrayD fIndexValues; ///< Sorted index values
116  TArrayI fIndex; ///< Index of sorted values
117  TVirtualIndex *fTreeIndex; ///< Pointer to the tree Index (if any)
118  TList *fFriends; ///< pointer to list of friend elements
119  TVirtualPerfStats *fPerfStats; ///<! pointer to the current perf stats object
120  TList *fUserInfo; ///< pointer to a list of user objects associated to this Tree
121  TVirtualTreePlayer *fPlayer; ///<! Pointer to current Tree player
122  TList *fClones; ///<! List of cloned trees which share our addresses
123  TBranchRef *fBranchRef; ///< Branch supporting the TRefTable (if any)
124  UInt_t fFriendLockStatus; ///<! Record which method is locking the friend recursion
125  TBuffer *fTransientBuffer; ///<! Pointer to the current transient buffer.
126  Bool_t fCacheDoAutoInit; ///<! true if cache auto creation or resize check is needed
127  Bool_t fCacheDoClusterPrefetch;///<! true if cache is prefetching whole clusters
128  Bool_t fCacheUserSet; ///<! true if the cache setting was explicitly given by user
129  Bool_t fIMTEnabled; ///<! true if implicit multi-threading is enabled for this tree
130  UInt_t fNEntriesSinceSorting; ///<! Number of entries processed since the last re-sorting of branches
131  std::vector<std::pair<Long64_t,TBranch*>> fSortedBranches; ///<! Branches to be processed in parallel when IMT is on, sorted by average task time
132  std::vector<TBranch*> fSeqBranches; ///<! Branches to be processed sequentially when IMT is on
133 
134  static Int_t fgBranchStyle; ///< Old/New branch style
135  static Long64_t fgMaxTreeSize; ///< Maximum size of a file containing a Tree
136 
137 private:
138  // For simplicity, although fIMTFlush is always disabled in non-IMT builds, we don't #ifdef it out.
139  mutable Bool_t fIMTFlush{false}; ///<! True if we are doing a multithreaded flush.
140  mutable std::atomic<Long64_t> fIMTTotBytes; ///<! Total bytes for the IMT flush baskets
141  mutable std::atomic<Long64_t> fIMTZipBytes; ///<! Zip bytes for the IMT flush baskets.
142 
143  void InitializeBranchLists(bool checkLeafCount);
144  void SortBranchesByTime();
145 
146 protected:
147  virtual void KeepCircular();
148  virtual TBranch *BranchImp(const char* branchname, const char* classname, TClass* ptrClass, void* addobj, Int_t bufsize, Int_t splitlevel);
149  virtual TBranch *BranchImp(const char* branchname, TClass* ptrClass, void* addobj, Int_t bufsize, Int_t splitlevel);
150  virtual TBranch *BranchImpRef(const char* branchname, const char* classname, TClass* ptrClass, void* addobj, Int_t bufsize, Int_t splitlevel);
151  virtual TBranch *BranchImpRef(const char* branchname, TClass* ptrClass, EDataType datatype, void* addobj, Int_t bufsize, Int_t splitlevel);
152  virtual Int_t CheckBranchAddressType(TBranch* branch, TClass* ptrClass, EDataType datatype, Bool_t ptr);
153  virtual TBranch *BronchExec(const char* name, const char* classname, void* addobj, Bool_t isptrptr, Int_t bufsize, Int_t splitlevel);
154  friend TBranch *TTreeBranchImpRef(TTree *tree, const char* branchname, TClass* ptrClass, EDataType datatype, void* addobj, Int_t bufsize, Int_t splitlevel);
155  Int_t SetBranchAddressImp(TBranch *branch, void* addr, TBranch** ptr);
156  virtual TLeaf *GetLeafImpl(const char* branchname, const char* leafname);
157 
158  Long64_t GetCacheAutoSize(Bool_t withDefault = kFALSE) const;
159  char GetNewlineValue(std::istream &inputStream);
161  void ImportClusterRanges(TTree *fromtree);
162  void MoveReadCache(TFile *src, TDirectory *dir);
163  Int_t SetCacheSizeAux(Bool_t autocache = kTRUE, Long64_t cacheSize = 0);
164 
165  class TFriendLock {
166  // Helper class to prevent infinite recursion in the
167  // usage of TTree Friends. Implemented in TTree.cxx.
168  TTree *fTree; // Pointer to the locked tree
169  UInt_t fMethodBit; // BIT for the locked method
170  Bool_t fPrevious; // Previous value of the BIT.
171 
172  protected:
173  TFriendLock(const TFriendLock&);
175 
176  public:
177  TFriendLock(TTree* tree, UInt_t methodbit);
178  ~TFriendLock();
179  };
180  friend class TFriendLock;
181  // So that the index class can use TFriendLock:
182  friend class TTreeIndex;
183  friend class TChainIndex;
184  // So that the TTreeCloner can access the protected interfaces
185  friend class TTreeCloner;
186 
187  // use to update fFriendLockStatus
197  kGetLeaf = BIT(8),
199  kPrint = BIT(10),
202  };
203 
204 public:
205  // Used as the max value for any TTree range operation.
207 
208  // SetBranchAddress return values
213  kMismatch = -2,
215  kMatch = 0,
219  kVoidPtr = 4,
221  };
222 
223  // TTree status bits
224  enum EStatusBits {
227  };
228 
229  // Split level modifier
230  enum {
232  };
233 
235  {
236  private:
237  TTree *fTree; // TTree upon which we are iterating.
238  Int_t fClusterRange; // Which cluster range are we looking at.
239  Long64_t fStartEntry; // Where does the cluster start.
240  Long64_t fNextEntry; // Where does the cluster end (exclusive).
241 
242  Long64_t GetEstimatedClusterSize();
243 
244  protected:
245  friend class TTree;
246  TClusterIterator(TTree *tree, Long64_t firstEntry);
247 
248  public:
249  // Intentionally used the default copy constructor and default destructor
250  // as the TClusterIterator does not own the TTree.
251  // TClusterIterator(const TClusterIterator&);
252  // ~TClusterIterator();
253 
254  // No public constructors, the iterator must be
255  // created via TTree::GetClusterIterator
256 
257  // Move on to the next cluster and return the starting entry
258  // of this next cluster
259  Long64_t Next();
260 
261  // Move on to the previous cluster and return the starting entry
262  // of this previous cluster
263  Long64_t Previous();
264 
265  // Return the start entry of the current cluster.
267  return fStartEntry;
268  }
269 
270  // Return the first entry of the next cluster.
272  return fNextEntry;
273  }
274 
275  Long64_t operator()() { return Next(); }
276  };
277 
278  TTree();
279  TTree(const char* name, const char* title, Int_t splitlevel = 99, TDirectory* dir = gDirectory);
280  virtual ~TTree();
281 
282  TTree(const TTree& tt) = delete;
283  TTree& operator=(const TTree& tt) = delete;
284 
285  virtual Int_t AddBranchToCache(const char *bname, Bool_t subbranches = kFALSE);
286  virtual Int_t AddBranchToCache(TBranch *branch, Bool_t subbranches = kFALSE);
287  virtual Int_t DropBranchFromCache(const char *bname, Bool_t subbranches = kFALSE);
288  virtual Int_t DropBranchFromCache(TBranch *branch, Bool_t subbranches = kFALSE);
289  void AddClone(TTree*);
290  virtual TFriendElement *AddFriend(const char* treename, const char* filename = "");
291  virtual TFriendElement *AddFriend(const char* treename, TFile* file);
292  virtual TFriendElement *AddFriend(TTree* tree, const char* alias = "", Bool_t warn = kFALSE);
293  // As the TBasket invokes Add{Tot,Zip}Bytes on its parent tree, we must do these updates in a thread-safe
294  // manner only when we are flushing multiple baskets in parallel.
295  virtual void AddTotBytes(Int_t tot) { if (fIMTFlush) { fIMTTotBytes += tot; } else { fTotBytes += tot; } }
296  virtual void AddZipBytes(Int_t zip) { if (fIMTFlush) { fIMTZipBytes += zip; } else { fZipBytes += zip; } }
297  virtual Long64_t AutoSave(Option_t* option = "");
298  virtual Int_t Branch(TCollection* list, Int_t bufsize = 32000, Int_t splitlevel = 99, const char* name = "");
299  virtual Int_t Branch(TList* list, Int_t bufsize = 32000, Int_t splitlevel = 99);
300  virtual Int_t Branch(const char* folder, Int_t bufsize = 32000, Int_t splitlevel = 99);
301  virtual TBranch *Branch(const char* name, void* address, const char* leaflist, Int_t bufsize = 32000);
302  TBranch *Branch(const char* name, char* address, const char* leaflist, Int_t bufsize = 32000)
303  {
304  // Overload to avoid confusion between this signature and the template instance.
305  return Branch(name,(void*)address,leaflist,bufsize);
306  }
307  TBranch *Branch(const char* name, Long_t address, const char* leaflist, Int_t bufsize = 32000)
308  {
309  // Overload to avoid confusion between this signature and the template instance.
310  return Branch(name,(void*)address,leaflist,bufsize);
311  }
312  TBranch *Branch(const char* name, int address, const char* leaflist, Int_t bufsize = 32000)
313  {
314  // Overload to avoid confusion between this signature and the template instance.
315  return Branch(name,(void*)(Long_t)address,leaflist,bufsize);
316  }
317 #if !defined(__CINT__)
318  virtual TBranch *Branch(const char* name, const char* classname, void* addobj, Int_t bufsize = 32000, Int_t splitlevel = 99);
319 #endif
320  template <class T> TBranch *Branch(const char* name, const char* classname, T* obj, Int_t bufsize = 32000, Int_t splitlevel = 99)
321  {
322  // See BranchImpRed for details. Here we __ignore
323  return BranchImpRef(name, classname, TBuffer::GetClass(typeid(T)), obj, bufsize, splitlevel);
324  }
325  template <class T> TBranch *Branch(const char* name, const char* classname, T** addobj, Int_t bufsize = 32000, Int_t splitlevel = 99)
326  {
327  // See BranchImp for details
328  return BranchImp(name, classname, TBuffer::GetClass(typeid(T)), addobj, bufsize, splitlevel);
329  }
330  template <class T> TBranch *Branch(const char* name, T** addobj, Int_t bufsize = 32000, Int_t splitlevel = 99)
331  {
332  // See BranchImp for details
333  return BranchImp(name, TBuffer::GetClass(typeid(T)), addobj, bufsize, splitlevel);
334  }
335  template <class T> TBranch *Branch(const char* name, T* obj, Int_t bufsize = 32000, Int_t splitlevel = 99)
336  {
337  // See BranchImp for details
338  return BranchImpRef(name, TBuffer::GetClass(typeid(T)), TDataType::GetType(typeid(T)), obj, bufsize, splitlevel);
339  }
340  virtual TBranch *Bronch(const char* name, const char* classname, void* addobj, Int_t bufsize = 32000, Int_t splitlevel = 99);
341  virtual TBranch *BranchOld(const char* name, const char* classname, void* addobj, Int_t bufsize = 32000, Int_t splitlevel = 1);
342  virtual TBranch *BranchRef();
343  virtual void Browse(TBrowser*);
344  virtual Int_t BuildIndex(const char* majorname, const char* minorname = "0");
345  TStreamerInfo *BuildStreamerInfo(TClass* cl, void* pointer = 0, Bool_t canOptimize = kTRUE);
346  virtual TFile *ChangeFile(TFile* file);
347  virtual TTree *CloneTree(Long64_t nentries = -1, Option_t* option = "");
348  virtual void CopyAddresses(TTree*,Bool_t undo = kFALSE);
349  virtual Long64_t CopyEntries(TTree* tree, Long64_t nentries = -1, Option_t *option = "");
350  virtual TTree *CopyTree(const char* selection, Option_t* option = "", Long64_t nentries = kMaxEntries, Long64_t firstentry = 0);
351  virtual TBasket *CreateBasket(TBranch*);
352  virtual void DirectoryAutoAdd(TDirectory *);
353  Int_t Debug() const { return fDebug; }
354  virtual void Delete(Option_t* option = ""); // *MENU*
355  virtual void Draw(Option_t* opt) { Draw(opt, "", "", kMaxEntries, 0); }
356  virtual Long64_t Draw(const char* varexp, const TCut& selection, Option_t* option = "", Long64_t nentries = kMaxEntries, Long64_t firstentry = 0);
357  virtual Long64_t Draw(const char* varexp, const char* selection, Option_t* option = "", Long64_t nentries = kMaxEntries, Long64_t firstentry = 0); // *MENU*
358  virtual void DropBaskets();
359  virtual void DropBuffers(Int_t nbytes);
360  virtual Int_t Fill();
361  virtual TBranch *FindBranch(const char* name);
362  virtual TLeaf *FindLeaf(const char* name);
363  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); // *MENU*
364  virtual Int_t FlushBaskets() const;
365  virtual const char *GetAlias(const char* aliasName) const;
366  virtual Long64_t GetAutoFlush() const {return fAutoFlush;}
367  virtual Long64_t GetAutoSave() const {return fAutoSave;}
368  virtual TBranch *GetBranch(const char* name);
369  virtual TBranchRef *GetBranchRef() const { return fBranchRef; };
370  virtual Bool_t GetBranchStatus(const char* branchname) const;
371  static Int_t GetBranchStyle();
372  virtual Long64_t GetCacheSize() const { return fCacheSize; }
373  virtual TClusterIterator GetClusterIterator(Long64_t firstentry);
374  virtual Long64_t GetChainEntryNumber(Long64_t entry) const { return entry; }
375  virtual Long64_t GetChainOffset() const { return fChainOffset; }
377  TFile *GetCurrentFile() const;
379  Long64_t GetDebugMax() const { return fDebugMax; }
380  Long64_t GetDebugMin() const { return fDebugMin; }
381  TDirectory *GetDirectory() const { return fDirectory; }
382  virtual Long64_t GetEntries() const { return fEntries; }
383  virtual Long64_t GetEntries(const char *selection);
384  virtual Long64_t GetEntriesFast() const { return fEntries; }
385  virtual Long64_t GetEntriesFriend() const;
386  virtual Long64_t GetEstimate() const { return fEstimate; }
387  virtual Int_t GetEntry(Long64_t entry = 0, Int_t getall = 0);
388  Int_t GetEvent(Long64_t entry = 0, Int_t getall = 0) { return GetEntry(entry, getall); }
389  virtual Int_t GetEntryWithIndex(Int_t major, Int_t minor = 0);
390  virtual Long64_t GetEntryNumberWithBestIndex(Long64_t major, Long64_t minor = 0) const;
391  virtual Long64_t GetEntryNumberWithIndex(Long64_t major, Long64_t minor = 0) const;
392  TEventList *GetEventList() const { return fEventList; }
393  virtual TEntryList *GetEntryList();
394  virtual Long64_t GetEntryNumber(Long64_t entry) const;
395  virtual Int_t GetFileNumber() const { return fFileNumber; }
396  virtual TTree *GetFriend(const char*) const;
397  virtual const char *GetFriendAlias(TTree*) const;
399  virtual Bool_t GetImplicitMT() { return fIMTEnabled; }
400  virtual Int_t *GetIndex() { return &fIndex.fArray[0]; }
401  virtual Double_t *GetIndexValues() { return &fIndexValues.fArray[0]; }
404  virtual TLeaf *GetLeaf(const char* branchname, const char* leafname);
405  virtual TLeaf *GetLeaf(const char* name);
406  virtual TList *GetListOfClones() { return fClones; }
407  virtual TObjArray *GetListOfBranches() { return &fBranches; }
408  virtual TObjArray *GetListOfLeaves() { return &fLeaves; }
409  virtual TList *GetListOfFriends() const { return fFriends; }
410  virtual TList *GetListOfAliases() const { return fAliases; }
411 
412  // GetMakeClass is left non-virtual for efficiency reason.
413  // Making it virtual affects the performance of the I/O
414  Int_t GetMakeClass() const { return fMakeClass; }
415 
416  virtual Long64_t GetMaxEntryLoop() const { return fMaxEntryLoop; }
417  virtual Double_t GetMaximum(const char* columname);
418  static Long64_t GetMaxTreeSize();
419  virtual Long64_t GetMaxVirtualSize() const { return fMaxVirtualSize; }
420  virtual Double_t GetMinimum(const char* columname);
421  virtual Int_t GetNbranches() { return fBranches.GetEntriesFast(); }
422  TObject *GetNotify() const { return fNotify; }
424  virtual Int_t GetPacketSize() const { return fPacketSize; }
425  virtual TVirtualPerfStats *GetPerfStats() const { return fPerfStats; }
426  virtual Long64_t GetReadEntry() const { return fReadEntry; }
427  virtual Long64_t GetReadEvent() const { return fReadEntry; }
428  virtual Int_t GetScanField() const { return fScanField; }
431  virtual Int_t GetTimerInterval() const { return fTimerInterval; }
433  virtual Long64_t GetTotBytes() const { return fTotBytes; }
434  virtual TTree *GetTree() const { return const_cast<TTree*>(this); }
435  virtual TVirtualIndex *GetTreeIndex() const { return fTreeIndex; }
436  virtual Int_t GetTreeNumber() const { return 0; }
437  virtual Int_t GetUpdate() const { return fUpdate; }
438  virtual TList *GetUserInfo();
439  // See TSelectorDraw::GetVar
440  TTreeFormula *GetVar(Int_t i) { return GetPlayer()->GetVar(i); }
441  // See TSelectorDraw::GetVar
442  TTreeFormula *GetVar1() { return GetPlayer()->GetVar1(); }
443  // See TSelectorDraw::GetVar
444  TTreeFormula *GetVar2() { return GetPlayer()->GetVar2(); }
445  // See TSelectorDraw::GetVar
446  TTreeFormula *GetVar3() { return GetPlayer()->GetVar3(); }
447  // See TSelectorDraw::GetVar
448  TTreeFormula *GetVar4() { return GetPlayer()->GetVar4(); }
449  // See TSelectorDraw::GetVal
450  virtual Double_t *GetVal(Int_t i) { return GetPlayer()->GetVal(i); }
451  // See TSelectorDraw::GetVal
452  virtual Double_t *GetV1() { return GetPlayer()->GetV1(); }
453  // See TSelectorDraw::GetVal
454  virtual Double_t *GetV2() { return GetPlayer()->GetV2(); }
455  // See TSelectorDraw::GetVal
456  virtual Double_t *GetV3() { return GetPlayer()->GetV3(); }
457  // See TSelectorDraw::GetVal
458  virtual Double_t *GetV4() { return GetPlayer()->GetV4(); }
459  virtual Double_t *GetW() { return GetPlayer()->GetW(); }
460  virtual Double_t GetWeight() const { return fWeight; }
461  virtual Long64_t GetZipBytes() const { return fZipBytes; }
462  virtual void IncrementTotalBuffers(Int_t nbytes) { fTotalBuffers += nbytes; }
463  Bool_t IsFolder() const { return kTRUE; }
464  virtual Int_t LoadBaskets(Long64_t maxmemory = 2000000000);
465  virtual Long64_t LoadTree(Long64_t entry);
466  virtual Long64_t LoadTreeFriend(Long64_t entry, TTree* T);
467  virtual Int_t MakeClass(const char* classname = 0, Option_t* option = "");
468  virtual Int_t MakeCode(const char* filename = 0);
469  virtual Int_t MakeProxy(const char* classname, const char* macrofilename = 0, const char* cutfilename = 0, const char* option = 0, Int_t maxUnrolling = 3);
470  virtual Int_t MakeSelector(const char* selector = 0, Option_t* option = "");
471  Bool_t MemoryFull(Int_t nbytes);
472  virtual Long64_t Merge(TCollection* list, Option_t* option = "");
473  virtual Long64_t Merge(TCollection* list, TFileMergeInfo *info);
474  static TTree *MergeTrees(TList* list, Option_t* option = "");
475  virtual Bool_t Notify();
476  virtual void OptimizeBaskets(ULong64_t maxMemory=10000000, Float_t minComp=1.1, Option_t *option="");
477  TPrincipal *Principal(const char* varexp = "", const char* selection = "", Option_t* option = "np", Long64_t nentries = kMaxEntries, Long64_t firstentry = 0);
478  virtual void Print(Option_t* option = "") const; // *MENU*
479  virtual void PrintCacheStats(Option_t* option = "") const;
480  virtual Long64_t Process(const char* filename, Option_t* option = "", Long64_t nentries = kMaxEntries, Long64_t firstentry = 0); // *MENU*
481 #if defined(__CINT__)
482 #if defined(R__MANUAL_DICT)
483  virtual Long64_t Process(void* selector, Option_t* option = "", Long64_t nentries = kMaxEntries, Long64_t firstentry = 0);
484 #endif
485 #else
486  virtual Long64_t Process(TSelector* selector, Option_t* option = "", Long64_t nentries = kMaxEntries, Long64_t firstentry = 0);
487 #endif
488  virtual Long64_t Project(const char* hname, const char* varexp, const char* selection = "", Option_t* option = "", Long64_t nentries = kMaxEntries, Long64_t firstentry = 0);
489  virtual TSQLResult *Query(const char* varexp = "", const char* selection = "", Option_t* option = "", Long64_t nentries = kMaxEntries, Long64_t firstentry = 0);
490  virtual Long64_t ReadFile(const char* filename, const char* branchDescriptor = "", char delimiter = ' ');
491  virtual Long64_t ReadStream(std::istream& inputStream, const char* branchDescriptor = "", char delimiter = ' ');
492  virtual void Refresh();
493  virtual void RecursiveRemove(TObject *obj);
494  virtual void RemoveFriend(TTree*);
495  virtual void Reset(Option_t* option = "");
496  virtual void ResetAfterMerge(TFileMergeInfo *);
497  virtual void ResetBranchAddress(TBranch *);
498  virtual void ResetBranchAddresses();
499  virtual Long64_t Scan(const char* varexp = "", const char* selection = "", Option_t* option = "", Long64_t nentries = kMaxEntries, Long64_t firstentry = 0); // *MENU*
500  virtual Bool_t SetAlias(const char* aliasName, const char* aliasFormula);
501  virtual void SetAutoSave(Long64_t autos = -300000000);
502  virtual void SetAutoFlush(Long64_t autof = -30000000);
503  virtual void SetBasketSize(const char* bname, Int_t buffsize = 16000);
504 #if !defined(__CINT__)
505  virtual Int_t SetBranchAddress(const char *bname,void *add, TBranch **ptr = 0);
506 #endif
507  virtual Int_t SetBranchAddress(const char *bname,void *add, TClass *realClass, EDataType datatype, Bool_t isptr);
508  virtual Int_t SetBranchAddress(const char *bname,void *add, TBranch **ptr, TClass *realClass, EDataType datatype, Bool_t isptr);
509  template <class T> Int_t SetBranchAddress(const char *bname, T **add, TBranch **ptr = 0) {
510  TClass *cl = TClass::GetClass(typeid(T));
512  if (cl==0) type = TDataType::GetType(typeid(T));
513  return SetBranchAddress(bname,add,ptr,cl,type,true);
514  }
515 #ifndef R__NO_CLASS_TEMPLATE_SPECIALIZATION
516  // This can only be used when the template overload resolution can distinguish between
517  // T* and T**
518  template <class T> Int_t SetBranchAddress(const char *bname, T *add, TBranch **ptr = 0) {
519  TClass *cl = TClass::GetClass(typeid(T));
521  if (cl==0) type = TDataType::GetType(typeid(T));
522  return SetBranchAddress(bname,add,ptr,cl,type,false);
523  }
524 #endif
525  virtual void SetBranchStatus(const char* bname, Bool_t status = 1, UInt_t* found = 0);
526  static void SetBranchStyle(Int_t style = 1); //style=0 for old branch, =1 for new branch style
527  virtual Int_t SetCacheSize(Long64_t cachesize = -1);
529  virtual void SetCacheLearnEntries(Int_t n=10);
530  virtual void SetChainOffset(Long64_t offset = 0) { fChainOffset=offset; }
531  virtual void SetCircular(Long64_t maxEntries);
532  virtual void SetClusterPrefetch(Bool_t enabled) { fCacheDoClusterPrefetch = enabled; }
533  virtual void SetDebug(Int_t level = 1, Long64_t min = 0, Long64_t max = 9999999); // *MENU*
534  virtual void SetDefaultEntryOffsetLen(Int_t newdefault, Bool_t updateExisting = kFALSE);
535  virtual void SetDirectory(TDirectory* dir);
536  virtual Long64_t SetEntries(Long64_t n = -1);
537  virtual void SetEstimate(Long64_t nentries = 1000000);
539  virtual void SetFileNumber(Int_t number = 0);
540  virtual void SetEventList(TEventList* list);
541  virtual void SetEntryList(TEntryList* list, Option_t *opt="");
542  virtual void SetImplicitMT(Bool_t enabled) { fIMTEnabled = enabled; }
543  virtual void SetMakeClass(Int_t make);
544  virtual void SetMaxEntryLoop(Long64_t maxev = kMaxEntries) { fMaxEntryLoop = maxev; } // *MENU*
545  static void SetMaxTreeSize(Long64_t maxsize = 100000000000LL);
546  virtual void SetMaxVirtualSize(Long64_t size = 0) { fMaxVirtualSize = size; } // *MENU*
547  virtual void SetName(const char* name); // *MENU*
548 
549  /**
550  * @brief Sets the address of the object to be notified when the tree is loaded.
551  *
552  * The method TObject::Notify is called for the given object when the tree
553  * is loaded. Specifically this occurs in the TTree::LoadTree method. To
554  * remove the notification call this method with nullptr:
555  * @code tree->SetNotify(nullptr); @endcode
556  *
557  * @param[in] obj Pointer to a TObject to be notified.
558  */
559  virtual void SetNotify(TObject* obj) { fNotify = obj; }
560 
561  virtual void SetObject(const char* name, const char* title);
562  virtual void SetParallelUnzip(Bool_t opt=kTRUE, Float_t RelSize=-1);
563  virtual void SetPerfStats(TVirtualPerfStats* perf);
564  virtual void SetScanField(Int_t n = 50) { fScanField = n; } // *MENU*
565  virtual void SetTimerInterval(Int_t msec = 333) { fTimerInterval=msec; }
566  virtual void SetTreeIndex(TVirtualIndex* index);
567  virtual void SetWeight(Double_t w = 1, Option_t* option = "");
568  virtual void SetUpdate(Int_t freq = 0) { fUpdate = freq; }
569  virtual void Show(Long64_t entry = -1, Int_t lenmax = 20);
570  virtual void StartViewer(); // *MENU*
571  virtual Int_t StopCacheLearningPhase();
572  virtual Int_t UnbinnedFit(const char* funcname, const char* varexp, const char* selection = "", Option_t* option = "", Long64_t nentries = kMaxEntries, Long64_t firstentry = 0);
573  void UseCurrentStyle();
574  virtual Int_t Write(const char *name=0, Int_t option=0, Int_t bufsize=0);
575  virtual Int_t Write(const char *name=0, Int_t option=0, Int_t bufsize=0) const;
576 
577  ClassDef(TTree, 20) // Tree descriptor (the main ROOT I/O class)
578 };
579 
580 //////////////////////////////////////////////////////////////////////////
581 // //
582 // TTreeFriendLeafIter //
583 // //
584 // Iterator on all the leaves in a TTree and its friend //
585 // //
586 //////////////////////////////////////////////////////////////////////////
587 
589 
590 protected:
591  TTree *fTree; ///< tree being iterated
592  TIterator *fLeafIter; ///< current leaf sub-iterator.
593  TIterator *fTreeIter; ///< current tree sub-iterator.
594  Bool_t fDirection; ///< iteration direction
595 
596  TTreeFriendLeafIter() : fTree(0), fLeafIter(0), fTreeIter(0),
597  fDirection(0) { }
598 
599 public:
600  TTreeFriendLeafIter(const TTree* t, Bool_t dir = kIterForward);
602  ~TTreeFriendLeafIter() { SafeDelete(fLeafIter); SafeDelete(fTreeIter); }
603  TIterator &operator=(const TIterator &rhs);
605 
606  const TCollection *GetCollection() const { return 0; }
607  Option_t *GetOption() const;
608  TObject *Next();
609  void Reset() { SafeDelete(fLeafIter); SafeDelete(fTreeIter); }
610  Bool_t operator !=(const TIterator&) const {
611  // TODO: Implement me
612  return false;
613  }
615  // TODO: Implement me
616  return false;
617  }
618  TObject *operator*() const {
619  // TODO: Implement me
620  return nullptr;
621  }
622  ClassDef(TTreeFriendLeafIter,0) //Linked list iterator
623  };
624 
625 
626 #endif
virtual Double_t * GetV3()
Definition: TTree.h:456
TBranch * Branch(const char *name, const char *classname, T **addobj, Int_t bufsize=32000, Int_t splitlevel=99)
Definition: TTree.h:325
Describe Streamer information for one class version.
Definition: TStreamerInfo.h:43
virtual TBranch * FindBranch(const char *name)
Return the branch that correspond to the path &#39;branchname&#39;, which can include the name of the tree or...
Definition: TTree.cxx:4595
Double_t fWeight
Tree weight (see TTree::SetWeight)
Definition: TTree.h:81
Int_t GetDefaultEntryOffsetLen() const
Definition: TTree.h:378
A TLeaf describes individual elements of a TBranch See TBranch structure in TTree.
Definition: TLeaf.h:32
virtual void AddTotBytes(Int_t tot)
Definition: TTree.h:295
TTreeCache * GetReadCache(TFile *file, Bool_t create=kFALSE)
Find and return the TTreeCache registered with the file and which may contain branches for us...
Definition: TTree.cxx:5998
virtual TList * GetListOfClones()
Definition: TTree.h:406
TStreamerInfo * BuildStreamerInfo(TClass *cl, void *pointer=0, Bool_t canOptimize=kTRUE)
Build StreamerInfo for class cl.
Definition: TTree.cxx:2509
An array of TObjects.
Definition: TObjArray.h:37
Long64_t fDebugMin
! First entry number to debug
Definition: TTree.h:103
TBranch * Branch(const char *name, T **addobj, Int_t bufsize=32000, Int_t splitlevel=99)
Definition: TTree.h:330
Principal Components Analysis (PCA)
Definition: TPrincipal.h:20
TTree * fTree
tree being iterated
Definition: TTree.h:591
Long64_t GetNextEntry()
Definition: TTree.h:271
Bool_t fPrevious
Definition: TTree.h:170
auto * tt
Definition: textangle.C:16
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.
Definition: TTree.cxx:6709
Bool_t MemoryFull(Int_t nbytes)
Check if adding nbytes to memory we are still below MaxVirtualsize.
Definition: TTree.cxx:6511
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.
Definition: TTree.cxx:1521
virtual Int_t MakeCode(const char *filename=0)
Generate a skeleton function for this tree.
Definition: TTree.cxx:6314
long long Long64_t
Definition: RtypesCore.h:69
TTreeFormula * GetVar2()
Definition: TTree.h:444
TIterator * fTreeIter
current tree sub-iterator.
Definition: TTree.h:593
Abstract interface for Tree Index.
Definition: TVirtualIndex.h:29
virtual Int_t GetScanField() const
Definition: TTree.h:428
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.
Definition: TTree.cxx:7218
static constexpr Long64_t kMaxEntries
virtual Int_t StopCacheLearningPhase()
Stop the cache learning phase.
Definition: TTree.cxx:8912
virtual void SetBranchStatus(const char *bname, Bool_t status=1, UInt_t *found=0)
Set branch status to Process or DoNotProcess.
Definition: TTree.cxx:8044
virtual void IncrementTotalBuffers(Int_t nbytes)
Definition: TTree.h:462
virtual void Delete(Option_t *option="")
Delete this tree from memory or/and disk.
Definition: TTree.cxx:3540
static Int_t fgBranchStyle
Old/New branch style.
Definition: TTree.h:134
virtual void AddZipBytes(Int_t zip)
Definition: TTree.h:296
virtual Double_t * GetV4()
Definition: TTree.h:458
virtual Int_t LoadBaskets(Long64_t maxmemory=2000000000)
Read in memory all baskets from all branches up to the limit of maxmemory bytes.
Definition: TTree.cxx:6118
float Float_t
Definition: RtypesCore.h:53
static Long64_t GetMaxTreeSize()
Static function which returns the tree file size limit in bytes.
Definition: TTree.cxx:5945
virtual void SetParallelUnzip(Bool_t opt=kTRUE, Float_t RelSize=-1)
Enable or disable parallel unzipping of Tree buffers.
Definition: TTree.cxx:8753
Provides the interface for the PROOF internal performance measurement and event tracing.
const char Option_t
Definition: RtypesCore.h:62
virtual Bool_t Notify()
Function called when loading a new class library.
Definition: TTree.cxx:6685
TTree()
Default constructor and I/O constructor.
Definition: TTree.cxx:691
virtual TTree * GetFriend(const char *) const
Return a pointer to the TTree friend whose name or alias is &#39;friendname.
Definition: TTree.cxx:5657
virtual Long64_t GetEntriesFast() const
Definition: TTree.h:384
TBuffer * fTransientBuffer
! Pointer to the current transient buffer.
Definition: TTree.h:125
virtual void Print(Option_t *option="") const
Print a summary of the tree contents.
Definition: TTree.cxx:6864
double T(double x)
Definition: ChebyshevPol.h:34
virtual Bool_t GetClusterPrefetch() const
Definition: TTree.h:376
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.
Definition: TTree.cxx:4823
TIterator * fLeafIter
current leaf sub-iterator.
Definition: TTree.h:592
TList * fFriends
pointer to list of friend elements
Definition: TTree.h:118
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.
Definition: TTree.cxx:6845
virtual TH1 * GetHistogram() const =0
virtual Int_t Fill()
Fill all branches.
Definition: TTree.cxx:4364
Int_t GetMakeClass() const
Definition: TTree.h:414
virtual TEntryList * GetEntryList()
Returns the entry list, set to this tree.
Definition: TTree.cxx:5537
ROOT::TIOFeatures SetIOFeatures(const ROOT::TIOFeatures &)
Provide the end-user with the ability to enable/disable various experimental IO features for this TTr...
Definition: TTree.cxx:8628
virtual void SetMaxEntryLoop(Long64_t maxev=kMaxEntries)
Definition: TTree.h:544
#define BIT(n)
Definition: Rtypes.h:78
virtual Int_t GetPacketSize() const
Definition: TTree.h:424
static void SetBranchStyle(Int_t style=1)
Set the current branch style.
Definition: TTree.cxx:8170
A specialized TFileCacheRead object for a TTree.
Definition: TTreeCache.h:30
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...
Definition: TTree.cxx:5870
TTree * fTree
Definition: TTree.h:168
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
Definition: TFile.h:46
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...
Definition: TTree.cxx:5780
virtual TList * GetListOfFriends() const
Definition: TTree.h:409
TTreeFormula * GetSelect()
Definition: TTree.h:429
virtual Long64_t GetAutoFlush() const
Definition: TTree.h:366
Buffer base class used for serializing objects.
Definition: TBuffer.h:40
TDirectory * fDirectory
! Pointer to directory holding this tree
Definition: TTree.h:109
Int_t fMakeClass
! not zero when processing code generated by MakeClass
Definition: TTree.h:106
virtual TBasket * CreateBasket(TBranch *)
Create a basket for this tree and given branch.
Definition: TTree.cxx:3524
Long64_t GetDebugMin() const
Definition: TTree.h:380
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 ...
Definition: TTree.cxx:7855
virtual Int_t GetEntry(Long64_t entry=0, Int_t getall=0)
Read all branches of entry and return total number of bytes read.
Definition: TTree.cxx:5330
virtual TTreeFormula * GetVar(Int_t) const =0
virtual TList * GetListOfAliases() const
Definition: TTree.h:410
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.
Definition: TTree.cxx:6442
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
virtual Long64_t GetMaxEntryLoop() const
Definition: TTree.h:416
virtual void Browse(TBrowser *)
Browse content of the TTree.
Definition: TTree.cxx:2469
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).
Definition: TTree.cxx:8685
TIOFeatures provides the end-user with the ability to change the IO behavior of data written via a TT...
Definition: TIOFeatures.hxx:62
Int_t fScanField
Number of runs before prompting in Scan.
Definition: TTree.h:83
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.
Definition: TTree.cxx:2961
virtual TTree * CopyTree(const char *selection, Option_t *option="", Long64_t nentries=kMaxEntries, Long64_t firstentry=0)
Copy a tree with selection.
Definition: TTree.cxx:3512
const TCollection * GetCollection() const
Definition: TTree.h:606
virtual void KeepCircular()
Keep a maximum of fMaxEntries in memory.
Definition: TTree.cxx:6082
TArrayD fIndexValues
Sorted index values.
Definition: TTree.h:115
Long64_t fMaxEntryLoop
Maximum number of entries to process.
Definition: TTree.h:89
TVirtualTreePlayer * GetPlayer()
Load the TTreePlayer (if not already done).
Definition: TTree.cxx:5984
virtual void SetMaxVirtualSize(Long64_t size=0)
Definition: TTree.h:546
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.
Definition: TTree.cxx:7121
A Tree Index with majorname and minorname.
Definition: TTreeIndex.h:28
ELockStatusBits
Definition: TTree.h:188
Long64_t fStartEntry
Definition: TTree.h:239
virtual Int_t GetFileNumber() const
Definition: TTree.h:395
Iterator abstract base class.
Definition: TIterator.h:30
Array of integers (32 bits per element).
Definition: TArrayI.h:27
virtual TTreeFormula * GetSelect() const =0
virtual void Refresh()
Refresh contents of this tree and its branches from the current status on disk.
Definition: TTree.cxx:7515
virtual void SetFileNumber(Int_t number=0)
Set fFileNumber to number.
Definition: TTree.cxx:8651
virtual Double_t GetMinimum(const char *columname)
Return minimum of column with name columname.
Definition: TTree.cxx:5955
virtual void DirectoryAutoAdd(TDirectory *)
Called by TKey and TObject::Clone to automatically add us to a directory when we are read from a file...
Definition: TTree.cxx:3612
Bool_t fIMTFlush
! True if we are doing a multithreaded flush.
Definition: TTree.h:139
virtual Double_t GetWeight() const
Definition: TTree.h:460
virtual void StartViewer()
Start the TTreeViewer on this tree.
Definition: TTree.cxx:8897
virtual Long64_t Merge(TCollection *list, Option_t *option="")
Merge the trees in the TList into this tree.
Definition: TTree.cxx:6568
Marker Attributes class.
Definition: TAttMarker.h:19
virtual Int_t GetEntryWithIndex(Int_t major, Int_t minor=0)
Read entry corresponding to major and minor number.
Definition: TTree.cxx:5610
TList * fAliases
List of aliases for expressions based on the tree branches.
Definition: TTree.h:112
virtual Int_t FlushBaskets() const
Write to disk all the basket that have not yet been individually written.
Definition: TTree.cxx:4870
TBranch * Branch(const char *name, Long_t address, const char *leaflist, Int_t bufsize=32000)
Definition: TTree.h:307
virtual TTreeFormula * GetVar3() const =0
Bool_t fCacheDoClusterPrefetch
! true if cache is prefetching whole clusters
Definition: TTree.h:127
#define SafeDelete(p)
Definition: RConfig.h:509
virtual Long64_t GetCacheSize() const
Definition: TTree.h:372
virtual TObjArray * GetListOfBranches()
Definition: TTree.h:407
Helper class to iterate over cluster of baskets.
Definition: TTree.h:234
TVirtualTreePlayer * fPlayer
! Pointer to current Tree player
Definition: TTree.h:121
Fill Area Attributes class.
Definition: TAttFill.h:19
void ImportClusterRanges(TTree *fromtree)
Appends the cluster range information stored in &#39;fromtree&#39; to this tree, including the value of fAuto...
Definition: TTree.cxx:6039
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...
Definition: TTree.cxx:7768
#define ClassDef(name, id)
Definition: Rtypes.h:320
virtual Long64_t GetSelectedRows()
Definition: TTree.h:430
TTreeFormula * GetVar(Int_t i)
Definition: TTree.h:440
virtual Long64_t GetReadEvent() const
Definition: TTree.h:427
virtual Long64_t CopyEntries(TTree *tree, Long64_t nentries=-1, Option_t *option="")
Copy nentries from given tree to this tree.
Definition: TTree.cxx:3343
virtual Int_t SetBranchAddress(const char *bname, void *add, TBranch **ptr=0)
Change branch address, dealing with clone trees properly.
Definition: TTree.cxx:7898
Int_t fNfill
! Local for EntryLoop
Definition: TTree.h:101
virtual void SetObject(const char *name, const char *title)
Change the name and title of this tree.
Definition: TTree.cxx:8722
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:29
virtual Long64_t GetEntryNumberWithBestIndex(Long64_t major, Long64_t minor=0) const
Return entry number corresponding to major and minor number.
Definition: TTree.cxx:5573
virtual Long64_t GetReadEntry() const
Definition: TTree.h:426
virtual const char * GetAlias(const char *aliasName) const
Returns the expanded value of the alias. Search in the friends if any.
Definition: TTree.cxx:4944
virtual Long64_t LoadTree(Long64_t entry)
Set current entry.
Definition: TTree.cxx:6139
Bool_t fCacheUserSet
! true if the cache setting was explicitly given by user
Definition: TTree.h:128
virtual void SetTreeIndex(TVirtualIndex *index)
The current TreeIndex is replaced by the new index.
Definition: TTree.cxx:8784
Int_t fMaxClusterRange
! Memory allocated for the cluster range.
Definition: TTree.h:87
static Int_t GetBranchStyle()
Static function returning the current branch style.
Definition: TTree.cxx:5099
virtual Int_t BuildIndex(const char *majorname, const char *minorname="0")
Build a Tree Index (default is TTreeIndex).
Definition: TTree.cxx:2494
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.
Definition: TTree.cxx:9163
virtual TBranch * BranchOld(const char *name, const char *classname, void *addobj, Int_t bufsize=32000, Int_t splitlevel=1)
Create a new TTree BranchObject.
Definition: TTree.cxx:1934
virtual Int_t GetNbranches()
Definition: TTree.h:421
virtual TVirtualPerfStats * GetPerfStats() const
Definition: TTree.h:425
virtual void Show(Long64_t entry=-1, Int_t lenmax=20)
Print values of all active leaves for entry.
Definition: TTree.cxx:8823
TBranchRef * fBranchRef
Branch supporting the TRefTable (if any)
Definition: TTree.h:123
virtual Int_t MakeClass(const char *classname=0, Option_t *option="")
Generate a skeleton analysis class for this tree.
Definition: TTree.cxx:6281
virtual TClusterIterator GetClusterIterator(Long64_t firstentry)
Return an iterator over the cluster of baskets starting at firstentry.
Definition: TTree.cxx:5161
static TClass * GetClass(const std::type_info &typeinfo)
Forward to TROOT::GetClass().
Definition: TBuffer.cxx:307
UInt_t fFriendLockStatus
! Record which method is locking the friend recursion
Definition: TTree.h:124
Double_t * fArray
Definition: TArrayD.h:30
Int_t fTimerInterval
Timer interval in milliseconds.
Definition: TTree.h:82
virtual TFriendElement * AddFriend(const char *treename, const char *filename="")
Add a TFriendElement to the list of friends.
Definition: TTree.cxx:1234
const Bool_t kIterForward
Definition: TCollection.h:40
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.
Definition: TTree.cxx:7671
Long64_t fFlushedBytes
Number of auto-flushed bytes.
Definition: TTree.h:80
TObject * GetNotify() const
Definition: TTree.h:422
UInt_t fNEntriesSinceSorting
! Number of entries processed since the last re-sorting of branches
Definition: TTree.h:130
Bool_t operator!=(const TDatime &d1, const TDatime &d2)
Definition: TDatime.h:104
virtual Double_t GetMaximum(const char *columname)
Return maximum of column with name columname.
Definition: TTree.cxx:5916
virtual void RemoveFriend(TTree *)
Remove a friend from the list of friends.
Definition: TTree.cxx:7554
virtual Double_t * GetW() const =0
virtual TList * GetUserInfo()
Return a pointer to the list containing user objects associated to this tree.
Definition: TTree.cxx:6023
std::atomic< Long64_t > fIMTZipBytes
! Zip bytes for the IMT flush baskets.
Definition: TTree.h:141
virtual void SetCacheLearnEntries(Int_t n=10)
Interface to TTreeCache to set the number of entries for the learning phase.
Definition: TTree.cxx:8363
A branch containing and managing a TRefTable for TRef autoloading.
Definition: TBranchRef.h:29
Long64_t fZipBytes
Total number of bytes in all branches after compression.
Definition: TTree.h:78
Long64_t fDebugMax
! Last entry number to debug
Definition: TTree.h:104
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.
Definition: TTree.cxx:1440
TBranch * Branch(const char *name, char *address, const char *leaflist, Int_t bufsize=32000)
Definition: TTree.h:302
TTreeFormula * GetVar4()
Definition: TTree.h:448
Used to pass a selection expression to the Tree drawing routine.
Definition: TTreeFormula.h:58
virtual TTree * GetTree() const
Definition: TTree.h:434
virtual void SetEventList(TEventList *list)
This function transfroms the given TEventList into a TEntryList The new TEntryList is owned by the TT...
Definition: TTree.cxx:8567
virtual Int_t GetTreeNumber() const
Definition: TTree.h:436
void UseCurrentStyle()
Replace current attributes by current style.
Definition: TTree.cxx:9175
A specialized string object used for TTree selections.
Definition: TCut.h:25
A doubly linked list.
Definition: TList.h:44
virtual TBranch * GetBranch(const char *name)
Return pointer to the branch with the given name in this tree or its friends.
Definition: TTree.cxx:4985
Bool_t fCacheDoAutoInit
! true if cache auto creation or resize check is needed
Definition: TTree.h:126
Int_t SetBranchAddress(const char *bname, T **add, TBranch **ptr=0)
Definition: TTree.h:509
TH1 * GetHistogram()
Definition: TTree.h:398
Int_t GetType() const
Definition: TDataType.h:68
TObjArray fLeaves
Direct pointers to individual branch leaves.
Definition: TTree.h:111
Long64_t * fClusterRangeEnd
[fNClusterRange] Last entry of a cluster range.
Definition: TTree.h:94
Using a TBrowser one can browse all ROOT objects.
Definition: TBrowser.h:37
Int_t fNClusterRange
Number of Cluster range in addition to the one defined by &#39;AutoFlush&#39;.
Definition: TTree.h:86
virtual Long64_t GetEntryNumber(Long64_t entry) const
Return entry number corresponding to entry.
Definition: TTree.cxx:5548
TEntryList * fEntryList
! Pointer to event selection list (if one)
Definition: TTree.h:114
virtual Long64_t GetAutoSave() const
Definition: TTree.h:367
virtual TTreeFormula * GetVar4() const =0
TBranch * Branch(const char *name, int address, const char *leaflist, Int_t bufsize=32000)
Definition: TTree.h:312
virtual Long64_t GetChainOffset() const
Definition: TTree.h:375
virtual Int_t Write(const char *name=0, Int_t option=0, Int_t bufsize=0)
Write this object to the current directory.
Definition: TTree.cxx:9212
virtual void SetEstimate(Long64_t nentries=1000000)
Set number of entries to estimate variable limits.
Definition: TTree.cxx:8608
virtual Double_t * GetV2() const =0
ESetBranchAddressStatus
Definition: TTree.h:209
Long64_t fChainOffset
! Offset of 1st entry of this Tree in a TChain
Definition: TTree.h:97
~TFriendLock()
Restore the state of tree the same as before we set the lock.
Definition: TTree.cxx:511
Long64_t * fClusterSize
[fNClusterRange] Number of entries in each cluster for a given range.
Definition: TTree.h:95
virtual Double_t * GetV2()
Definition: TTree.h:454
virtual Long64_t GetEntryNumberWithIndex(Long64_t major, Long64_t minor=0) const
Return entry number corresponding to major and minor number.
Definition: TTree.cxx:5593
virtual void SetUpdate(Int_t freq=0)
Definition: TTree.h:568
TVirtualPerfStats * fPerfStats
! pointer to the current perf stats object
Definition: TTree.h:119
TObject * operator*() const
Return current object or nullptr.
Definition: TTree.h:618
Long64_t fReadEntry
! Number of the entry being processed
Definition: TTree.h:98
virtual TVirtualIndex * GetTreeIndex() const
Definition: TTree.h:435
virtual ~TTree()
Destructor.
Definition: TTree.cxx:872
Collection abstract base class.
Definition: TCollection.h:63
TList * fUserInfo
pointer to a list of user objects associated to this Tree
Definition: TTree.h:120
TObjArray fBranches
List of Branches.
Definition: TTree.h:110
virtual void SetNotify(TObject *obj)
Sets the address of the object to be notified when the tree is loaded.
Definition: TTree.h:559
unsigned int UInt_t
Definition: RtypesCore.h:42
friend TBranch * TTreeBranchImpRef(TTree *tree, const char *branchname, TClass *ptrClass, EDataType datatype, void *addobj, Int_t bufsize, Int_t splitlevel)
Int_t GetEntriesFast() const
Definition: TObjArray.h:64
TFile * GetCurrentFile() const
Return pointer to the current file.
Definition: TTree.cxx:5172
Int_t Debug() const
Definition: TTree.h:353
Manages buffers for branches of a Tree.
Definition: TBasket.h:34
TTreeFormula * GetVar3()
Definition: TTree.h:446
A TEventList object is a list of selected events (entries) in a TTree.
Definition: TEventList.h:31
virtual TLeaf * FindLeaf(const char *name)
Find leaf..
Definition: TTree.cxx:4667
TArrayI fIndex
Index of sorted values.
Definition: TTree.h:116
The ROOT global object gROOT contains a list of all defined classes.
Definition: TClass.h:75
virtual Long64_t GetEstimate() const
Definition: TTree.h:386
Bool_t fIMTEnabled
! true if implicit multi-threading is enabled for this tree
Definition: TTree.h:129
virtual TBranchRef * GetBranchRef() const
Definition: TTree.h:369
virtual void ResetBranchAddress(TBranch *)
Tell all of our branches to set their addresses to zero.
Definition: TTree.cxx:7642
ROOT::TIOFeatures GetIOFeatures() const
Returns the current set of IO settings.
Definition: TTree.cxx:5756
Bool_t fDirection
iteration direction
Definition: TTree.h:594
virtual Double_t * GetVal(Int_t) const =0
TEventList * fEventList
! Pointer to event selection list (if one)
Definition: TTree.h:113
virtual TBranch * Bronch(const char *name, const char *classname, void *addobj, Int_t bufsize=32000, Int_t splitlevel=99)
Create a new TTree BranchElement.
Definition: TTree.cxx:2264
virtual Bool_t GetBranchStatus(const char *branchname) const
Return status of branch with name branchname.
Definition: TTree.cxx:5084
Long64_t fMaxEntries
Maximum number of entries in case of circular buffers.
Definition: TTree.h:88
void AddClone(TTree *)
Add a cloned tree to our list of trees to be notified whenever we change our branch addresses or when...
Definition: TTree.cxx:1146
char GetNewlineValue(std::istream &inputStream)
Determine which newline this file is using.
Definition: TTree.cxx:7191
virtual Int_t DropBranchFromCache(const char *bname, Bool_t subbranches=kFALSE)
Remove the branch with name &#39;bname&#39; from the Tree cache.
Definition: TTree.cxx:1069
void InitializeBranchLists(bool checkLeafCount)
Divides the top-level branches into two vectors: (i) branches to be processed sequentially and (ii) b...
Definition: TTree.cxx:5469
virtual Int_t * GetIndex()
Definition: TTree.h:400
Long64_t fAutoSave
Autosave tree when fAutoSave entries written or -fAutoSave (compressed) bytes produced.
Definition: TTree.h:91
Bool_t IsFolder() const
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects)...
Definition: TTree.h:463
const Bool_t kFALSE
Definition: RtypesCore.h:88
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...
Definition: TTree.cxx:2697
virtual void SetDebug(Int_t level=1, Long64_t min=0, Long64_t max=9999999)
Set the debug level and the debug range.
Definition: TTree.cxx:8426
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.
Definition: TTree.cxx:7058
TBranch * Branch(const char *name, T *obj, Int_t bufsize=32000, Int_t splitlevel=99)
Definition: TTree.h:335
long Long_t
Definition: RtypesCore.h:50
virtual void DropBuffers(Int_t nbytes)
Drop branch buffers to accommodate nbytes below MaxVirtualsize.
Definition: TTree.cxx:4296
virtual Int_t GetTimerInterval() const
Definition: TTree.h:431
virtual void SetMakeClass(Int_t make)
Set all the branches in this TTree to be in decomposed object mode (also known as MakeClass mode)...
Definition: TTree.cxx:8665
virtual void SetWeight(Double_t w=1, Option_t *option="")
Set tree weight.
Definition: TTree.cxx:8812
TBranch * Branch(const char *name, const char *classname, T *obj, Int_t bufsize=32000, Int_t splitlevel=99)
Definition: TTree.h:320
A PolyMarker is defined by an array on N points in a 2-D space.
Definition: TPolyMarker.h:31
virtual void SetDirectory(TDirectory *dir)
Change the tree&#39;s directory.
Definition: TTree.cxx:8464
virtual Long64_t LoadTreeFriend(Long64_t entry, TTree *T)
Load entry on behalf of our master tree, we may use an index.
Definition: TTree.cxx:6231
virtual Int_t GetUpdate() const
Definition: TTree.h:437
Long64_t fMaxVirtualSize
Maximum total size of buffers kept in memory.
Definition: TTree.h:90
Int_t GetEvent(Long64_t entry=0, Int_t getall=0)
Definition: TTree.h:388
virtual void SetEntryList(TEntryList *list, Option_t *opt="")
Set an EntryList.
Definition: TTree.cxx:8544
double Double_t
Definition: RtypesCore.h:55
Long64_t GetStartEntry()
Definition: TTree.h:266
Long64_t GetCacheAutoSize(Bool_t withDefault=kFALSE) const
Used for automatic sizing of the cache.
Definition: TTree.cxx:5111
virtual Double_t * GetW()
Definition: TTree.h:459
Int_t * fArray
Definition: TArrayI.h:30
Long64_t fTotBytes
Total number of bytes in all branches before compression.
Definition: TTree.h:77
std::vector< TBranch * > fSeqBranches
! Branches to be processed sequentially when IMT is on
Definition: TTree.h:132
Describe directory structure in memory.
Definition: TDirectory.h:34
virtual void SetPerfStats(TVirtualPerfStats *perf)
Set perf stats.
Definition: TTree.cxx:8767
std::vector< std::pair< Long64_t, TBranch * > > fSortedBranches
! Branches to be processed in parallel when IMT is on, sorted by average task time ...
Definition: TTree.h:131
TDirectory * GetDirectory() const
Definition: TTree.h:381
EStatusBits
Definition: TObject.h:57
void SortBranchesByTime()
Sorts top-level branches by the last average task time recorded per branch.
Definition: TTree.cxx:5517
int type
Definition: TGX11.cxx:120
unsigned long long ULong64_t
Definition: RtypesCore.h:70
virtual Long64_t ReadFile(const char *filename, const char *branchDescriptor="", char delimiter=' ')
Create or simply read branches from filename.
Definition: TTree.cxx:7172
Long64_t fAutoFlush
Auto-flush tree when fAutoFlush entries written or -fAutoFlush (compressed) bytes produced...
Definition: TTree.h:92
virtual Bool_t GetImplicitMT()
Definition: TTree.h:399
virtual void ResetBranchAddresses()
Tell all of our branches to drop their current objects and allocate new ones.
Definition: TTree.cxx:7652
virtual void Draw(Option_t *opt)
Default Draw method for all objects.
Definition: TTree.h:355
TCanvas * style()
Definition: style.C:1
int nentries
Definition: THbookFile.cxx:89
EDataType
Definition: TDataType.h:28
Int_t fDefaultEntryOffsetLen
Initial Length of fEntryOffset table in the basket buffers.
Definition: TTree.h:85
virtual Option_t * GetOption() const
Definition: TObject.h:120
The TH1 histogram class.
Definition: TH1.h:56
virtual Long64_t GetChainEntryNumber(Long64_t entry) const
Definition: TTree.h:374
Long64_t fEstimate
Number of entries to estimate histogram limits.
Definition: TTree.h:93
UInt_t fMethodBit
Definition: TTree.h:169
Helper class to prevent infinite recursion in the usage of TTree Friends.
Definition: TTree.h:165
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.
Definition: TClass.cxx:2887
virtual Int_t SetCacheSize(Long64_t cachesize=-1)
Set maximum size of the file cache .
Definition: TTree.cxx:8186
Int_t fDebug
! Debug level
Definition: TTree.h:102
Int_t SetCacheSizeAux(Bool_t autocache=kTRUE, Long64_t cacheSize=0)
Set the size of the file cache and create it if possible.
Definition: TTree.cxx:8212
Array of doubles (64 bits per element).
Definition: TArrayD.h:27
virtual Long64_t GetEntries() const
Definition: TTree.h:382
virtual void SetBasketSize(const char *bname, Int_t buffsize=16000)
Set a branch&#39;s basket size.
Definition: TTree.cxx:7871
virtual TBranch * BranchRef()
Build the optional branch supporting the TRefTable.
Definition: TTree.cxx:2188
virtual void ResetAfterMerge(TFileMergeInfo *)
Resets the state of this TTree after a merge (keep the customization but forget the data)...
Definition: TTree.cxx:7611
virtual Bool_t SetAlias(const char *aliasName, const char *aliasFormula)
Set a tree variable alias.
Definition: TTree.cxx:7713
Int_t fFileNumber
! current file number (if file extensions)
Definition: TTree.h:107
Mother of all ROOT objects.
Definition: TObject.h:37
Int_t fUpdate
Update frequency for EntryLoop.
Definition: TTree.h:84
Long64_t operator()()
Definition: TTree.h:275
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.
Definition: TTree.cxx:1701
Long64_t fEntries
Number of entries.
Definition: TTree.h:75
TList * fClones
! List of cloned trees which share our addresses
Definition: TTree.h:122
virtual Int_t MakeSelector(const char *selector=0, Option_t *option="")
Generate skeleton selector class for this tree.
Definition: TTree.cxx:6496
TBuffer * GetTransientBuffer(Int_t size)
Returns the transient buffer currently used by this TTree for reading/writing baskets.
Definition: TTree.cxx:964
virtual Long64_t GetTotBytes() const
Definition: TTree.h:433
virtual Long64_t GetSelectedRows() const =0
Class implementing or helping the various TTree cloning method.
Definition: TTreeCloner.h:38
virtual Double_t * GetVal(Int_t i)
Definition: TTree.h:450
Abstract base class defining the interface for the plugins that implement Draw, Scan, Process, MakeProxy, etc.
Long64_t GetDebugMax() const
Definition: TTree.h:379
Definition: file.py:1
A TFriendElement TF describes a TTree object TF in a file.
virtual Long64_t GetZipBytes() const
Definition: TTree.h:461
Long64_t fNextEntry
Definition: TTree.h:240
Iterator on all the leaves in a TTree and its friend.
Definition: TTree.h:588
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);.
Definition: TTree.cxx:2272
virtual void RecursiveRemove(TObject *obj)
Make sure that obj (which is being deleted or will soon be) is no longer referenced by this TTree...
Definition: TTree.cxx:7484
virtual void SetCircular(Long64_t maxEntries)
Enable/Disable circularity for this tree.
Definition: TTree.cxx:8390
virtual void Reset(Option_t *option="")
Reset baskets, buffers and entries count in all branches and leaves.
Definition: TTree.cxx:7580
virtual void SetClusterPrefetch(Bool_t enabled)
Definition: TTree.h:532
Definition: tree.py:1
std::atomic< Long64_t > fTotalBuffers
! Total number of bytes in branch buffers
Definition: TTree.h:99
virtual void SetTimerInterval(Int_t msec=333)
Definition: TTree.h:565
virtual TTreeFormula * GetVar2() const =0
TObject * fNotify
! Object to be notified when loading a Tree
Definition: TTree.h:108
virtual Int_t SetCacheEntryRange(Long64_t first, Long64_t last)
interface to TTreeCache to set the cache entry range
Definition: TTree.cxx:8329
TTreeFormula * GetVar1()
Definition: TTree.h:442
A TTree object has a header with a name and a title.
Definition: TTree.h:70
#define gDirectory
Definition: TDirectory.h:213
TVirtualIndex * fTreeIndex
Pointer to the tree Index (if any)
Definition: TTree.h:117
TFriendLock & operator=(const TFriendLock &)
Assignment operator.
Definition: TTree.cxx:498
Int_t SetBranchAddressImp(TBranch *branch, void *addr, TBranch **ptr)
Change branch address, dealing with clone trees properly.
Definition: TTree.cxx:7955
TEventList * GetEventList() const
Definition: TTree.h:392
virtual void SetDefaultEntryOffsetLen(Int_t newdefault, Bool_t updateExisting=kFALSE)
Update the default value for the branch&#39;s fEntryOffsetLen.
Definition: TTree.cxx:8438
Definition: first.py:1
virtual void DropBaskets()
Remove some baskets from memory.
Definition: TTree.cxx:4283
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...
Definition: TTree.cxx:5764
virtual void SetImplicitMT(Bool_t enabled)
Definition: TTree.h:542
static Long64_t fgMaxTreeSize
Maximum size of a file containing a Tree.
Definition: TTree.h:135
virtual Long64_t SetEntries(Long64_t n=-1)
Change number of entries in the tree.
Definition: TTree.cxx:8509
virtual TFile * ChangeFile(TFile *file)
Called by TTree::Fill() when file has reached its maximum fgMaxTreeSize.
Definition: TTree.cxx:2584
static TTree * MergeTrees(TList *list, Option_t *option="")
Static function merging the trees in the TList into a new tree.
Definition: TTree.cxx:6525
A TTree is a list of TBranches.
Definition: TBranch.h:59
A TSelector object is used by the TTree::Draw, TTree::Scan, TTree::Process to navigate in a TTree and...
Definition: TSelector.h:33
A List of entry numbers in a TTree or TChain.
Definition: TEntryList.h:25
virtual Int_t AddBranchToCache(const char *bname, Bool_t subbranches=kFALSE)
Add branch with name bname to the Tree cache.
Definition: TTree.cxx:986
const Bool_t kTRUE
Definition: RtypesCore.h:87
Int_t fPacketSize
! Number of entries in one packet for parallel root
Definition: TTree.h:100
const Int_t n
Definition: legend1.C:16
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.
Definition: TTree.cxx:7106
virtual void SetScanField(Int_t n=50)
Definition: TTree.h:564
Line Attributes class.
Definition: TAttLine.h:18
virtual Double_t * GetV1()
Definition: TTree.h:452
Int_t SetBranchAddress(const char *bname, T *add, TBranch **ptr=0)
Definition: TTree.h:518
TIOFeatures fIOFeatures
IO features to define for newly-written baskets and branches.
Definition: TTree.h:105
static constexpr Long64_t kMaxEntries
Definition: TTree.h:206
char name[80]
Definition: TGX11.cxx:109
TFriendLock(const TFriendLock &)
Copy constructor.
Definition: TTree.cxx:488
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...
Definition: TTree.cxx:5205
virtual void SetName(const char *name)
Change the name of this tree.
Definition: TTree.cxx:8693
A Chain Index.
Definition: TChainIndex.h:39
virtual void PrintCacheStats(Option_t *option="") const
Print statistics about the TreeCache for this tree.
Definition: TTree.cxx:6980
void MoveReadCache(TFile *src, TDirectory *dir)
Move a cache from a file to the current file in dir.
Definition: TTree.cxx:6663
virtual void CopyAddresses(TTree *, Bool_t undo=kFALSE)
Set branch addresses of passed tree equal to ours.
Definition: TTree.cxx:3121
virtual TObjArray * GetListOfLeaves()
Definition: TTree.h:408
virtual Long64_t GetMaxVirtualSize() const
Definition: TTree.h:419
Long64_t fSavedBytes
Number of autosaved bytes.
Definition: TTree.h:79
Long64_t fCacheSize
! Maximum size of file buffers
Definition: TTree.h:96
virtual const char * GetFriendAlias(TTree *) const
If the &#39;tree&#39; is a friend, this method returns its alias name.
Definition: TTree.cxx:5714
virtual void SetChainOffset(Long64_t offset=0)
Definition: TTree.h:530
virtual Long64_t AutoSave(Option_t *option="")
AutoSave tree header every fAutoSave bytes.
Definition: TTree.cxx:1386
virtual Double_t * GetIndexValues()
Definition: TTree.h:401
virtual Double_t * GetV1() const =0
std::atomic< Long64_t > fIMTTotBytes
! Total bytes for the IMT flush baskets
Definition: TTree.h:140