Looping over histograms

Hi,

you can get the list of keys of your file and loop on them:

for (auto&& keyAsObj : file->GetListOfKeys()){
 auto key = (TKey*) keyAsObj;
 cout << key->GetName() << " " << key->GetClassName() << endl;
}

Cheers,
Danilo