15#include "eformat/eformat.h"
44int main (
int argc,
char** argv)
49 std::cerr <<
"usage: " << argv[0] <<
" <file1> <file2>"
51 std::cerr <<
"OBS: The event order should be the same on both files"
57 size_t event_counter = 0;
58 std::fstream in1(argv[1], std::ios::in|std::ios::binary);
59 std::fstream in2(argv[2], std::ios::in|std::ios::binary);
75 size_t s1 = get_robs(event1, robp1,
MAX_ROBS);
76 size_t s2 = get_robs(event2, robp2,
MAX_ROBS);
78 std::cerr <<
"The number of ROB's of event " << event_counter
79 <<
" is different in file `" << argv[1]
80 <<
"' (" << s1 <<
") and in file `" << argv[2]
81 <<
"' (" << s2 <<
"). Skipping comparison." << std::endl;
88 for (
size_t i=0; i<s1; ++i) {
92 std::cerr <<
"! ROB[" << i <<
"]" << std::endl
99 std::cerr <<
"Event #" << fe1.
lvl1_id() <<
" differ." << std::endl;
103 std::cerr << std::endl
104 <<
"Uncaught eformat issue: " << ex.
what() << std::endl;
105 std::cout <<
"Trying to continue..." << std::endl;
109 std::cerr << std::endl
110 <<
"Uncaught ERS issue: " << ex.
what() << std::endl;
115 catch (std::exception& ex) {
116 std::cerr << std::endl
117 <<
"Uncaught std exception: " << ex.
what() << std::endl;
123 std::cerr << std::endl <<
"Uncaught unknown exception" << std::endl;
131 std::cerr <<
"In the absence of remarks, files do NOT differ." << std::endl;
const char * what() const
Human description message.
int cmp_source_id(const uint32_t *p1, const uint32_t *p2)
const size_t MAX_EVENT_SIZE