]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Production file corrected in case of real data analysis
authoragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 17 Feb 2010 10:49:57 +0000 (10:49 +0000)
committeragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 17 Feb 2010 10:49:57 +0000 (10:49 +0000)
ANALYSIS/AliAnalysisAlien.cxx

index 6ae7f57fa64e9413f014f43981d5acd56284058f..d36171482df55d9e0622aa501ffa8659b718ac35 100644 (file)
@@ -2164,7 +2164,12 @@ void AliAnalysisAlien::WriteProductionFile(const char *filename) const
    out << locjdl << " " << njobspermaster << endl;
    Int_t nmasterjobs = fInputFiles->GetEntries();
    for (Int_t i=0; i<nmasterjobs; i++) {
-      out << Form("%s", fInputFiles->At(i)->GetName()) << " " << Form("%03d", i) << endl;
+      TString runOutDir = gSystem->BaseName(fInputFiles->At(i)->GetName());
+      runOutDir.ReplaceAll(".xml", "");
+      if (fOutputToRunNo)
+         out << Form("%s", fInputFiles->At(i)->GetName()) << " " << runOutDir << endl;
+      else
+         out << Form("%s", fInputFiles->At(i)->GetName()) << " " << Form("%03d", i) << endl;
    }
    Info("WriteProductionFile", "\n#####   Copying production file <%s> to your work directory", filename);
    if (FileExists(filename)) gGrid->Rm(filename);