From 08b8559d2efa1d1e4c811e2c3adc1e626438eb59 Mon Sep 17 00:00:00 2001 From: ivana Date: Mon, 9 Oct 2000 11:02:59 +0000 Subject: [PATCH] closing output file removed from CreateG4Geometry into a new CloseOutFile() method --- TGeant4/TG4GeometryManager.cxx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/TGeant4/TG4GeometryManager.cxx b/TGeant4/TG4GeometryManager.cxx index 5c561650645..a98bc3dd59e 100644 --- a/TGeant4/TG4GeometryManager.cxx +++ b/TGeant4/TG4GeometryManager.cxx @@ -948,9 +948,6 @@ G4VPhysicalVolume* TG4GeometryManager::CreateG4Geometry() // set the first entry in the G3Vol table Ggclos(); G3VolTableEntry* first = G3Vol.GetFirstVTE(); - - // close g3calls.dat - if (fWriteGeometry) fOutputManager->CloseFile(); // create G4 geometry G3toG4BuildTree(first,0); @@ -1048,6 +1045,15 @@ void TG4GeometryManager::OpenOutFile(G4String filePath) } +void TG4GeometryManager::CloseOutFile() +{ +// Closes output file. +// --- + + fOutputManager->CloseFile(); +} + + void TG4GeometryManager::PrintNameMap() { // Prints the map of volumes names to second names. -- 2.43.0