11#include "HepMC3TestUtils.h"
16 if(inputA.failed())
return 1;
18 if(outputA.failed())
return 2;
19 auto optionsA = outputA.get_options();
20 optionsA[
"float_printf_specifier"] =
"g";
21 outputA.set_options(optionsA);
22 while( !inputA.failed() )
25 inputA.read_event(evt);
26 if( inputA.failed() ) {
27 printf(
"End of file reached. Exit.\n");
30 outputA.write_event(evt);
38 if(inputB.failed())
return 3;
40 if(outputB.failed())
return 4;
41 auto optionsB = outputB.get_options();
42 optionsB[
"float_printf_specifier"] =
"g";
43 outputB.set_options(optionsB);
44 while( !inputB.failed() )
47 inputB.read_event(evt);
48 if( inputB.failed() ) {
49 printf(
"End of file reached. Exit.\n");
52 outputB.write_event(evt);
57 return COMPARE_ASCII_FILES(
"fromfrominputIO8.hepmc",
"inputIO8.hepmc");
Definition of class GenEvent.
Definition of class ReaderAsciiHepMC2.
Definition of class ReaderAscii.
Definition of class WriterAsciiHepMC2.
Definition of class WriterAscii.
Stores event-related information.
Parser for HepMC2 I/O files.
GenEvent I/O parsing for structured text files.
GenEvent I/O serialization for structured text files.
GenEvent I/O serialization for structured text files.