30int main (
int argc,
char** argv)
35 std::cerr <<
"usage: " << argv[0] <<
" <file>" << std::endl;
40 std::fstream in(argv[1], std::ios::in|std::ios::binary);
42 std::cerr <<
"File `" << argv[1] <<
"' does not exist?!" << std::endl;
47 while(in.good() && !in.eof() && sevent != 0xaa1234aa) {
48 in.read((
char*)&sevent, 4);
50 if (sevent == 0xaa1234aa) in.seekg(in.tellg()-(std::streampos)4);
65 std::cout <<
"Event " << fe.
lvl1_id() <<
" is Ok." << std::endl;
68 std::cerr << std::endl
69 <<
"Uncaught eformat issue: " << ex.
what() << std::endl;
70 std::cout <<
"Trying to continue..." << std::endl;
74 std::cerr << std::endl
75 <<
"Uncaught ERS issue: " << ex.
what() << std::endl;
79 catch (std::exception& ex) {
80 std::cerr << std::endl
81 <<
"Uncaught std exception: " << ex.
what() << std::endl;
86 std::cerr << std::endl <<
"Uncaught unknown exception" << std::endl;