7 #include "HepMC3TestUtils.h"
8 using namespace HepMC3;
12 if(inputA.failed())
return 1;
14 if(outputA.failed())
return 2;
15 while( !inputA.failed() )
18 inputA.read_event(evt);
19 if( inputA.failed() ) {
20 printf(
"End of file reached. Exit.\n");
23 outputA.write_event(evt);
30 if(inputB.failed())
return 3;
32 if(outputB.failed())
return 4;
33 while( !inputB.failed() )
36 inputB.read_event(evt);
37 if( inputB.failed() ) {
38 printf(
"End of file reached. Exit.\n");
41 outputB.write_event(evt);
46 return COMPARE_ASCII_FILES(
"fromfrominputIO2.hepmc",
"inputIO2.hepmc");
GenEvent I/O serialization for structured text files.
Definition of class WriterRootTree.
Definition of class ReaderRootTree.
Parser for HepMC2 I/O files.
Definition of class ReaderAsciiHepMC2.
Stores event-related information.
GenEvent I/O serialization for root files based on root TTree.
Definition of class WriterAsciiHepMC2.
GenEvent I/O parsing and serialization for root files based on root TTree.
int main(int argc, char **argv)
Definition of class GenEvent.