8 #include "HepMC3TestUtils.h"
11 std::ifstream inputA(
"inputConvert2.hepmc" );
12 if( !inputA )
return 1;
14 std::shared_ptr<HepMC3::GenRunInfo> run =std::make_shared<HepMC3::GenRunInfo>();
20 if( !evt.is_valid() )
break;
23 outputA.write_event(*evt3);
28 return COMPARE_ASCII_FILES(
"frominputConvert2.hepmc",
"inputConvert2.hepmc");
GenEvent I/O serialization for structured text files.
Stores event-related information.
HepMC3::GenEvent * ConvertHepMCGenEvent_2to3(const HepMC::GenEvent &evt, std::shared_ptr< HepMC3::GenRunInfo > run)
Definition of class WriterAsciiHepMC2.
int main(int argc, char **argv)
Implementation of compatibility layer (in-memory conversion functions) between HePMC2 and HepMC3...