In case no geometry pointer, a geometry has to be created in ConstructGeonmetry()
authoragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 11 May 2009 12:58:49 +0000 (12:58 +0000)
committeragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 11 May 2009 12:58:49 +0000 (12:58 +0000)
STEER/AliMC.cxx

index fe542df..12dd60c 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;