{ char fnam[128] = "histograms_trackanal.root"; TFile f1(fnam); TList * hist_list = (TList*)f1.Get("hist_list"); TList * hist2d_list = (TList*)f1.Get("hist2d_list"); Int_t Idx = hist_list->GetSize(); TH1F * hist[Idx+1]; cout<<"1D histograms: "<At(k); Idx = hist2d_list->GetSize(); TH1F * hist2d[Idx+1]; cout<<"2D histograms: "<At(k); }