geometry handling
authorloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 21 May 2012 10:15:38 +0000 (10:15 +0000)
committerloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 21 May 2012 10:15:38 +0000 (10:15 +0000)
PWGGA/EMCALJetTasks/AliJetModelBaseTask.cxx

index 8bd0fc6..6074965 100644 (file)
@@ -159,19 +159,19 @@ void AliJetModelBaseTask::Init()
        InputEvent()->AddObject(fOutClusters);
       fOutClusters->Clear();
     }
-  }
 
-  if (!fGeom) {
-    if (fGeomName.Length() > 0) {
-      fGeom = AliEMCALGeometry::GetInstance(fGeomName);
-      if (!fGeom)
-        AliError(Form("Could not get geometry with name %s!", fGeomName.Data()));
-    } else {
-      fGeom = AliEMCALGeometry::GetInstance();
-      if (!fGeom) 
-        AliError("Could not get default geometry!");
+    if (!fGeom) {
+      if (fGeomName.Length() > 0) {
+       fGeom = AliEMCALGeometry::GetInstance(fGeomName);
+       if (!fGeom)
+         AliError(Form("Could not get geometry with name %s!", fGeomName.Data()));
+      } else {
+       fGeom = AliEMCALGeometry::GetInstance();
+       if (!fGeom) 
+         AliError("Could not get default geometry!");
+      }
     }
-
+    
     // hard-coded Emcal boundaries
     const Float_t EmcalEtaMin = -0.7;
     const Float_t EmcalEtaMax = 0.7;