Reading all branches of TTree from file

Hi Vangi,
I’m afraid C++ itself does not allow what you want.

Depending on your actual use-case you might want to check out pyROOT (ROOT’s python interface): something similar to what you ask is available, see e.g. here.

Or check out the link I shared in my previous answer for higher-level ways of reading TTrees in C++.

Cheers,
Enrico