]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
closing output file removed from CreateG4Geometry into a new CloseOutFile() method
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 9 Oct 2000 11:02:59 +0000 (11:02 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 9 Oct 2000 11:02:59 +0000 (11:02 +0000)
TGeant4/TG4GeometryManager.cxx

index 5c5616506454a5aea3e9febc6a080365fe4e8825..a98bc3dd59eca6dfff18c9744ec17ac4d19af56a 100644 (file)
@@ -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.