Logo ROOT   6.16/01
Reference Guide
List of all members | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
TTree::TClusterIterator Class Reference

Helper class to iterate over cluster of baskets.

Definition at line 246 of file TTree.h.

Public Member Functions

Long64_t GetNextEntry ()
 
Long64_t GetStartEntry ()
 
Long64_t Next ()
 Move on to the next cluster and return the starting entry of this next cluster. More...
 
Long64_t operator() ()
 
Long64_t Previous ()
 Move on to the previous cluster and return the starting entry of this previous cluster. More...
 

Protected Member Functions

 TClusterIterator (TTree *tree, Long64_t firstEntry)
 Regular constructor. More...
 

Private Member Functions

Long64_t GetEstimatedClusterSize ()
 Estimate the cluster size. More...
 

Private Attributes

Int_t fClusterRange
 
Long64_t fEstimatedSize
 
Long64_t fNextEntry
 
Long64_t fStartEntry
 
TTreefTree
 

Friends

class TTree
 

#include <TTree.h>

Constructor & Destructor Documentation

◆ TClusterIterator()

TTree::TClusterIterator::TClusterIterator ( TTree tree,
Long64_t  firstEntry 
)
protected

Regular constructor.

TTree is not set as const, since we might modify if it is a TChain.

Definition at line 527 of file TTree.cxx.

Member Function Documentation

◆ GetEstimatedClusterSize()

Long64_t TTree::TClusterIterator::GetEstimatedClusterSize ( )
private

Estimate the cluster size.

In almost all cases, this quickly returns the size of the auto-flush in the TTree.

However, in the case where the cluster size was not fixed (old files and case where autoflush was explicitly set to zero), we need estimate a cluster size in relation to the size of the cache.

After this value is calculated once for the TClusterIterator, it is cached and reused in future calls.

Definition at line 578 of file TTree.cxx.

◆ GetNextEntry()

Long64_t TTree::TClusterIterator::GetNextEntry ( )
inline

Definition at line 284 of file TTree.h.

◆ GetStartEntry()

Long64_t TTree::TClusterIterator::GetStartEntry ( )
inline

Definition at line 279 of file TTree.h.

◆ Next()

Long64_t TTree::TClusterIterator::Next ( )

Move on to the next cluster and return the starting entry of this next cluster.

Definition at line 615 of file TTree.cxx.

◆ operator()()

Long64_t TTree::TClusterIterator::operator() ( )
inline

Definition at line 288 of file TTree.h.

◆ Previous()

Long64_t TTree::TClusterIterator::Previous ( )

Move on to the previous cluster and return the starting entry of this previous cluster.

Definition at line 659 of file TTree.cxx.

Friends And Related Function Documentation

◆ TTree

friend class TTree
friend

Definition at line 258 of file TTree.h.

Member Data Documentation

◆ fClusterRange

Int_t TTree::TClusterIterator::fClusterRange
private

Definition at line 250 of file TTree.h.

◆ fEstimatedSize

Long64_t TTree::TClusterIterator::fEstimatedSize
private

Definition at line 253 of file TTree.h.

◆ fNextEntry

Long64_t TTree::TClusterIterator::fNextEntry
private

Definition at line 252 of file TTree.h.

◆ fStartEntry

Long64_t TTree::TClusterIterator::fStartEntry
private

Definition at line 251 of file TTree.h.

◆ fTree

TTree* TTree::TClusterIterator::fTree
private

Definition at line 249 of file TTree.h.

Libraries for TTree::TClusterIterator:
[legend]

The documentation for this class was generated from the following files: