]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliMC.cxx
Temp.protection against undefined beam type in Bfield init
[u/mrichter/AliRoot.git] / STEER / AliMC.cxx
index fe542df430f2a7d9c1753abfd6a6d60945f35aad..12dd60c4b4e1c939ae41b14bede5b6a3a6df2de6 100644 (file)
@@ -146,6 +146,7 @@ void  AliMC::ConstructGeometry()
     }
   }else{
     // Create modules, materials, geometry
+    if (!gGeoManager) new TGeoManager("ALICE", "ALICE geometry");
     TStopwatch stw;
     TIter next(gAlice->Modules());
     AliModule *detector;