35 const char* fBank =
"OMCM" ;
40 int found =
event.FindBank(fBank, &bankLength, &bankType, &pdata);
44 printf(
"Dumping bank %s in hex\n",fBank);
45 for (
int j = 0; j < bankLength; j++)
46 printf(
"0x%08x%c", ((uint32_t*)pdata)[j], (j%10==9)?
'\n':
' ');
48 printf(
"Dumping bank %s in dec\n",fBank);
49 for (
int j = 0; j < bankLength; j++)
50 printf(
" %8d%c", ((uint32_t*)pdata)[j], (j%10==9)?
'\n':
' ');
74 int eventNum = ((uint32_t*)pdata)[1];
75 int spillNum = ((uint32_t*)pdata)[2] & 0xFFFF;
76 int trigBits = (((uint32_t*)pdata)[2] >> 16) & 0xFFFF;
77 const char* trigType =
"";
82 trigType =
"Beam spill";
85 if (trigBits == trigBeam) {
87 printf(
" eventNum %d, spillNum %d, trigBits 0x%04x, %s\n",eventNum,spillNum,trigBits,trigType);
90 printf(
"Can't find bank %s\n",fBank);