Entry range in TNtupleD

Please read tips for efficient and successful posting and posting code

ROOT Version: V7
Platform: Ubuntu 18.04
_Compiler:gcc & g++

How to print the entry range (first entry, last entry) for each of the clusters of the processed TNTuple data set?

if with clusters you mean the TTree clusters, there is a handy tree->Print("clusters") function, or you can use auto it = tree->GetClusterIterator(0) and iterate over the TClusterIterator.


But through Tcluster it will print only next and start entry. What about first and last entry?

I am not sure I understand the question, but you can call Next() on the TClusterIterator until you have iterated on all clusters.

1 Like

Ok @eguiraud Thank you!