Import Geant4 11.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2021-12-10 14:46:44 +01:00
committed by Ben Morgan
parent 6399a014b6
commit 80e2389dd8
3932 changed files with 202519 additions and 246221 deletions
@@ -115,6 +115,7 @@ void XrayTelAnalysis::book(G4bool isMaster)
// Get/create analysis manager
G4AnalysisManager* man = G4AnalysisManager::Instance();
man->SetDefaultFileType("root");
// Open an output file: it is done in master and threads. The
// printout is done only by the master, for tidyness
@@ -153,8 +154,7 @@ void XrayTelAnalysis::finish(G4bool isMaster)
G4AnalysisManager* man = G4AnalysisManager::Instance();
man->Write();
man->CloseFile();
// Complete clean-up
delete G4AnalysisManager::Instance();
man->Clear();
if (!isMaster)
return;