14 TFile *f1 = TFile::Open(
"hsimple.root");
15 TIter keyList(f1->GetListOfKeys());
18 c1.Print(
"hsimple.ps[");
19 while ((key = (TKey*)keyList())) {
20 TClass *cl = gROOT->GetClass(key->GetClassName());
21 if (!cl->InheritsFrom(
"TH1"))
continue;
22 TH1 *h = (TH1*)key->ReadObj();
24 c1.Print(
"hsimple.ps");
26 c1.Print(
"hsimple.ps]");