Ignore:
Timestamp:
10/26/01 10:11:30 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/meventdisp
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/meventdisp/MGCamDisplay.cc

    r961 r991  
    117117    plist->AddToList(pedest);
    118118
    119     fEvtLoop->PreProcess();
    120     GetTaskList()->Process();
     119    fInitOk = fEvtLoop->PreProcess();
     120
     121    if (fInitOk)
     122        GetTaskList()->Process();
    121123
    122124    return geom;
     
    177179void MGCamDisplay::UpdateDisplay()
    178180{
    179     if (!fDisplay)
     181    if (!fInitOk)
    180182        return;
    181183
  • trunk/MagicSoft/Mars/meventdisp/MGEvtDisplay.cc

    r961 r991  
    333333                           const TGWindow *p, const TGWindow *main,
    334334                           UInt_t w, UInt_t h)
    335     : TGTransientFrame(p, main, w, h)
     335    : TGTransientFrame(p, main, w, h), fInitOk(kFALSE)
    336336{
    337337    //
     
    398398void MGEvtDisplay::ReadinEvent(UInt_t iEvt)
    399399{
     400    if (!fInitOk)
     401        return;
     402
    400403    Int_t buttons = 4;
    401404    Int_t retval  = 0;
  • trunk/MagicSoft/Mars/meventdisp/MGEvtDisplay.h

    r961 r991  
    5151    TGVerticalFrame  *fMidFrame;
    5252
     53    Bool_t fInitOk;
     54
    5355    MParList  *GetParList() const;
    5456    MTaskList *GetTaskList() const;
  • trunk/MagicSoft/Mars/meventdisp/MGFadcDisp.cc

    r961 r991  
    125125    // preprocess eventloop and read in first event (process)
    126126    //
    127     fEvtLoop->PreProcess();
    128     GetTaskList()->Process();
     127    fInitOk = fEvtLoop->PreProcess();
     128
     129    if (fInitOk)
     130        GetTaskList()->Process();
    129131
    130132    //
     
    168170{
    169171    MRawEvtData *data = GetEvent();
     172
     173    if (!data)
     174        return;
    170175
    171176    MRawEvtPixelIter pixel(data);
     
    215220void MGFadcDisp::UpdateDisplay()
    216221{
     222    if (!fInitOk)
     223        return;
     224
    217225    const Int_t lastsel = fPixelList->GetSelected();
    218226
Note: See TracChangeset for help on using the changeset viewer.