diff --git a/DDG4/src/Geant4InputAction.cpp b/DDG4/src/Geant4InputAction.cpp index ea852a26aca6968f3e2db96a4f38af9c1909bb8e..ed699f350332a3c6b65955bd7bce864488ffd2b8 100644 --- a/DDG4/src/Geant4InputAction.cpp +++ b/DDG4/src/Geant4InputAction.cpp @@ -143,6 +143,9 @@ void Geant4InputAction::operator()(G4Event* event) { Geant4PrimaryEvent* prim = evt.extension<Geant4PrimaryEvent>(); int result = readParticles(event->GetEventID(),primaries); + + event->SetEventID( m_firstEvent + event->GetEventID() ); + if ( result != Geant4EventReader::EVENT_READER_OK ) { // handle I/O error, but how? return; }