]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Do not load the geometry every event, use the one from AliSimulation
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 28 Mar 2006 08:43:14 +0000 (08:43 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 28 Mar 2006 08:43:14 +0000 (08:43 +0000)
TRD/AliTRDdigitizer.cxx

index c1621f4ae080c690e9cae209a33739169f51fa09..5d023585d642bc02adc555ed6045214faef38dce 100644 (file)
@@ -62,6 +62,7 @@
 #include "AliRunDigitizer.h"
 #include "AliRunLoader.h"
 #include "AliLoader.h"
+#include "AliLog.h"
 
 #include "AliTRD.h"
 #include "AliTRDhit.h"
@@ -629,7 +630,7 @@ Bool_t AliTRDdigitizer::MakeDigits()
 
   AliTRDpadPlane   *padPlane = 0;
 
-  TGeoManager::Import("geometry.root");
+  if (!gGeoManager) AliFatal("No geometry!");
 
 
   AliTRDSimParam* simParam = AliTRDSimParam::Instance();