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++)
89 if (idx >=1024) idx=0;
93 for ( c = 0; c < 8; c++)
96 for ( i = 0; i < 1024; i++)
98 current_wave[
i][chip*8+
c] = p->
iValue(i,chip*8+c) - base[
idx][chip*9+
c];
100 if (idx >=1024) idx=0;
107 for ( i = 0; i < 1024; i++)
109 current_wave[
i][32+chip] = p->
iValue(i,32+chip) - base[
idx][chip*9+8];
111 if (idx >=1024) idx=0;
121 if ( sample < 0 || sample >1023 || channel < 0 || channel > 35)
return 0;
122 return current_wave[sample][
channel];
129 if ( sample < 0 || sample >1023 || channel < 0 || channel > 35)
return 0;
130 return current_time[sample][channel < 32 ? channel/8 : channel-32];