59int main(
int argc,
char* argv[])
62 std::cout <<
"Usage: " << argv[0] <<
" file.data nevts" << std::endl;
66 const uint32_t** m_sds =
new const uint32_t*[64];
67 const uint32_t** m_robs =
new const uint32_t*[256];
69 int nevts = atoi( argv[2] );
73 for (
int i = 0; i < nevts; ++i ) {
75 uint32_t* dataptr =
NULL;
82 std::cout << i <<
" >> run: " <<
f.
run_no() <<
" event: " <<
f.global_id() << std::endl;
85 int nsds =
f.children(m_sds, 64);
86 for (
int sdi = 0; sdi < nsds; ++sdi ) {
90 for (
int robi = 0; robi < nrobs; robi++) {
93 source_id_number <<= 8;
94 source_id_number >>= 24;
98 if ( source_id_number == 165 ) {
107 std::cout <<
"no ETS data found" << std::endl;
115 catch (std::exception& ex) {
116 std::cerr << std::endl <<
"Uncaught std exception: " << ex.what() << std::endl;
120 std::cerr << std::endl <<
"Uncaught unknown exception" << std::endl;