51 unsigned short *sdata = (
unsigned short *) &SubeventData[3];
80 for ( i = 0; i < 2*(dlength-4); i+=4 )
84 unsigned long long x64 = ntohs( sdata[i+3]);
87 y = ntohs( sdata[i+2]);
91 y = ntohs( sdata[i+1]);
99 unsigned long long t = x64 & 0xfffffffffff
L;
100 unsigned int crystalid = ( x64 >> 52) & 0x1f;
101 unsigned int block = ( x64 >> 57) & 0x1f;
102 unsigned int rfgate = ( x64 >> 62) & 0x1;
103 unsigned int cardiac = ( x64 >> 63) & 0x1;
135 if ( strcmp(what,
"SAMPLES") == 0 )
140 if ( strcmp(what,
"BLOCKID") == 0 )
142 if ( ich < 0 || ich >=
samples)
return 0;
146 if ( strcmp(what,
"CRYSTALID") == 0 )
148 if ( ich < 0 || ich >=
samples)
return 0;
152 if ( strcmp(what,
"RFGATE") == 0 )
154 if ( ich < 0 || ich >=
samples)
return 0;
158 if ( strcmp(what,
"CARDIAC") == 0 )
160 if ( ich < 0 || ich >=
samples)
return 0;
173 if ( ich < 0 || ich >=
samples)
return 0;
182 if ( ich < 0 || ich >=
samples)
return 0;
191 int is =
iValue(0,
"SAMPLES");
195 os <<
" sample B id C id time ( " << is <<
" Samples )" << std::endl;
197 for ( i = 0; i < is ; i++)
199 int prec = os.precision();
201 os << std::setw(5) << i <<
" | ";
203 os << std::setw(4) <<
iValue(i,
"BLOCKID") <<
" ";
204 os << std::setw(4) <<
iValue(i,
"CRYSTALID") <<
" ";
205 os << std::setw(24) << std::setprecision(24) << hex <<
tval[i]
206 << dec << std::setprecision(prec) <<
" " ;
207 os << std::setw(24) << std::setprecision(24) << hex <<
lValue(i) << dec
208 << std::setprecision(prec) ;