I’ve never had more than a billion entries in a TTree, but indeed that looks like a terrible potential trap. I suggest that in the next version of ROOT, this default is changed to std::numeric_limits<Long64_t>::max() or “-1” which does all the entries in the TTree.