Changeset 2173 for trunk/MagicSoft/Mars/meventdisp
- Timestamp:
- 06/13/03 16:42:37 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/meventdisp
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/meventdisp/MGEvtDisplay.cc
r2161 r2173 49 49 #include "MReadMarsFile.h" 50 50 #include "MGeomCamMagic.h" 51 #include "MRawEvtData.h" 51 52 #include "MRawEvtHeader.h" 52 53 … … 536 537 // and updates the display 537 538 // 538 void MGEvtDisplay::ReadinEvent() 539 { 540 if (GetTaskList()->Process()) 539 void MGEvtDisplay::ReadinEvent(Int_t dir) 540 { 541 MRawEvtData *raw = (MRawEvtData*)GetParList()->FindObject("MRawEvtData"); 542 if (!raw) 543 return; 544 do 541 545 { 546 if (dir<0 && !GetReader()->DecEventNum()) 547 return; 548 if (dir>0 && !GetReader()->IncEventNum()) 549 return; 550 551 if (!GetTaskList()->Process()) 552 return; 553 542 554 GetReader()->DecEventNum(); 543 UpdateMcLabel(); 544 UpdateDisplay(); 545 } 555 556 } while (raw->GetNumPixels()<1); 557 558 UpdateMcLabel(); 559 UpdateDisplay(); 546 560 547 561 fTxtEvtNr->SetText(Form("%d", GetReader()->GetNumEntry()+1)); … … 645 659 { 646 660 case kEvtPrev: 647 if (GetReader()->DecEventNum()) 648 ReadinEvent(); 661 ReadinEvent(-1); 649 662 return kTRUE; 650 663 651 664 case kEvtNext: 652 if (GetReader()->IncEventNum()) 653 ReadinEvent(); 665 ReadinEvent(+1); 654 666 return kTRUE; 655 667 } -
trunk/MagicSoft/Mars/meventdisp/MGEvtDisplay.h
r1668 r2173 44 44 45 45 void SaveAsDialog() const; 46 void ReadinEvent( );46 void ReadinEvent(Int_t dir=0); 47 47 48 48 Bool_t fInitOk; -
trunk/MagicSoft/Mars/meventdisp/MGFadcDisp.cc
r1939 r2173 27 27 #include <limits.h> // INT_MAX 28 28 #include <stdlib.h> // atoi 29 #include <iostream .h>// cout for debugging29 #include <iostream> // cout for debugging 30 30 31 31 #include <TList.h> // TList … … 51 51 52 52 ClassImp(MGFadcDisp); 53 54 using namespace std; 53 55 54 56 enum MGFadcDispCommand
Note:
See TracChangeset
for help on using the changeset viewer.