Hi Pietro, Use TDirectory::GetAll TFile f("myfile.root"); f.ReadAll(); Now all your objects are in memory Rene Brun On Sat, 9 Oct 2004, Pietro Govoni wrote: > Dear ROOTers, > > I saved a lot of histograms in a TFile and I would like to retrieve them > all, in an authomatic way, without inserting their name in the code. > > I made a lot of tries, all efforless. > I've been trying using TFile::GetList, TFile::GetListOfKeys and all the > associated code I found. > > Does anybody have a working piece of code that I could fetch? > > Thank you very much > > pietro >
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:09 MET