use default geo without runnumber
authormverweij <marta.verweij@cern.ch>
Fri, 31 Jan 2014 17:49:42 +0000 (18:49 +0100)
committermverweij <marta.verweij@cern.ch>
Fri, 31 Jan 2014 17:51:12 +0000 (18:51 +0100)
PWG/EMCAL/AliEmcalSetupTask.cxx

index 8055bb1..b98ea43 100644 (file)
@@ -135,13 +135,10 @@ void AliEmcalSetupTask::Setup(Int_t runno)
 {
   // Setup everything
 
-  if (runno<=0)
-    return;
-
   // Setup AliEMCALGeometry corresponding to year
   TString geoname("EMCAL_COMPLETE12SMV1");
   Int_t year = 2013;
-  if (runno<=139517) {
+  if (runno>0 && runno<=139517) {
     year = 2010;
     geoname = "EMCAL_FIRSTYEARV1";
   } else if ((runno>139517) && (runno<=170593)) {
@@ -156,6 +153,9 @@ void AliEmcalSetupTask::Setup(Int_t runno)
     return;
   }
 
+  if (runno<=0)
+    return;
+
   // Setup CDB manager
   AliCDBManager *man = 0;
   man = AliCDBManager::Instance();