Ignore:
Timestamp:
12/20/03 13:46:17 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mmain
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mmain/MEventDisplay.cc

    r2659 r2728  
    128128// --------------------------------------------------------------------------
    129129//
    130 //  Return reading task
    131 //
    132 MReadTree *MEventDisplay::GetReader() const
    133 {
    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 //
    142130//  Setup Task and parameter list for hillas calculation,
    143131//  preprocess tasks and read in first event (process)
     
    389377void MEventDisplay::ReadinEvent(Int_t dir)
    390378{
    391     MParList    *plist = (MParList*)fEvtLoop->GetParList();
    392     MGeomCam    *geom  = (MGeomCam*) plist->FindObject("MGeomCam");
    393     MTaskList   *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");
    395383    if (!raw)
    396384        return;
     
    399387    // Read first event.
    400388    //
    401     MReadTree *reader = GetReader();
     389    MReadTree *reader = (MReadTree*)fEvtLoop->FindTask("MRead");
    402390
    403391    const Int_t num = reader->GetNumEntry();
     
    472460    ReadinEvent();
    473461
    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()));
    475464    fNumOfEvts->SetText(txt);
    476465
     
    540529                {
    541530                    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))
    543533                        ReadinEvent();
    544534                }
  • trunk/MagicSoft/Mars/mmain/MEventDisplay.h

    r2559 r2728  
    4343    void ReadinEvent(Int_t dir=0);
    4444
    45     MReadTree *GetReader() const;
    46 
    4745    Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
    4846
Note: See TracChangeset for help on using the changeset viewer.