--- PamelaLevel2/doc/examples/example3.C 2006/08/04 13:33:32 1.1 +++ PamelaLevel2/doc/examples/example3.C 2006/10/09 12:37:52 1.2 @@ -30,7 +30,7 @@ TList *l = event->GetListOfLevel2Files(dir,list); // << Hence a TChain is created from the list. // << All the trees required by the user are made friend. - TChain *T = event->LoadPamTrees(l,treelist); + TChain *T = event->GetPamTree(l,treelist); // << In the following the TChain can be used similarly to a TTree. // // NB! It is still possible to read a single file and get a TTree, by means of the methods: @@ -75,8 +75,6 @@ Double_t ctime = timer.CpuTime(); printf("RealTime=%f seconds, CpuTime=%f seconds\n",rtime,ctime); - delete T; - delete event; gSystem->ChangeDirectory(wd); };