Changeset 659 for trunk/MagicSoft


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

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/MReadTree.cc

    r654 r659  
    173173Bool_t MReadTree::GetEvent()
    174174{
    175   // Get the Event with the current EventNumber fNumEntry
    176   //
    177   fTree->GetEntry(fNumEntry );
    178 
    179   return kTRUE;
    180 }
     175    //
     176    // Get the Event with the current EventNumber fNumEntry
     177    //
     178    fTree->GetEntry(fNumEntry);
     179
     180    return kTRUE;
     181}
     182
    181183Bool_t MReadTree::DecEventNum(UInt_t dec)
    182184{
  • trunk/MagicSoft/Mars/meventdisp/MGFadcDisp.cc

    r658 r659  
    283283  //
    284284 
    285   Int_t redraw ;
    286 
    287285  MRawEvtPixelIter fPixelIter( fEvtData );
    288   char wortdummy[100] ;
    289286
    290287  //   put the selection of the last event in memory
    291   redraw = fPixelList->GetSelected() ;
     288  const Int_t redraw = fPixelList->GetSelected() ;
    292289 
    293290  fPixelList->RemoveEntries(0, fPixelsinList) ;
     
    296293  while ( fPixelIter.Next() )
    297294    {
    298       //      cout << fPixelIter.GetPixelId() << endl ;
    299       sprintf( wortdummy, "%d", fPixelIter.GetPixelId() ) ;
    300      
    301       fPixelList->AddEntry( wortdummy, fPixelsinList++ ) ;
     295        char wortdummy[100] ;
     296        //      cout << fPixelIter.GetPixelId() << endl ;
     297        sprintf( wortdummy, "%d", fPixelIter.GetPixelId() ) ;
     298
     299        fPixelList->AddEntry( wortdummy, fPixelsinList++ ) ;
    302300    }
    303301
     
    307305  // check if the pixel from last event also occurs in this event
    308306
    309   Bool_t neuzeich = kFALSE ; 
    310307  fPixelIter.Reset() ;
    311308
    312309  while ( fPixelIter.Next() )
    313     {
    314       if (fPixelIter.GetPixelId() == redraw )
    315         neuzeich = kTRUE ;
    316     }
    317 
    318   if ( neuzeich == kTRUE )
    319     {
    320       sprintf(wortdummy, "GRAPH%d", redraw ) ;
    321      
    322       fCan->Clear() ;
    323       fCan->cd() ;
    324      
    325       fEvtData->Draw(wortdummy) ;
    326      
    327       fCan->Modified() ;
    328       fCan->Update() ;
    329      
    330       fPixelList->Select(redraw, kTRUE) ;
    331     }
    332   else
    333     {
    334       fCan->Clear() ;
    335       fCan->cd() ;
    336       fCan->Modified() ;
    337       fCan->Update() ;
    338      
    339     }
    340  
    341  
     310  {
     311      if (fPixelIter.GetPixelId() != redraw )
     312          continue;
     313
     314      fCan->Clear() ;
     315      fCan->cd() ;
     316
     317      char wortdummy[100] ;
     318      sprintf(wortdummy, "GRAPH%d", redraw ) ;
     319      fEvtData->Draw(wortdummy) ;
     320
     321      fCan->Modified() ;
     322      fCan->Update() ;
     323
     324      fPixelList->Select(redraw, kTRUE) ;
     325      return;
     326  }
     327
     328  fCan->Clear() ;
     329  fCan->cd() ;
     330  fCan->Modified() ;
     331  fCan->Update() ;
    342332}
    343333
     
    351341 
    352342  fTxtEvtNr->SetText(wortdummy) ;
    353 
    354 
    355 
    356343}
    357344
     
    378365
    379366
    380 
    381 
    382  
    383367Bool_t MGFadcDisp::ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
    384368{
Note: See TracChangeset for help on using the changeset viewer.