Ignore:
Timestamp:
03/05/04 21:29:08 (21 years ago)
Author:
tonello
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mimage/MImgCleanStd.cc

    r3183 r3415  
    340340    MCerPhotEvtIter Next(fEvt, kFALSE);
    341341    while ((pix=static_cast<MCerPhotPix*>(Next())))
    342         if (data[pix->GetPixId()] <= fCleanLvl1)
     342        if (!pix->IsPixelUnmapped() && data[pix->GetPixId()] <= fCleanLvl1)
    343343            pix->SetPixelUnused();
    344344}
     
    356356    // Loop over used pixels only
    357357    TIter Next(*fEvt);
     358
    358359    while ((pix=static_cast<MCerPhotPix*>(Next())))
    359     {
     360          {
    360361        // get pixel id of this entry
    361362        const Int_t idx = pix->GetPixId();
     
    387388    // now we declare all pixels that survive as CorePixels
    388389    //
     390
    389391    Next.Reset();
    390392    while ((pix=static_cast<MCerPhotPix*>(Next())))
    391         pix->SetPixelCore();
     393      {
     394        if ( pix->IsPixelUsed())
     395        pix->SetPixelCore();}
    392396}
    393397
     
    430434    //
    431435    if (pix.GetRing() != 0)
    432         return;
     436      { 
     437        return;
     438      }
    433439
    434440    //
     
    471477
    472478        // Loop over all pixels
     479
    473480        MCerPhotEvtIter NextAll(fEvt, kFALSE);
    474481        while ((pix=static_cast<MCerPhotPix*>(NextAll())))
    475         {
     482          {
    476483            //
    477             // if pixel is a core pixel go to the next pixel
     484            // if pixel is a core pixel or unmapped, go to the next pixel
    478485            //
    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         
    489504        }
    490505    }
     
    553568#endif
    554569    CleanStep1();
     570
    555571#ifdef DEBUG
    556572    *fLog << all << "CleanStep 2" << endl;
Note: See TracChangeset for help on using the changeset viewer.