33 for ( chip = 0; chip < 4; chip++)
35 for ( i = 0; i < 1024; i++)
58 base [index][chip*9 + 0] = adccorr[0];
59 base [index][chip*9 + 1]= adccorr[1];
60 base [index][chip*9 + 2]= adccorr[2];
61 base [index][chip*9 + 3]= adccorr[3];
62 base [index][chip*9 + 4]= adccorr[4];
63 base [index][chip*9 + 5]= adccorr[5];
64 base [index][chip*9 + 6]= adccorr[6];
65 base [index][chip*9 + 7]= adccorr[7];
66 base [index][chip*9 + 8]= adccorr[8];
67 timevec[index][chip] = timecorr;
78 for ( chip = 0; chip < 4; chip++)
81 int cell = p->
iValue(chip,
"INDEXCELL");
85 for ( i = 0; i < 1024; i++)
87 current_time[i][chip] = timevec[
idx][chip];
88 if (idx >=1024) idx=0;
92 for ( c = 0; c < 8; c++)
95 for ( i = 0; i < 1024; i++)
97 current_wave[i][chip*8+
c] = p->
iValue(i,chip*8+c) -
base[
idx][chip*9+
c];
99 if (idx >=1024) idx=0;
118 if ( sample < 0 || sample >1023 || channel < 0 || channel > 31)
return 0;
119 return current_wave[sample][channel];
124 if ( sample < 0 || sample >1023 || channel < 0 || channel > 31)
return 0;
125 return current_wave[sample][channel/8];