Fix for more than 1 run per master
authoragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 20 Jun 2011 09:25:33 +0000 (09:25 +0000)
committeragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 20 Jun 2011 09:25:33 +0000 (09:25 +0000)
ANALYSIS/AliAnalysisAlien.cxx

index e5f18e2..2956bd5 100644 (file)
@@ -886,7 +886,7 @@ Bool_t AliAnalysisAlien::CreateDataset(const char *pattern)
                }   
                nstart += ncount;
             } else {
-               if (cbase) {
+               if (cbase && fNrunsPerMaster<2) {
                   cadd = (TGridCollection*)gROOT->ProcessLine(Form("new TAlienCollection(\"__tmp%d__%s\", 1000000);",stage,file.Data()));
                   printf("... please wait - TAlienCollection::Add() scales badly...\n");
                   cbase->Add(cadd);
@@ -1024,7 +1024,7 @@ Bool_t AliAnalysisAlien::CreateDataset(const char *pattern)
                }   
                nstart += ncount;
             } else {
-               if (cbase) {
+               if (cbase && fNrunsPerMaster<2) {
                   cadd = (TGridCollection*)gROOT->ProcessLine(Form("new TAlienCollection(\"__tmp%d__%s\", 1000000);",stage,file.Data()));
                   printf("... please wait - TAlienCollection::Add() scales badly...\n");
                   cbase->Add(cadd);