Changeset 8221
- Timestamp:
- 12/11/06 14:57:27 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/mjobs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MDataSet.cc
r7517 r8221 301 301 TIter Next(const_cast<TList*>(&list)); 302 302 TObject *o=0; 303 303 304 while ((o=Next())) 304 305 { … … 314 315 315 316 const TString dir(o->GetTitle()); 316 seq.SetupDatRuns(files, MSequence::kImages, dir.IsNull() ? 0 : dir.Data()); 317 if (seq.SetupDatRuns(files, MSequence::kImages, dir.IsNull() ? 0 : dir.Data())<=0) 318 return kFALSE; 317 319 } 318 320 -
trunk/MagicSoft/Mars/mjobs/MSequence.cc
r7808 r8221 203 203 TString d(path); 204 204 205 const Bool_t def = d.IsNull(); 206 205 207 // Setup path 206 if (d .IsNull())208 if (def) 207 209 { 208 210 d = GetStandardPath(); … … 289 291 } 290 292 291 return iter.GetNumEntries(); 293 const Int_t n0 = iter.GetNumEntries(); 294 const Int_t n1 = arr.GetSize(); 295 if (n0==0) 296 { 297 *fLog << err; 298 *fLog < "ERROR - No input files for sequence #" << GetSequence() << endl; 299 *fLog << " read from " << GetName() << endl; 300 *fLog << " found in" << (def?" default-path ":" ") << d << endl; 301 return 0; 302 } 303 304 if (n0==n1) 305 return n0; 306 307 *fLog << err; 308 *fLog << "ERROR - " << n0 << " input files for sequence #" << GetSequence() << " found in" << endl; 309 *fLog << " " << (def?" default-path ":" ") << d << endl; 310 *fLog << " but " << n1 << " files were defined in sequence file" << endl; 311 *fLog << " " << GetName() << endl; 312 if (fLog->GetDebugLevel()<=4) 313 return 0; 314 315 *fLog << dbg << "Files which are searched for this sequence:" << endl; 316 iter.Print(); 317 return 0; 292 318 } 293 319
Note:
See TracChangeset
for help on using the changeset viewer.