Changeset 2728 for trunk/MagicSoft/Mars/mmain
- Timestamp:
- 12/20/03 13:46:17 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mmain
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mmain/MEventDisplay.cc
r2659 r2728 128 128 // -------------------------------------------------------------------------- 129 129 // 130 // Return reading task131 //132 MReadTree *MEventDisplay::GetReader() const133 {134 MParList *plist = (MParList*)fEvtLoop->GetParList();135 MTaskList *tlist = (MTaskList*)plist->FindObject("MTaskList");136 MReadTree *reader = (MReadTree*)tlist->FindObject("MRead");137 return reader;138 }139 140 // --------------------------------------------------------------------------141 //142 130 // Setup Task and parameter list for hillas calculation, 143 131 // preprocess tasks and read in first event (process) … … 389 377 void MEventDisplay::ReadinEvent(Int_t dir) 390 378 { 391 MParList *plist = (MParList*) fEvtLoop->GetParList();392 M GeomCam *geom = (MGeomCam*) plist->FindObject("MGeomCam");393 M TaskList *tlist = (MTaskList*)plist->FindObject("MTaskList");394 MRawEvtData *raw = (MRawEvtData*)plist->FindObject("MRawEvtData");379 MParList *plist = (MParList*) fEvtLoop->GetParList(); 380 MTaskList *tlist = (MTaskList*) fEvtLoop->GetTaskList(); 381 MGeomCam *geom = (MGeomCam*) plist->FindObject("MGeomCam"); 382 MRawEvtData *raw = (MRawEvtData*)plist->FindObject("MRawEvtData"); 395 383 if (!raw) 396 384 return; … … 399 387 // Read first event. 400 388 // 401 MReadTree *reader = GetReader();389 MReadTree *reader = (MReadTree*)fEvtLoop->FindTask("MRead"); 402 390 403 391 const Int_t num = reader->GetNumEntry(); … … 472 460 ReadinEvent(); 473 461 474 TGString *txt = new TGString(Form("of %d", GetReader()->GetEntries())); 462 MReadTree *reader = (MReadTree*)fEvtLoop->FindTask("MRead"); 463 TGString *txt = new TGString(Form("of %d", reader->GetEntries())); 475 464 fNumOfEvts->SetText(txt); 476 465 … … 540 529 { 541 530 TGTextEntry *entry = (TGTextEntry*)fList->FindWidget(kEvtNumber); 542 if (GetReader()->SetEventNum(atoi(entry->GetText())-1)) 531 MReadTree *reader = (MReadTree*)fEvtLoop->FindTask("MRead"); 532 if (reader->SetEventNum(atoi(entry->GetText())-1)) 543 533 ReadinEvent(); 544 534 } -
trunk/MagicSoft/Mars/mmain/MEventDisplay.h
r2559 r2728 43 43 void ReadinEvent(Int_t dir=0); 44 44 45 MReadTree *GetReader() const;46 47 45 Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2); 48 46
Note:
See TracChangeset
for help on using the changeset viewer.