4 #define HBD_MAX_MODULES 4
51 while ( pos < dlength - 10)
54 for ( i = 0; i< 10; i++)
56 if ( (k[pos] & 0xF0000000) != 0x80000000 )
66 if ( (k[pos] & 0xF00FF000) == 0x800FF000 )
72 int log_mod_nr = k[
pos] & 0xf;
73 int l1_trig_nr = k[pos+1] & 0xfff;
74 int beam_clock = k[pos+2] & 0xfff;
75 int phys_mod_nr = k[pos+3] & 0x1f;
83 if ( log_mod_nr >= HBD_MAX_MODULES)
85 std::cout << __FILE__ <<
" " << __LINE__
86 <<
" wrong logical module number " << log_mod_nr << std::endl;
110 while ( (k[pos] & 0xF0002000) == 0x40002000 )
112 int adc = ( k[
pos] & 0xfff);
113 int f_channr = (( k[
pos] >>16 ) & 0x3f);
114 int f_modnr = (( k[
pos] >>22 ) & 0
x3);
121 while ( (k[pos] & 0xF0002000) == 0x40000000 )
123 int channr = (( k[
pos] >>16 ) & 0x3f);
124 int modnr = (( k[
pos] >>22 ) & 0
x3);
125 if ( channr != f_channr || f_modnr != modnr )
131 adc = ( k[
pos] & 0xfff);
140 if ( (k[pos] & 0xF0000000) == 0x20000000 )
155 if (is < 0 || is >= HBD_NSAMPLES)
return 0;
175 if (strcmp(what,
"TRIGGER") == 0)
187 else if (strcmp(what,
"BCLK") == 0)
201 else if (strcmp(what,
"MODULEID") == 0)
214 else if (strcmp(what,
"NRMODULES") == 0)
240 os <<
" Number of Modules: " <<
SETW(8) <<
iValue(0,
"NRMODULES") << std::endl;
242 for (i = 0; i <
iValue(0,
"NRMODULES"); i++)
244 os <<
" Module # " << std::setw(2) << i
245 <<
" Trigger: " <<
SETW(8) <<
iValue(i,
"TRIGGER")
246 <<
" Beam Clock: " <<
SETW(8) <<
iValue(i,
"BCLK")
247 <<
" Module Id: " <<
SETW(8) <<
iValue(i,
"MODULEID")
251 for (i = 0; i <
iValue(0,
"NRMODULES") * 48 ; i++)
253 os << std::setw(5) << i <<
" | " ;
256 os << std::setw(5) <<
iValue(i,j);