36 |
// << All the trees required by the user are made friend. |
// << All the trees required by the user are made friend. |
37 |
TChain *T = event->GetPamTree(l,treelist); |
TChain *T = event->GetPamTree(l,treelist); |
38 |
// << In the following the TChain can be used similarly to a TTree. |
// << In the following the TChain can be used similarly to a TTree. |
39 |
|
|
40 |
|
// |
41 |
|
TChain *RUNT = event->GetRunTree(dir,list); // << get the run information and store it in RUNT |
42 |
|
|
43 |
// |
// |
44 |
// 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: |
45 |
// TTree* LoadPamTrees(TFile *f); |
// TTree* LoadPamTrees(TFile *f); |
55 |
// |
// |
56 |
event->Clear(); |
event->Clear(); |
57 |
T->GetEntry(i); |
T->GetEntry(i); |
58 |
|
|
59 |
|
if ( event->UpdateRunInfo(RUNT,i) ) printf(" New RUN at entry = %llu RUN ID is %u NEVENTS is %u \n",i,event->GetRunInfo()->ID,event->GetRunInfo()->NEVENTS); |
60 |
|
|
61 |
if(event->GetTrkLevel2()->GetNTracks() > 1)cout << " Ev "<<i << " multiple tracks: "<< event->GetTrkLevel2()->GetNTracks() << endl; |
if(event->GetTrkLevel2()->GetNTracks() > 1)cout << " Ev "<<i << " multiple tracks: "<< event->GetTrkLevel2()->GetNTracks() << endl; |
62 |
|
|