Changeset 659 for trunk/MagicSoft
- Timestamp:
- 03/01/01 17:32:46 (24 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MReadTree.cc
r654 r659 173 173 Bool_t MReadTree::GetEvent() 174 174 { 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 181 183 Bool_t MReadTree::DecEventNum(UInt_t dec) 182 184 { -
trunk/MagicSoft/Mars/meventdisp/MGFadcDisp.cc
r658 r659 283 283 // 284 284 285 Int_t redraw ;286 287 285 MRawEvtPixelIter fPixelIter( fEvtData ); 288 char wortdummy[100] ;289 286 290 287 // put the selection of the last event in memory 291 redraw = fPixelList->GetSelected() ;288 const Int_t redraw = fPixelList->GetSelected() ; 292 289 293 290 fPixelList->RemoveEntries(0, fPixelsinList) ; … … 296 293 while ( fPixelIter.Next() ) 297 294 { 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++ ) ; 302 300 } 303 301 … … 307 305 // check if the pixel from last event also occurs in this event 308 306 309 Bool_t neuzeich = kFALSE ;310 307 fPixelIter.Reset() ; 311 308 312 309 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() ; 342 332 } 343 333 … … 351 341 352 342 fTxtEvtNr->SetText(wortdummy) ; 353 354 355 356 343 } 357 344 … … 378 365 } 379 366 380 381 382 383 367 Bool_t MGFadcDisp::ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2) 384 368 {
Note:
See TracChangeset
for help on using the changeset viewer.