10 #ifndef BYTESTREAMCNVSVC_DUMPFRAGS
11 #define BYTESTREAMCNVSVC_DUMPFRAGS
25 std::cout <<
" ---FullEventFragment run number = "
26 <<
re->run_no() <<
" Size = " <<
re->fragment_size_word() << std::endl;
28 std::cout<<
" Global id "<<
re->global_id()<<std::endl;
29 std::cout<<
" Run type "<<
re->run_type()<<std::endl;
30 std::cout<<
" Lumi block "<<
re->lumi_block()<<std::endl;
31 std::cout<<
" level 1 id "<<
re->lvl1_id()<<std::endl;
32 std::cout<<
" Bunch crossing id "<<
re->bc_id()<<std::endl;
33 std::cout<<
" Bunch crossing time in seconds "<<
re->bc_time_seconds()<<std::endl;
34 std::cout<<
" Bunch crossing time nanoseconds offset "<<
re->bc_time_nanoseconds()<<std::endl;
35 std::cout<<
" Level 1 trigger type "<<
re->lvl1_trigger_type()<<std::endl;
40 std::cout <<
" Lvl1 trigger info , size = " <<
n <<std::endl;
43 std::cout <<
" "<< *
buffer;
47 std::cout << std::endl;
50 n =
re->nlvl2_trigger_info() ;
51 std::cout <<
" Lvl2 trigger info, size = " <<
n <<std::endl;
54 std::cout <<
" "<< *
buffer;
57 std::cout << std::endl;
60 n =
re->nevent_filter_info() ;
61 std::cout <<
" event filter trigger info, size = " <<
n <<std::endl;
64 std::cout <<
" "<< *
buffer;
67 std::cout << std::endl;
71 const size_t MAX_ROBFRAGMENTS = 2048;
75 size_t robcount =
re->children(robF,MAX_ROBFRAGMENTS);
76 if (robcount == MAX_ROBFRAGMENTS)
78 std::cout <<
"ERROR : ROB buffer overflow" << std::endl;
82 for (
size_t irob=0; irob<robcount; ++irob)
87 std::cout <<
" ROBFragment, src ID ="
88 << std::hex << rob.source_id()
89 <<
" size_word =" << rob.fragment_size_word() << std::endl;
92 std::cout <<
" RODFragment, src ID ="
93 << std::hex << rob.rod_source_id()
94 <<
" size_word =" << rob.rod_fragment_size_word() << std::endl;
95 std::cout <<
" RODFragment, run number ="
96 << std::dec << rob.rod_run_no() << std::endl;
98 if (rob.rod_fragment_size_word() >= rob.rod_header_size_word() + rob.rod_trailer_size_word()) {
100 rob.rod_data(rodPointer);
101 for(
size_t i=0;
i<rob.rod_ndata(); ++
i)
103 if (
i%10 == 0) std::cout << std::endl <<
" ";
104 std::cout << std::hex<< *rodPointer <<
" " ;
107 std::cout << std::endl <<
" Number of words in ROD = "
108 << rob.rod_ndata() << std::endl;
110 std::cout << std::endl <<
"WARNING : ROD has unexpected data size "
111 << rob.rod_ndata() <<
" and RODFragment size_word is too small!" << std::endl;