32 |
npmtadc = 0; |
npmtadc = 0; |
33 |
pmttdc = TArrayI(48); |
pmttdc = TArrayI(48); |
34 |
pmtadc = TArrayI(48); |
pmtadc = TArrayI(48); |
35 |
|
tdcflag = TArrayI(48); // gf: 30 Nov 2006 |
36 |
|
adcflag = TArrayI(48); // gf: 30 Nov 2006 |
37 |
dedx = TArrayF(48); |
dedx = TArrayF(48); |
38 |
// |
// |
39 |
// |
// |
49 |
npmtadc = 0; |
npmtadc = 0; |
50 |
pmttdc.Reset(); |
pmttdc.Reset(); |
51 |
pmtadc.Reset(); |
pmtadc.Reset(); |
52 |
|
tdcflag.Reset(); // gf: 30 Nov 2006 |
53 |
|
adcflag.Reset(); // gf: 30 Nov 2006 |
54 |
dedx.Reset(); |
dedx.Reset(); |
55 |
// |
// |
56 |
memset(beta, 0, 13*sizeof(Float_t)); |
memset(beta, 0, 13*sizeof(Float_t)); |
67 |
npmtadc = t.npmtadc; |
npmtadc = t.npmtadc; |
68 |
(t.pmttdc).Copy(pmttdc); |
(t.pmttdc).Copy(pmttdc); |
69 |
(t.pmtadc).Copy(pmtadc); |
(t.pmtadc).Copy(pmtadc); |
70 |
|
(t.tdcflag).Copy(tdcflag); // gf: 30 Nov 2006 |
71 |
|
(t.adcflag).Copy(adcflag); // gf: 30 Nov 2006 |
72 |
(t.dedx).Copy(dedx); |
(t.dedx).Copy(dedx); |
73 |
// |
// |
74 |
memcpy(beta,t.beta,sizeof(beta)); |
memcpy(beta,t.beta,sizeof(beta)); |
82 |
PMT = new TClonesArray("ToFPMT",12); |
PMT = new TClonesArray("ToFPMT",12); |
83 |
ToFTrk = new TClonesArray("ToFTrkVar",2); |
ToFTrk = new TClonesArray("ToFTrkVar",2); |
84 |
// |
// |
85 |
memset(tof_j_flag, 0, 6*sizeof(Int_t)); |
this->Clear(); |
86 |
|
// |
87 |
}; |
}; |
88 |
|
|
89 |
void ToFLevel2::Clear(){ |
void ToFLevel2::Clear(){ |
91 |
ToFTrk->Clear(); |
ToFTrk->Clear(); |
92 |
PMT->Clear(); |
PMT->Clear(); |
93 |
memset(tof_j_flag, 0, 6*sizeof(Int_t)); |
memset(tof_j_flag, 0, 6*sizeof(Int_t)); |
94 |
|
unpackError = 0; |
95 |
// |
// |
96 |
}; |
}; |
97 |
|
|
342 |
|
|
343 |
l2->ntoftrk = ToFTrk->GetEntries(); |
l2->ntoftrk = ToFTrk->GetEntries(); |
344 |
for(Int_t j=0;j<l2->ntoftrk;j++){ |
for(Int_t j=0;j<l2->ntoftrk;j++){ |
345 |
l2->toftrkseqno[j]= ((ToFTrkVar*)ToFTrk->At(j))->toftrkseqno; |
l2->toftrkseqno[j]= ((ToFTrkVar*)ToFTrk->At(j))->trkseqno; |
346 |
l2->npmttdc[j]= ((ToFTrkVar*)ToFTrk->At(j))->npmttdc; |
l2->npmttdc[j]= ((ToFTrkVar*)ToFTrk->At(j))->npmttdc; |
347 |
for(Int_t i=0;i<l2->npmttdc[j];i++) |
for(Int_t i=0;i<l2->npmttdc[j];i++){ |
348 |
l2->pmttdc[i][j] = ((ToFTrkVar*)ToFTrk->At(j))->pmttdc.At(i); |
l2->pmttdc[i][j] = ((ToFTrkVar*)ToFTrk->At(j))->pmttdc.At(i); |
349 |
|
l2->tdcflag[i][j] = ((ToFTrkVar*)ToFTrk->At(j))->tdcflag.At(i); // gf: 30 Nov 2006 |
350 |
|
} |
351 |
for(Int_t i=0;i<13;i++) |
for(Int_t i=0;i<13;i++) |
352 |
l2->beta[i][j] = ((ToFTrkVar*)ToFTrk->At(j))->beta[i]; |
l2->beta[i][j] = ((ToFTrkVar*)ToFTrk->At(j))->beta[i]; |
353 |
|
|
354 |
l2->npmtadc[j]= ((ToFTrkVar*)ToFTrk->At(j))->npmtadc; |
l2->npmtadc[j]= ((ToFTrkVar*)ToFTrk->At(j))->npmtadc; |
355 |
for(Int_t i=0;i<l2->npmtadc[j];i++){ |
for(Int_t i=0;i<l2->npmtadc[j];i++){ |
356 |
l2->pmtadc[i][j] = ((ToFTrkVar*)ToFTrk->At(j))->pmtadc.At(i); |
l2->pmtadc[i][j] = ((ToFTrkVar*)ToFTrk->At(j))->pmtadc.At(i); |
357 |
|
l2->adcflag[i][j] = ((ToFTrkVar*)ToFTrk->At(j))->adcflag.At(i); // gf: 30 Nov 2006 |
358 |
l2->dedx[i][j] = ((ToFTrkVar*)ToFTrk->At(j))->dedx.At(i); |
l2->dedx[i][j] = ((ToFTrkVar*)ToFTrk->At(j))->dedx.At(i); |
359 |
} |
} |
360 |
for(Int_t i=0;i<3;i++){ |
for(Int_t i=0;i<3;i++){ |