Parent Directory | Revision Log | Patch
revision 1.4 by mocchiut, Thu Jul 6 09:03:27 2006 UTC | revision 1.5 by mocchiut, Fri Jul 14 14:06:16 2006 UTC | |
---|---|---|
# | Line 217 void ToFLevel2::GetMatrix(Int_t notrack, | Line 217 void ToFLevel2::GetMatrix(Int_t notrack, |
217 | pmt_id = (trk->pmtadc).At(i); | pmt_id = (trk->pmtadc).At(i); |
218 | // | // |
219 | GetPMTIndex(pmt_id,hh,kk); | GetPMTIndex(pmt_id,hh,kk); |
220 | adc[hh][kk] = (trk->dedx).At(i); | adc[kk][hh] = (trk->dedx).At(i); |
221 | // | // |
222 | }; | }; |
223 | // | // |
# | Line 227 void ToFLevel2::GetMatrix(Int_t notrack, | Line 227 void ToFLevel2::GetMatrix(Int_t notrack, |
227 | // | // |
228 | GetPMTIndex(pmt->pmt_id,hh,kk); | GetPMTIndex(pmt->pmt_id,hh,kk); |
229 | // | // |
230 | tdc[hh][kk] = pmt->tdc_tw; | tdc[kk][hh] = pmt->tdc_tw; |
231 | // | // |
232 | }; | }; |
233 | // | // |
# | Line 298 TString ToFLevel2::GetPMTName(Int_t ind) | Line 298 TString ToFLevel2::GetPMTName(Int_t ind) |
298 | }; | }; |
299 | ||
300 | ||
301 | void ToFLevel2::GetPMTIndex(Int_t ind, Int_t hb, Int_t ch){ | void ToFLevel2::GetPMTIndex(Int_t ind, Int_t &hb, Int_t &ch){ |
302 | // | // |
303 | short tof[4][24] = { | short tof[4][24] = { |
304 | {4, 4, 4, 4, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 2, 3, 3, 3, 3, 4}, | {4, 4, 4, 4, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 2, 3, 3, 3, 3, 4}, |
# | Line 311 void ToFLevel2::GetPMTIndex(Int_t ind, I | Line 311 void ToFLevel2::GetPMTIndex(Int_t ind, I |
311 | while (k < 24){ | while (k < 24){ |
312 | Int_t j = 0; | Int_t j = 0; |
313 | while (j < 2){ | while (j < 2){ |
314 | /* tofEvent->tdc[ch][hb] */ | |
/* tofEvent->tdc[ch][hb] */ | ||
315 | if( ind == 2*k + j ){ | if( ind == 2*k + j ){ |
316 | ch = tof[2*j][k] - 1; | ch = tof[2*j][k] - 1; |
317 | hb = tof[2*j + 1][k] - 1; | hb = tof[2*j + 1][k] - 1; |
318 | break; | return; |
319 | }; | }; |
320 | j++; | j++; |
321 | }; | }; |
|
ViewVC Help | |
Powered by ViewVC 1.1.23 |