21 for (UInt_t i=0; i<8; i++) {
31 fPixelFromFebCh[i*8+0] = i*8;
32 fPixelFromFebCh[i*8+1] = i*8+4;
33 fPixelFromFebCh[i*8+2] = i*8+2;
34 fPixelFromFebCh[i*8+3] = i*8+6;
35 fPixelFromFebCh[i*8+4] = i*8+1;
36 fPixelFromFebCh[i*8+5] = i*8+5;
37 fPixelFromFebCh[i*8+6] = i*8+3;
38 fPixelFromFebCh[i*8+7] = i*8+7;
43 WCalHit::WCalHit(UChar_t p_ch, Int_t p_adc, Float_t p_adcNonLin, Float_t p_adcNonLinCorr, Float_t p_adcCalib) :
47 fAdcNonLin(p_adcNonLin),
48 fAdcNonLinCorr(p_adcNonLinCorr),
52 for (UInt_t i=0; i<8; i++) {
53 fPixelFromFebCh[i*8+0] = i*8;
54 fPixelFromFebCh[i*8+1] = i*8+4;
55 fPixelFromFebCh[i*8+2] = i*8+2;
56 fPixelFromFebCh[i*8+3] = i*8+6;
57 fPixelFromFebCh[i*8+4] = i*8+1;
58 fPixelFromFebCh[i*8+5] = i*8+5;
59 fPixelFromFebCh[i*8+6] = i*8+3;
60 fPixelFromFebCh[i*8+7] = i*8+7;
73 void WCalHit::Clear(Option_t * )
80 TObject::operator=(orig);
83 fChannel = orig.fChannel;
86 fAdcCal = orig.fAdcCal;
91 void WCalHit::SetXY() {
93 if (fChannel >= 0 && fChannel < 64) {
94 UInt_t v_pixelID = fPixelFromFebCh[(Int_t)fChannel];
100 fXpixel = (v_pixelID)%8;
101 fYpixel = -((v_pixelID)/8);