diff --git a/src/GlueXUserEventInformation.cc b/src/GlueXUserEventInformation.cc index 1aaa7ed..b678259 100644 --- a/src/GlueXUserEventInformation.cc +++ b/src/GlueXUserEventInformation.cc @@ -494,11 +494,7 @@ int GlueXUserEventInformation::GetRunNo() hddm_s::PhysicsEventList pev = fOutputRecord->getPhysicsEvents(); return pev(0).getRunNo(); } - G4RunManager *runmgr = G4RunManager::GetRunManager(); - if (runmgr != 0 && runmgr->GetCurrentRun() != 0) { - return runmgr->GetCurrentRun()->GetRunID(); - } - return 0; + return HddmOutput::getRunNo(); } long int GlueXUserEventInformation::GetEventNo()