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) {
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;
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");
}