29 packet_nr = ( buffer[1] << 16) | buffer[2];
37 for (
int j = 0;
j < 3;
j++)
47 for (
int j = 0;
j < 3;
j++)
57 unsigned long long tag = 0;
61 for (
int j = 0;
j < 3;
j++)
68 if ( tag != 0x123456789abcdef)
70 cout <<
" wrong tag " << hex <<
"0x" << tag << dec << endl;
79 for (
int j = 0;
j < 3;
j++)
88 for (
int j = 0;
j < 3;
j++)
101 for (
int j = 0;
j < 3;
j++)
108 if ( tag != 0xdeadbeefba5eba11)
110 cout <<
" wrong tag " << hex <<
"0x" << tag << dec << endl;
115 unsigned long long s;
117 for ( i = 27 ; i < 27+3*4*64; i+=4)
120 for (
int j = 0;
j < 3;
j++)
146 if ( i < 0 || i >=64 || k < 0 || k >2)
return 0;
154 if ( strcmp(what,
"BCO") == 0)
159 if ( strcmp(what,
"TriggerVector") == 0)
164 if ( strcmp(what,
"TriggerInput") == 0)
169 if ( strcmp(what,
"BunchNumber") == 0)
174 if ( i < 0 || i >=64)
return 0;
176 if ( strcmp(what,
"TRIGGERRAW") == 0)
181 if ( strcmp(what,
"TRIGGERLIVE") == 0)
186 if ( strcmp(what,
"TRIGGERSCALED") == 0)
199 os <<
"packet nr: " <<
iValue(0) << endl;
200 os <<
"Beam Clock: " <<
"0x" << hex <<
lValue(0,
"BCO") << dec <<
" " <<
lValue(0,
"BCO") << endl;
201 os <<
"Trigger Input: " <<
"0x" << hex <<
lValue(0,
"TriggerInput") << dec <<
" " <<
lValue(0,
"TriggerInput") << endl;
202 os <<
"Trigger Vector: " <<
"0x" << hex <<
lValue(0,
"TriggerVector") << dec <<
" " <<
lValue(0,
"TriggerVector") << endl;
203 os <<
"Bunch Number: " <<
lValue(0,
"BunchNumber") << endl << endl;
204 os <<
"Trg # raw live scaled" << endl;
205 os <<
"----------------------------------------------------------------" << endl;
209 for (i = 0; i< 64; i++)
213 os << setw(3) << i <<
" ";
214 os <<
" " << setw(18) <<
lValue(i,0)
215 <<
" " << setw(18) <<
lValue(i,1)
216 <<
" " << setw(18) <<
lValue(i,2)