25 int *
p =
new int [42];
27 for (
int i = 0; i < 41; i++ )
29 p[i] = SubeventData[i];
43 if ( ch < 0 || ch >40 )
return 0;
57 if ( strcmp(what,
"ASICENABLED") == 0 )
59 if ( ich <0 || ich >=24)
return 0;
64 if ( strcmp(what,
"UDPHEADER1") == 0 )
69 if ( strcmp(what,
"UDPHEADER2") == 0 )
75 if ( strcmp(what,
"VTHHIGH") == 0 )
77 if ( ich < 0 || ich >= 6*24)
return 0;
81 if ( strcmp(what,
"VTHLOW") == 0 )
83 if ( ich < 0 || ich >= 6*24)
return 0;
87 if ( strcmp(what,
"CLOCKPHASE") == 0 )
92 if ( strcmp(what,
"UDPTIMEOUT") == 0 )
97 if ( strcmp(what,
"CLOCKCORRECTION") == 0 )
102 if ( strcmp(what,
"FIRMWAREVERSION") == 0 )
118 os <<
" Firmware version: 0x" << hex <<
iValue(0,
"FIRMWAREVERSION") << dec << std::endl;
119 os <<
" Enabled Chips: 0x" << hex <<
iValue(1) << dec << std::endl;
120 os <<
" UDP Header 1: 0x" << hex <<
iValue(0,
"UDPHEADER1") << dec <<
" " << setw(6) <<
iValue(0,
"UDPHEADER1") << std::endl;
121 os <<
" UDP Header 2: 0x" << hex <<
iValue(0,
"UDPHEADER2") << dec <<
" " << setw(6) <<
iValue(0,
"UDPHEADER2") << std::endl;
122 os <<
" UDP Timeout: " <<
iValue(0,
"UDPTIMEOUT") << std::endl;
123 os <<
" Clock Phase: 0x" << hex <<
iValue(0,
"CLOCKPHASE") << dec << std::endl;
124 os <<
" Clock Correction: 0x" << hex <<
iValue(0,
"CLOCKCORRECTION") << dec << std::endl;
130 os <<
" VTH Low (* = ASIC enabled) " << endl;
131 os <<
" row | T5 T4 T3 T2 T1 T0" << endl;
132 os <<
" ----+------------------------------------------" << endl;
136 for ( i = 23; i >= 20 ; i--)
139 os << std::setw(5) << row-- <<
" | ";
140 for ( k = i; k >= 0 ; k-=4)
143 os << std::setw(5) <<
iValue(k,
"VTHLOW");
144 if (
iValue(k,
"ASICENABLED") )
159 os <<
" VTH High (* = ASIC enabled) " << endl;
162 for ( i = 23; i >= 20 ; i--)
165 os << std::setw(5) << row-- <<
" | ";
166 for ( k = i; k >= 0 ; k-=4)
169 os << std::setw(5) <<
iValue(k,
"VTHHIGH");
170 if (
iValue(k,
"ASICENABLED") )
183 os <<
" ( as seen on the motherboard with towers up )" << std::endl << std::endl;