Changeset 4895 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 09/09/04 15:43:47 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
r4760 r4895 461 461 */ 462 462 463 // -------------------------------------------------------------------------- 464 // 465 // The following resource options are available: 466 // Prefix.DataCheckDisplay: Yes, No 467 // Prefix.DataCheck: Yes, No 468 // Prefix.UseData: Yes, No 469 // 463 470 Bool_t MJPedestal::CheckEnvLocal() 464 471 { … … 467 474 468 475 SetDataCheck(GetEnv("DataCheck", fDataCheck)); 469 Set Overwrite(GetEnv("Overwrite", fOverwrite));476 SetUseData(GetEnv("UseData", fUseData)); 470 477 471 478 return kTRUE; … … 565 572 if (fSequence.IsValid()) 566 573 { 574 const TString type = fUseData ? "data" : "pedestal"; 567 575 const Int_t n0 = fUseData ? fSequence.SetupDatRuns(iter, fPathData) : fSequence.SetupPedRuns(iter, fPathData); 568 576 const Int_t n1 = fUseData ? fSequence.GetNumDatRuns() : fSequence.GetNumPedRuns(); 569 577 if (n0==0) 570 578 { 571 *fLog << err << "ERROR - No input files of sequence found!"<< endl;579 *fLog << err << "ERROR - No " << type << " input files of sequence found in " << fPathData << endl; 572 580 return kFALSE; 573 581 } 574 582 if (n0!=n1) 575 583 { 576 *fLog << err << "ERROR - Number of files found (" << n0 << ")doesn't match number of files in sequence (" << n1 << ")" << endl;584 *fLog << err << "ERROR - Number of " << type << " files found (" << n0 << ") in " << fPathData << " doesn't match number of files in sequence (" << n1 << ")" << endl; 577 585 return kFALSE; 578 586 }
Note:
See TracChangeset
for help on using the changeset viewer.