From f5e8c702e853dc2bbb786373e4c0a83405e504ce Mon Sep 17 00:00:00 2001 From: agheata Date: Thu, 2 Jul 2009 08:58:25 +0000 Subject: [PATCH] Generated production file contains also the estimated number of subjobs per master. --- ANALYSIS/AliAnalysisAlien.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ANALYSIS/AliAnalysisAlien.cxx b/ANALYSIS/AliAnalysisAlien.cxx index 8c3847f4f06..f338503988d 100644 --- a/ANALYSIS/AliAnalysisAlien.cxx +++ b/ANALYSIS/AliAnalysisAlien.cxx @@ -1937,7 +1937,7 @@ void AliAnalysisAlien::WriteExecutable() void AliAnalysisAlien::WriteProductionFile(const char *filename) const { // Write the production file to be submitted by LPM manager. The format is: -// First line: full_path_to_jdl +// First line: full_path_to_jdl estimated_no_subjobs_per_master // Next lines: full_path_to_dataset XXX (XXX is a string) // To submit, one has to: submit jdl XXX for all lines ofstream out; @@ -1948,8 +1948,9 @@ void AliAnalysisAlien::WriteProductionFile(const char *filename) const } TString workdir = gGrid->GetHomeDirectory(); workdir += fGridWorkingDir; + Int_t njobspermaster = 1000*fNrunsPerMaster/fSplitMaxInputFileNumber; TString locjdl = Form("%s/%s", workdir.Data(),fJDLName.Data()); - out << locjdl << endl; + out << locjdl << " " << njobspermaster << endl; Int_t nmasterjobs = fInputFiles->GetEntries(); for (Int_t i=0; iAt(i)->GetName()) << " " << Form("%03d", i) << endl; -- 2.39.3