Changeset 3415 for trunk/MagicSoft/Mars/mimage
- Timestamp:
- 03/05/04 21:29:08 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mimage/MImgCleanStd.cc
r3183 r3415 340 340 MCerPhotEvtIter Next(fEvt, kFALSE); 341 341 while ((pix=static_cast<MCerPhotPix*>(Next()))) 342 if ( data[pix->GetPixId()] <= fCleanLvl1)342 if (!pix->IsPixelUnmapped() && data[pix->GetPixId()] <= fCleanLvl1) 343 343 pix->SetPixelUnused(); 344 344 } … … 356 356 // Loop over used pixels only 357 357 TIter Next(*fEvt); 358 358 359 while ((pix=static_cast<MCerPhotPix*>(Next()))) 359 {360 { 360 361 // get pixel id of this entry 361 362 const Int_t idx = pix->GetPixId(); … … 387 388 // now we declare all pixels that survive as CorePixels 388 389 // 390 389 391 Next.Reset(); 390 392 while ((pix=static_cast<MCerPhotPix*>(Next()))) 391 pix->SetPixelCore(); 393 { 394 if ( pix->IsPixelUsed()) 395 pix->SetPixelCore();} 392 396 } 393 397 … … 430 434 // 431 435 if (pix.GetRing() != 0) 432 return; 436 { 437 return; 438 } 433 439 434 440 // … … 471 477 472 478 // Loop over all pixels 479 473 480 MCerPhotEvtIter NextAll(fEvt, kFALSE); 474 481 while ((pix=static_cast<MCerPhotPix*>(NextAll()))) 475 482 { 476 483 // 477 // if pixel is a core pixelgo to the next pixel484 // if pixel is a core pixel or unmapped, go to the next pixel 478 485 // 479 if (pix->IsPixelCore()) 480 continue; 481 482 if (data[pix->GetPixId()] <= fCleanLvl2) 483 continue; 484 485 if (r==1) 486 CleanStep3b(*pix); 487 else 488 CleanStep4(r, *pix); 486 if (pix->IsPixelCore()) 487 { 488 continue;} 489 if (pix->IsPixelUnmapped()) 490 { 491 continue;} 492 493 if (data[pix->GetPixId()] <= fCleanLvl2) 494 { 495 continue;} 496 497 if (r==1) 498 { 499 CleanStep3b(*pix);} 500 else 501 { 502 CleanStep4(r, *pix);} 503 489 504 } 490 505 } … … 553 568 #endif 554 569 CleanStep1(); 570 555 571 #ifdef DEBUG 556 572 *fLog << all << "CleanStep 2" << endl;
Note:
See TracChangeset
for help on using the changeset viewer.