8 #include "HepMC3TestUtils.h"
12 if(inputA.failed())
return 1;
13 std::ofstream outputA(
"frominputConvert1.hepmc");
14 outputA.precision(12);
15 HepMC::write_HepMC_IO_block_begin(outputA);
16 while( !inputA.failed() )
19 inputA.read_event(evt);
20 if( inputA.failed() ) {
21 printf(
"End of file reached. Exit.\n");
31 HepMC::write_HepMC_IO_block_end( outputA );
33 return COMPARE_ASCII_FILES(
"frominputConvert1.hepmc",
"inputConvert1.hepmc");
Parser for HepMC2 I/O files.
Definition of class ReaderAsciiHepMC2.
Stores event-related information.
HepMC::GenEvent * ConvertHepMCGenEvent_3to2(const HepMC3::GenEvent &evt)
Please note the HEPMC_HAS_CENTRALITY should be defined externaly.
int main(int argc, char **argv)
Implementation of compatibility layer (in-memory conversion functions) between HePMC2 and HepMC3...