Import Geant4 10.7.0 source tree

This commit is contained in:
Gabriele Cosmo
2020-12-04 12:30:43 +01:00
parent 67ba86d073
commit dab42d2018
3770 changed files with 226369 additions and 286486 deletions
@@ -55,7 +55,7 @@ HadrontherapyRunAction::HadrontherapyRunAction()
/////////////////////////////////////////////////////////////////////////////
HadrontherapyRunAction::~HadrontherapyRunAction()
{
//delete G4AnalysisManager::Instance();
delete G4AnalysisManager::Instance();
}
/////////////////////////////////////////////////////////////////////////////
@@ -108,9 +108,10 @@ void HadrontherapyRunAction::EndOfRunAction(const G4Run*)
rbe->StoreRBE();
}
analysisManager->Write();
analysisManager->CloseFile();
if (analysisManager->IsOpenFile()) {
analysisManager->Write();
analysisManager->CloseFile();
}
}
/////////////////////////////////////////////////////////////////////////////
void HadrontherapyRunAction::AddEMProcess()