Skip to content

Commit

Permalink
Merge pull request #176 from JeffersonLab/fix_run_number_confusion_bu…
Browse files Browse the repository at this point in the history
…g_rtj

* fetch the run number that is written in the output hddm file
  • Loading branch information
sdobbs authored Sep 4, 2020
2 parents c2006d1 + c22138d commit 49f42c3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/GlueXUserEventInformation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 49f42c3

Please sign in to comment.