Ignore:
Timestamp:
06/13/03 16:42:37 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/meventdisp
Files:
3 edited

Legend:

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

    r2161 r2173  
    4949#include "MReadMarsFile.h"
    5050#include "MGeomCamMagic.h"
     51#include "MRawEvtData.h"
    5152#include "MRawEvtHeader.h"
    5253
     
    536537//  and updates the display
    537538//
    538 void MGEvtDisplay::ReadinEvent()
    539 {
    540     if (GetTaskList()->Process())
     539void MGEvtDisplay::ReadinEvent(Int_t dir)
     540{
     541    MRawEvtData *raw = (MRawEvtData*)GetParList()->FindObject("MRawEvtData");
     542    if (!raw)
     543        return;
     544    do
    541545    {
     546        if (dir<0 && !GetReader()->DecEventNum())
     547            return;
     548        if (dir>0 && !GetReader()->IncEventNum())
     549            return;
     550
     551        if (!GetTaskList()->Process())
     552            return;
     553
    542554        GetReader()->DecEventNum();
    543         UpdateMcLabel();
    544         UpdateDisplay();
    545     }
     555
     556    } while (raw->GetNumPixels()<1);
     557
     558    UpdateMcLabel();
     559    UpdateDisplay();
    546560
    547561    fTxtEvtNr->SetText(Form("%d", GetReader()->GetNumEntry()+1));
     
    645659            {
    646660            case kEvtPrev:
    647                 if (GetReader()->DecEventNum())
    648                     ReadinEvent();
     661                ReadinEvent(-1);
    649662                return kTRUE;
    650663
    651664            case kEvtNext:
    652                 if (GetReader()->IncEventNum())
    653                     ReadinEvent();
     665                ReadinEvent(+1);
    654666                return kTRUE;
    655667            }
  • trunk/MagicSoft/Mars/meventdisp/MGEvtDisplay.h

    r1668 r2173  
    4444
    4545    void SaveAsDialog() const;
    46     void ReadinEvent();
     46    void ReadinEvent(Int_t dir=0);
    4747
    4848    Bool_t fInitOk;
  • trunk/MagicSoft/Mars/meventdisp/MGFadcDisp.cc

    r1939 r2173  
    2727#include <limits.h>               // INT_MAX
    2828#include <stdlib.h>               // atoi
    29 #include <iostream.h>             // cout for debugging
     29#include <iostream             // cout for debugging
    3030
    3131#include <TList.h>                // TList
     
    5151
    5252ClassImp(MGFadcDisp);
     53
     54using namespace std;
    5355
    5456enum MGFadcDispCommand
Note: See TracChangeset for help on using the changeset viewer.