30 |
TList *l = event->GetListOfLevel2Files(dir,list); |
TList *l = event->GetListOfLevel2Files(dir,list); |
31 |
// << Hence a TChain is created from the list. |
// << Hence a TChain is created from the list. |
32 |
// << All the trees required by the user are made friend. |
// << All the trees required by the user are made friend. |
33 |
TChain *T = event->LoadPamTrees(l,treelist); |
TChain *T = event->GetPamTree(l,treelist); |
34 |
// << In the following the TChain can be used similarly to a TTree. |
// << In the following the TChain can be used similarly to a TTree. |
35 |
// |
// |
36 |
// NB! It is still possible to read a single file and get a TTree, by means of the methods: |
// NB! It is still possible to read a single file and get a TTree, by means of the methods: |
75 |
Double_t ctime = timer.CpuTime(); |
Double_t ctime = timer.CpuTime(); |
76 |
printf("RealTime=%f seconds, CpuTime=%f seconds\n",rtime,ctime); |
printf("RealTime=%f seconds, CpuTime=%f seconds\n",rtime,ctime); |
77 |
|
|
|
delete T; |
|
|
delete event; |
|
78 |
gSystem->ChangeDirectory(wd); |
gSystem->ChangeDirectory(wd); |
79 |
|
|
80 |
}; |
}; |