Changeset 2052 for trunk/MagicSoft/Mars/mbase/MEvtLoop.cc
- Timestamp:
- 05/02/03 08:56:31 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MEvtLoop.cc
r2042 r2052 190 190 fDisplay->SetWindowName(TString("Status Display: ")+fName); 191 191 fDisplay->SetIconName(fName); 192 // Set status lines193 fDisplay->SetStatusLine1("PreProcessing...");194 fDisplay->SetStatusLine2("");195 192 // Start automatic update 196 193 fDisplay->StartUpdate(); … … 207 204 if (!fTaskList->PreProcess(fParList)) 208 205 { 209 *fLog << err << "Error detected while PreProcessing " << endl;206 *fLog << err << "Error detected while PreProcessing." << endl; 210 207 return kFALSE; 211 208 } … … 422 419 // execute the post process of all tasks 423 420 // 424 if (fDisplay)425 {426 // Set status lines427 fDisplay->SetStatusLine1("PostProcessing...");428 fDisplay->SetStatusLine2("");429 }430 421 return fTaskList->PostProcess(); 431 422 } … … 433 424 // -------------------------------------------------------------------------- 434 425 // 435 // See class description above. 426 // See class description above. Returns kTRUE if PreProcessing, 427 // Processing and PostProcessing was successfull, otherwise kFALSE. 436 428 // 437 429 Bool_t MEvtLoop::Eventloop(Int_t maxcnt, const char *tlist) … … 446 438 447 439 // 448 // Now postprocess all tasks. Only successfully preprocessed tasks are 449 // postprocessed. If the Postprocessing of one task fail return an error. 440 // Now postprocess all tasks. Only successfully preprocessed tasks 441 // are postprocessed. If the Postprocessing of one task fails 442 // return an error. 450 443 // 451 444 if (!PostProcess()) 452 return kFALSE; 445 { 446 *fLog << err << "Error detected while PostProcessing." << endl; 447 rc = kFALSE; 448 } 453 449 454 450 if (!fDisplay) … … 457 453 // Set status lines 458 454 fDisplay->SetStatusLine1(fName); 459 fDisplay->SetStatusLine2(rc ? "Done." : "E RROR");455 fDisplay->SetStatusLine2(rc ? "Done." : "Error!"); 460 456 // Stop automatic update 461 457 fDisplay->StopUpdate();
Note:
See TracChangeset
for help on using the changeset viewer.