]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
added call to TG4GeometryManager to CloseOutFile(); added protection from reading...
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 9 Oct 2000 11:06:11 +0000 (11:06 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 9 Oct 2000 11:06:11 +0000 (11:06 +0000)
AliGeant4/AliMoreModulesConstruction.cxx

index 64fa1fb145f11a4c49226ecc6ab12a897a9b2213..d3a7f7a5e784a76eb8b1b91e74e86bc86dd5b63a 100644 (file)
@@ -182,9 +182,17 @@ void AliMoreModulesConstruction::Construct()
       G4String dataFilePath = fModuleConstructionVector[i]->GetDataFilePath();
 
       if (readGeometry) {
-        // create G3 geometry from g3calls.dat
-        pGeometryManager->SetWriteGeometry(false);
-        pGeometryManager->ReadG3Geometry(dataFilePath);
+        // TG4GeometryManager uses g3tog4 methods for reading
+       // g3calls.dat files - as these methods do not fill name map
+       // they cannot be used for constructing more modules
+       // together
+       //
+        // pGeometryManager->SetWriteGeometry(false);
+        // pGeometryManager->ReadG3Geometry(dataFilePath);
+       
+       G4String text = "AliMoreModulesConstruction::Construct - Limitation:\n";
+       text = text + "    Reading g3calls.dat is not implemented.";
+       AliGlobals::Exception(text);
       }
       else {               
         // set geometry output stream for this module
@@ -199,6 +207,9 @@ void AliMoreModulesConstruction::Construct()
 
         // construct G3 geometry
         module->CreateGeometry();
+
+        if (writeGeometry) 
+          pGeometryManager->CloseOutFile();
       }        
 
       // all logical volumes will be made sensitive if any