Loop over multiple ttree in one root file at once

If you want to analyse all trees at one shot, you need to create a TChain and then run MakeClass on it.

If you want to analyse them one by one, you can easily reuse the current class (generated for a single tree) using its automatically generated “YourClass(TTree *tree)” constructor.