Instantiate EMCAL geometry
authorgconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 21 Jun 2011 08:10:19 +0000 (08:10 +0000)
committergconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 21 Jun 2011 08:10:19 +0000 (08:10 +0000)
PWG4/CaloCalib/AliAnalysisTaskEMCALPi0PbPb.cxx

index 19d208c..9eea02c 100644 (file)
@@ -206,7 +206,7 @@ void AliAnalysisTaskEMCALPi0PbPb::UserCreateOutputObjects()
   cout << " fDoPSel:        " << fDoPSel << endl;
 
   if (!fGeom)
-    fGeom = new AliEMCALGeometry(fGeoName,"EMCAL");
+    fGeom = AliEMCALGeometry::GetInstance(fGeoName);
   else {
     if (fGeom->GetMatrixForSuperModule(0))
       fIsGeoMatsSet = kTRUE;