Fixed output directory in production mode when SetOutputToRunNo is set
authoragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 20 Jul 2011 11:34:24 +0000 (11:34 +0000)
committeragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 20 Jul 2011 11:34:24 +0000 (11:34 +0000)
ANALYSIS/AliAnalysisAlien.cxx

index 0c2cdfe..706e20b 100644 (file)
@@ -1435,7 +1435,10 @@ Bool_t AliAnalysisAlien::WriteJDL(Bool_t copy)
       while ((os=next())) {
          fGridJDL->AddToInputDataCollection(Form("LF:%s,nodownload", os->GetName()), "Input xml collections");
       }
-      fGridJDL->SetOutputDirectory(Form("%s/#alien_counter_04i#", fGridOutputDir.Data()));
+      if (!fOutputToRunNo)
+         fGridJDL->SetOutputDirectory(Form("%s/#alien_counter_04i#", fGridOutputDir.Data()));
+      else  
+         fGridJDL->SetOutputDirectory(fGridOutputDir);
    } else {            
       if (!fRunNumbers.Length() && !fRunRange[0]) {
          // One jdl with no parameters in case input data is specified by name.