Import Geant4 11.0.0 source tree
This commit is contained in:
committed by
Ben Morgan
parent
6399a014b6
commit
80e2389dd8
@@ -89,7 +89,11 @@ void RunAction::FillPerEvent(G4double EAbs, G4double EGap,
|
||||
void RunAction::EndOfRunAction(const G4Run* aRun)
|
||||
{
|
||||
G4int NbOfEvents = aRun->GetNumberOfEvent();
|
||||
if (NbOfEvents == 0) return;
|
||||
if (NbOfEvents == 0) {
|
||||
// close open files
|
||||
fHistoManager->Save();
|
||||
return;
|
||||
}
|
||||
|
||||
//compute statistics: mean and rms
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user