76 |
PMT = new TClonesArray("ToFPMT",12); |
PMT = new TClonesArray("ToFPMT",12); |
77 |
ToFTrk = new TClonesArray("ToFTrkVar",2); |
ToFTrk = new TClonesArray("ToFTrkVar",2); |
78 |
// |
// |
79 |
memset(tof_j_flag, 0, 6*sizeof(Int_t)); |
this->Clear(); |
80 |
|
// |
81 |
}; |
}; |
82 |
|
|
83 |
void ToFLevel2::Clear(){ |
void ToFLevel2::Clear(){ |
85 |
ToFTrk->Clear(); |
ToFTrk->Clear(); |
86 |
PMT->Clear(); |
PMT->Clear(); |
87 |
memset(tof_j_flag, 0, 6*sizeof(Int_t)); |
memset(tof_j_flag, 0, 6*sizeof(Int_t)); |
88 |
|
unpackError = 0; |
89 |
// |
// |
90 |
}; |
}; |
91 |
|
|
336 |
|
|
337 |
l2->ntoftrk = ToFTrk->GetEntries(); |
l2->ntoftrk = ToFTrk->GetEntries(); |
338 |
for(Int_t j=0;j<l2->ntoftrk;j++){ |
for(Int_t j=0;j<l2->ntoftrk;j++){ |
339 |
l2->toftrkseqno[j]= ((ToFTrkVar*)ToFTrk->At(j))->toftrkseqno; |
l2->toftrkseqno[j]= ((ToFTrkVar*)ToFTrk->At(j))->trkseqno; |
340 |
l2->npmttdc[j]= ((ToFTrkVar*)ToFTrk->At(j))->npmttdc; |
l2->npmttdc[j]= ((ToFTrkVar*)ToFTrk->At(j))->npmttdc; |
341 |
for(Int_t i=0;i<l2->npmttdc[j];i++) |
for(Int_t i=0;i<l2->npmttdc[j];i++) |
342 |
l2->pmttdc[i][j] = ((ToFTrkVar*)ToFTrk->At(j))->pmttdc.At(i); |
l2->pmttdc[i][j] = ((ToFTrkVar*)ToFTrk->At(j))->pmttdc.At(i); |