Generated production file contains also the estimated number of subjobs per master.
authoragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 2 Jul 2009 08:58:25 +0000 (08:58 +0000)
committeragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 2 Jul 2009 08:58:25 +0000 (08:58 +0000)
ANALYSIS/AliAnalysisAlien.cxx

index 8c3847f..f338503 100644 (file)
@@ -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; i<nmasterjobs; i++) {
       out << Form("%s", fInputFiles->At(i)->GetName()) << " " << Form("%03d", i) << endl;