Changeset 662 for trunk/MagicSoft


Ignore:
Timestamp:
03/01/01 17:47:30 (24 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

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

    r661 r662  
    278278  //   the list of pixels in the fPixelList (TGListBox)
    279279  //
     280  const Int_t redraw = fPixelList->GetSelected() ;
    280281 
    281282  MRawEvtPixelIter fPixelIter( fEvtData );
    282283
    283284  //   put the selection of the last event in memory
    284   const Int_t redraw = fPixelList->GetSelected() ;
    285  
    286   fPixelList->RemoveEntries(0, fPixelsinList) ;
    287   fPixelsinList = 0 ;
     285 
     286  fPixelList->RemoveEntries(0, fPixelIter.GetNumPixels()) ;
    288287
    289288  while ( fPixelIter.Next() )
     
    293292        sprintf( wortdummy, "%d", fPixelIter.GetPixelId() ) ;
    294293
    295         fPixelList->AddEntry( wortdummy, fPixelsinList++ ) ;
     294        fPixelList->AddEntry( wortdummy, fPixelIter.GetNumEntry()) ;
    296295    }
    297296
  • trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.h

    r651 r662  
    2626    Byte_t   *fLoGainPos;       //! pointer to lo-gain samples of actual pixel
    2727
     28    UShort_t fNumEntry;
     29
    2830    MRawEvtData *fData;         //! pointer to object which we are iterating
    2931
     
    4244        //
    4345        return *fHiGainId;
     46    }
     47
     48    UShort_t GetNumEntry() const
     49    {
     50        return fNumHiGainEntry;
     51    }
     52
     53    Byte_t GetNumPixels() const
     54    {
     55        return fData->GetNumPixels();
    4456    }
    4557
Note: See TracChangeset for help on using the changeset viewer.