]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fine tuning for executing Terminate when merging via JDL's
authoragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 7 Apr 2010 12:07:05 +0000 (12:07 +0000)
committeragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 7 Apr 2010 12:07:05 +0000 (12:07 +0000)
ANALYSIS/AliAnalysisAlien.cxx

index e1d8d7ce58fca3c438e09b9e504770c04416b5e6..a67ac78161d62c1dc4e5e207301d2c895ca761d2 100644 (file)
@@ -1620,11 +1620,19 @@ Bool_t AliAnalysisAlien::MergeOutputs()
       Error("MergeOutputs", "Cannot merge outputs without grid connection. Terminate will NOT be executed");
       return kFALSE;
    }
-   if (fMergeViaJDL && !fProductionMode && TestBit(AliAnalysisGrid::kMerge)) {
+   if (fMergeViaJDL) {
+      if (!TestBit(AliAnalysisGrid::kMerge)) {
+         Info("MergeOutputs", "### Re-run with <MergeViaJDL> option in terminate mode of the plugin to submit merging jobs ###");
+         return kFALSE; 
+      }     
+      if (fProductionMode) {
+         Info("MergeOutputs", "### Merging will be submitted by LPM manager... ###");
+         return kFALSE;
+      }
       Info("MergeOutputs", "Submitting merging JDL");
       SubmitMerging();
       Info("MergeOutputs", "### Re-run with <MergeViaJDL> off to collect results after merging jobs are done ###");
-      Info("MergeOutputs", "### Not executing Terminate for now. This is not an error.");
+      Info("MergeOutputs", "### The Terminate() method is executed by the merging jobs");
       return kFALSE;
    }   
    // Get the output path