Changeset 2181


Ignore:
Timestamp:
06/17/03 10:15:50 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r2180 r2181  
    11                                                 -*-*- END OF LINE -*-*-
     2
     3 2003/06/17: Thomas Bretz
     4
     5   * meventdisp/MGEvtDisplay.cc:
     6     - fixed a bug which caused a endlessloop
     7
     8
    29
    310 2003/06/16: Thomas Bretz
  • trunk/MagicSoft/Mars/meventdisp/MGEvtDisplay.cc

    r2173 r2181  
    540540{
    541541    MRawEvtData *raw = (MRawEvtData*)GetParList()->FindObject("MRawEvtData");
     542
    542543    if (!raw)
    543544        return;
     545
     546    const Int_t num = GetReader()->GetNumEntry();
     547
    544548    do
    545549    {
    546550        if (dir<0 && !GetReader()->DecEventNum())
     551        {
     552            GetReader()->SetEventNum(num);
    547553            return;
     554        }
    548555        if (dir>0 && !GetReader()->IncEventNum())
     556        {
     557            GetReader()->SetEventNum(num);
    549558            return;
     559        }
    550560
    551561        if (!GetTaskList()->Process())
     
    554564        GetReader()->DecEventNum();
    555565
    556     } while (raw->GetNumPixels()<1);
     566    } while (raw->GetNumPixels()<1 && dir!=0);
    557567
    558568    UpdateMcLabel();
Note: See TracChangeset for help on using the changeset viewer.