| /trunk/test/testMass.cc.in |
| @@ -13,6 +13,7 @@ |
| |
| #include "HepMC/IO_ExtendedAscii.h" |
| #include "HepMC/GenEvent.h" |
| #include "HepMC/Version.h" |
| |
| // define methods and classes used by this test |
| #include "IsGoodEvent.h" |
| @@ -29,6 +30,8 @@ |
| HepMC::IO_ExtendedAscii ascii_out("testHepMCExtended.dat",std::ios::out); |
| // declare an instance of the event selection predicate |
| IsGoodEvent is_good_event; |
| // send version to standard output |
| HepMC::version(); |
| //........................................EVENT LOOP |
| int icount=0; |
| int num_good_events=0; |
| /trunk/src/IO_ExtendedAscii.cc |
| @@ -11,6 +11,7 @@ |
| #include "HepMC/ParticleDataTable.h" |
| #include "HepMC/HeavyIon.h" |
| #include "HepMC/PdfInfo.h" |
| #include "HepMC/Version.h" |
| |
| namespace HepMC { |
| |
| @@ -61,6 +62,8 @@ |
| // write event listing key before first event only. |
| if ( !m_finished_first_event_io ) { |
| m_finished_first_event_io = 1; |
| m_file << "\n" << "HepMC::IO_ExtendedAscii-Version " |
| << versionName(); |
| m_file << "\n" << "HepMC::IO_ExtendedAscii-START_EVENT_LISTING\n"; |
| } |
| // |