From: cvetan Date: Thu, 8 May 2008 14:25:46 +0000 (+0000) Subject: Geometry should not be read from gAlice. For the moment we keep it only for backward... X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=384c0bbaf427c4806c2bdcdf44fbfe7a9654c67d Geometry should not be read from gAlice. For the moment we keep it only for backward compatibilty. Please fix! (Jouri & Cvetan) --- diff --git a/EMCAL/AliEMCALTrigger.cxx b/EMCAL/AliEMCALTrigger.cxx index c036f25a9d6..c3c152bd02b 100644 --- a/EMCAL/AliEMCALTrigger.cxx +++ b/EMCAL/AliEMCALTrigger.cxx @@ -881,6 +881,9 @@ void AliEMCALTrigger::Trigger() if (runLoader && runLoader->GetAliRun() && runLoader->GetAliRun()->GetDetector("EMCAL")) fGeom = dynamic_cast(runLoader->GetAliRun()->GetDetector("EMCAL"))->GetGeometry(); + if (fGeom == 0) + fGeom = AliEMCALGeometry::GetInstance(AliEMCALGeometry::GetDefaultGeometryName()); + if (fGeom==0) AliFatal("Did not get geometry from EMCALLoader");