75 int upperbits[10] = { 15,
86 _slot_nr = (SubeventData[0] & 0xffff) / 2;
87 _card_nr = (SubeventData[0] & 0xffff) % 2;
89 _clock = (SubeventData[1] & 0xffff) ;
90 _evt_nr = ((SubeventData[1] >> 16) & 0xffff) ;
101 int ia,
ib, iw, ijk, iturn;
105 for (ia = 0; ia < 20; ia++)
109 array[2*ia + 1][is] = ((k[(ia*
_nsamples) + is] >> 16 ) & 0xffff) ;
113 for (ia=0; ia<4; ia++) {
134 for (ia = 0; ia < 8; ia++)
137 for (iw = 0 ; iw < upperbits[ia] ; iw++)
154 ib = (iturn? iw-ib: iw+
ib);
198 return itrig_time[ch/13][(ch - 9)%13][sample];
210 if ( strcmp(what,
"CLOCK") == 0 )
215 if ( strcmp(what,
"EVTNR") == 0 )
220 if ( strcmp(what,
"SAMPLES") == 0 )
225 if ( strcmp(what,
"CHANNELS") == 0 )
230 if ( strcmp(what,
"SLOTNR") == 0 )
235 if ( strcmp(what,
"CARDNR") == 0 )
240 if ( strcmp(what,
"EVENCHECKSUM") == 0 )
245 if ( strcmp(what,
"ODDCHECKSUM") == 0 )
250 if ( strcmp(what,
"CALCEVENCHECKSUM") == 0 )
255 if ( strcmp(what,
"CALCODDCHECKSUM") == 0 )
260 if ( strcmp(what,
"EVENCHECKSUMOK") == 0 )
267 if ( strcmp(what,
"ODDCHECKSUMOK") == 0 )
283 os <<
"Evt Nr: " <<
iValue(0,
"EVTNR") << std::endl;
284 os <<
"Clock: " <<
iValue(0,
"CLOCK") << std::endl;
285 os <<
"Channels: " <<
iValue(0,
"CHANNELS") << std::endl;
286 os <<
"Samples: " <<
iValue(0,
"SAMPLES") << std::endl;
288 os <<
"Slot: " <<
iValue(0,
"SLOTNR") << std::endl;
289 os <<
"Card: " <<
iValue(0,
"CARDNR") << std::endl;
291 os <<
"Even chksum: 0x" << hex <<
iValue(0,
"EVENCHECKSUM") <<
" calculated: 0x" <<
iValue(0,
"CALCEVENCHECKSUM");
292 if (
iValue(0,
"EVENCHECKSUMOK") == 1) os <<
" ok" << endl;
293 else if (
iValue(0,
"EVENCHECKSUMOK") == 0) os <<
" **wrong" << endl;
295 os <<
"Odd chksum: 0x" << hex <<
iValue(0,
"ODDCHECKSUM") <<
" calculated: 0x" <<
iValue(0,
"CALCODDCHECKSUM");
296 if (
iValue(0,
"ODDCHECKSUMOK") == 1) os <<
" ok" << endl;
297 else if (
iValue(0,
"ODDCHECKSUMOK") == 0) os <<
" **wrong" << endl;
300 for (
int c = 0;
c < 4;
c++)
302 for (
int j = 0;
j < 13;
j++)
304 os << setw(4) <<
c <<
" " <<
j <<
" | ";
309 os << setw(6) <<
iValue(
s,
c*13 + j);
315 for (
int j = 0;
j < 8;
j++)
317 os << setw(4) << 25 <<
" " <<
j <<
" | ";
322 os << setw(6) <<
iValue(
s, 52 + j);