Geometry should not be read from gAlice. For the moment we keep it only for backward...
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 8 May 2008 14:25:46 +0000 (14:25 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 8 May 2008 14:25:46 +0000 (14:25 +0000)
EMCAL/AliEMCALTrigger.cxx

index c036f25a9d674bf2a074a1bb65ab2108ea94a85a..c3c152bd02be3319a2c80f9ba60eb26f733db785 100644 (file)
@@ -881,6 +881,9 @@ void AliEMCALTrigger::Trigger()
   if (runLoader && runLoader->GetAliRun() && runLoader->GetAliRun()->GetDetector("EMCAL"))
     fGeom = dynamic_cast<AliEMCAL*>(runLoader->GetAliRun()->GetDetector("EMCAL"))->GetGeometry();
 
   if (runLoader && runLoader->GetAliRun() && runLoader->GetAliRun()->GetDetector("EMCAL"))
     fGeom = dynamic_cast<AliEMCAL*>(runLoader->GetAliRun()->GetDetector("EMCAL"))->GetGeometry();
 
+  if (fGeom == 0)       
+    fGeom = AliEMCALGeometry::GetInstance(AliEMCALGeometry::GetDefaultGeometryName());          
+
   if (fGeom==0)
     AliFatal("Did not get geometry from EMCALLoader");
   
   if (fGeom==0)
     AliFatal("Did not get geometry from EMCALLoader");