]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fix for processing single xml files introduced together with run ranges.
authoragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 2 Jun 2009 08:43:51 +0000 (08:43 +0000)
committeragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 2 Jun 2009 08:43:51 +0000 (08:43 +0000)
ANALYSIS/AliAnalysisAlien.cxx

index 03b09df1a9595f3a7c6b1bae07a9266f6caa4076..388e9fbea787ecc9e22521b575daf5009413e68f 100644 (file)
@@ -1127,7 +1127,8 @@ void AliAnalysisAlien::StartAnalysis(Long64_t /*nentries*/, Long64_t /*firstEntr
    CdWork();
    TGridResult *res;
    TString jobID = "";
-   if (fRunNumbers.Length()) {
+   if (!fRunRange[0]) {
+      // Submit a given xml or a set of runs
       res = gGrid->Command(Form("submit %s", fJDLName.Data()));
       printf("*************************** %s\n",Form("submit %s", fJDLName.Data()));
       if (res) {
@@ -1145,10 +1146,7 @@ void AliAnalysisAlien::StartAnalysis(Long64_t /*nentries*/, Long64_t /*firstEntr
          delete res;
       }   
    } else {
-      if (!fRunRange[0]) {
-         Error("StartAnalysis", "No runs defined. Exiting.");
-         return;
-      }
+      // Submit for a range of runs.
       TString sjdl;
       for (Int_t irun=fRunRange[0]; irun<=fRunRange[1]; irun++) {
          if (!fInputFiles->At(irun-fRunRange[0])) break;
@@ -1177,7 +1175,6 @@ void AliAnalysisAlien::StartAnalysis(Long64_t /*nentries*/, Long64_t /*firstEntr
    Info("StartAnalysis", "\n#### STARTING AN ALIEN SHELL FOR YOU. EXIT WHEN YOUR JOB %s HAS FINISHED. #### \
    \n You may exit at any time and terminate the job later using the option <terminate> \
    \n ##################################################################################", jobID.Data());
-   //gGrid->Shell();
    gSystem->Exec("aliensh");
 }