diff --git a/DDG4/lcio/Geant4Output2LCIO.cpp b/DDG4/lcio/Geant4Output2LCIO.cpp index d49b99665d4bc8e3ad2c3502109d6385658cd15f..85b70aa94d66003a843ea4e68a3cc7e4c85e47c5 100644 --- a/DDG4/lcio/Geant4Output2LCIO.cpp +++ b/DDG4/lcio/Geant4Output2LCIO.cpp @@ -152,17 +152,19 @@ Geant4Output2LCIO::~Geant4Output2LCIO() { } // Callback to store the Geant4 run information -void Geant4Output2LCIO::beginRun(const G4Run* ) { +void Geant4Output2LCIO::beginRun(const G4Run* run) { if ( 0 == m_file && !m_output.empty() ) { G4AutoLock protection_lock(&action_mutex); m_file = lcio::LCFactory::getInstance()->createLCWriter(); m_file->open(m_output,lcio::LCIO::WRITE_NEW); } + + saveRun(run); } /// Callback to store the Geant4 run information void Geant4Output2LCIO::endRun(const G4Run* run) { - saveRun(run); + // saveRun(run); } /// Commit data at end of filling procedure