Helper class to iterate over cluster of baskets.
- Note
- In contrast to class TListIter, looping here must NOT be done using
while (iter())
or while (iter.Next())
that would lead to an infinite loop, but rather using while( (auto clusterStart = iter()) < tree->GetEntries() )
.
- See also
- TTree::GetClusterIterator
Definition at line 281 of file TTree.h.
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 605 of file TTree.cxx.