Changeset 4732 for trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
- Timestamp:
- 08/25/04 17:30:31 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
r4729 r4732 248 248 TString title = fDisplay->GetTitle(); 249 249 title += "-- Calibration "; 250 title += fSequence.IsValid() ? Form("calib%06d", fSequence.GetSequence()) : fRuns->GetRunsAsString();250 title += fSequence.IsValid() ? Form("calib%06d", fSequence.GetSequence()) : (const char*)fRuns->GetRunsAsString(); 251 251 title += " --"; 252 252 fDisplay->SetTitle(title); … … 1247 1247 Bool_t MJCalibration::CheckEnv() 1248 1248 { 1249 if (!MJob::CheckEnv())1250 return kFALSE;1251 1252 1249 TString col = GetEnv("Color", ""); 1253 1250 if (!col.IsNull()) … … 1269 1266 SetUsePINDiode(GetEnv("UsePINDiode", IsUsePINDiode())); 1270 1267 1271 return kTRUE;1268 return MJob::CheckEnv(); 1272 1269 } 1273 1270 … … 1557 1554 evtloop.SetDisplay(fDisplay); 1558 1555 evtloop.SetLogStream(fLog); 1559 if (GetEnv()) 1560 evtloop.ReadEnv(*GetEnv()); 1561 1562 //if (!WriteEventloop(evtloop)) 1563 // return kFALSE; 1556 if (!SetupEnv(evtloop)) 1557 return kFALSE; 1558 1559 if (!taskenv.GetTask() && !taskenv2.GetTask()) 1560 { 1561 *fLog << err << "ERROR - Neither ExtractSignal nor ExtractTime initializedor both '<dummy>'." << endl; 1562 return kFALSE; 1563 } 1564 1564 1565 1565 if (!WriteTasks(taskenv.GetTask(), taskenv2.GetTask())) … … 1738 1738 } 1739 1739 1740 if (t1 ->Write()<=0)1740 if (t1 && t1->Write()<=0) 1741 1741 { 1742 1742 *fLog << err << "Unable to write " << t1->GetName() << " to " << oname << endl; 1743 1743 return kFALSE; 1744 1744 } 1745 if (t2 ->Write()<=0)1745 if (t2 && t2->Write()<=0) 1746 1746 { 1747 1747 *fLog << err << "Unable to write " << t2->GetName() << " to " << oname << endl;
Note:
See TracChangeset
for help on using the changeset viewer.