hepmc

Subversion Repositories:
Compare Path: Rev
With Path: Rev
/trunk/ @ 112  →  /trunk/ @ 113
/trunk/test/testHepMCExtended.dat
@@ -1,4 +1,5 @@
 
HepMC::IO_ExtendedAscii-Version 2.01.02
HepMC::IO_ExtendedAscii-START_EVENT_LISTING
E 9 51 -1.0000000000000000e+00 -1.0000000000000000e+00 -1.0000000000000000e+00 20 0 309 1 2 0 0
H 0 0 0 0 0 0 0 0 0 0 0 0 0
/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/ChangeLog
@@ -1,4 +1,9 @@
 
2007-07-10 Lynn Garren
 
* HepMC/Version.h: add the ability to print the HepMC version number
* src/IO_ExtendedAscii.cc: write HepMC version number
 
2007-07-09 Lynn Garren
 
* src/IO_ExtendedAscii.cc: read/write beam particle information
/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";
}
//
/trunk/HepMC/Makefile.am
@@ -40,6 +40,7 @@
enable_if.h \
is_arithmetic.h \
HepMC_CLHEP20.h \
Version.h \
defs.h
 
# Identify generated file(s) to be removed when 'make clean' is requested: