Ignore:
Timestamp:
05/02/03 08:56:31 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/MEvtLoop.cc

    r2042 r2052  
    190190        fDisplay->SetWindowName(TString("Status Display: ")+fName);
    191191        fDisplay->SetIconName(fName);
    192         // Set status lines
    193         fDisplay->SetStatusLine1("PreProcessing...");
    194         fDisplay->SetStatusLine2("");
    195192        // Start automatic update
    196193        fDisplay->StartUpdate();
     
    207204    if (!fTaskList->PreProcess(fParList))
    208205    {
    209         *fLog << err << "Error detected while PreProcessing" << endl;
     206        *fLog << err << "Error detected while PreProcessing." << endl;
    210207        return kFALSE;
    211208    }
     
    422419    //  execute the post process of all tasks
    423420    //
    424     if (fDisplay)
    425     {
    426         // Set status lines
    427         fDisplay->SetStatusLine1("PostProcessing...");
    428         fDisplay->SetStatusLine2("");
    429     }
    430421    return fTaskList->PostProcess();
    431422}
     
    433424// --------------------------------------------------------------------------
    434425//
    435 //  See class description above.
     426// See class description above. Returns kTRUE if PreProcessing,
     427// Processing and PostProcessing was successfull, otherwise kFALSE.
    436428//
    437429Bool_t MEvtLoop::Eventloop(Int_t maxcnt, const char *tlist)
     
    446438
    447439    //
    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.
    450443    //
    451444    if (!PostProcess())
    452         return kFALSE;
     445    {
     446        *fLog << err << "Error detected while PostProcessing." << endl;
     447        rc = kFALSE;
     448    }
    453449
    454450    if (!fDisplay)
     
    457453    // Set status lines
    458454    fDisplay->SetStatusLine1(fName);
    459     fDisplay->SetStatusLine2(rc ? "Done." : "ERROR");
     455    fDisplay->SetStatusLine2(rc ? "Done." : "Error!");
    460456    // Stop automatic update
    461457    fDisplay->StopUpdate();
Note: See TracChangeset for help on using the changeset viewer.