Fastest way to loop over TTree's and entries

Attach your current source code for inspection.

BTW. In principle, any automatically generated “analysis skeleton” source code file contains some notes on how to make the “for” loop fast (often using the TTree::SetBranchStatus).