Changeset 18286


Ignore:
Timestamp:
08/22/15 00:26:37 (9 years ago)
Author:
Daniela Dorner
Message:
fixed bug (signle pixels were not ignored) and ignore unmapped pixels
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mimage/MImgCleanTime.cc

    r17860 r18286  
    9999    const Float_t time1 = pix1.GetArrivalTime();
    100100
     101    if (pix1.IsPixelUnmapped())
     102        return Island(0,time1);
     103
    101104    Island island(pix1.GetNumPhotons(), time1);
    102105
     
    106109
    107110        MSignalPix &pix2 = (*fEvt)[idx2];
     111        if (pix2.IsPixelUnmapped())
     112            continue;
    108113
    109114        const Int_t island2 = pix2.GetIdxIsland();
     
    137142Int_t MImgCleanTime::Process()
    138143{
    139     // The assumption is that all pixels contain valid data
     144    // The assumption is that all mapped pixels contain valid data
    140145    const UInt_t npix = fEvt->GetNumPixels();
    141146    for (UInt_t i=0; i<npix; i++)
    142147    {
    143148        MSignalPix &pix = (*fEvt)[i];
    144         pix.SetPixelUnused();
     149        if (!pix.IsPixelUnmapped())
     150            pix.SetPixelUnused();
    145151        pix.SetPixelCore(kFALSE);
    146152        pix.SetIdxIsland(-1);
     
    182188        // The ideal cut would be to allow that a single
    183189        // pixel still can connect two clusters
    184         if (I1.count==1 || I1.count==1)
     190        if (I1.count==1 || I2.count==1)
    185191            continue;
    186192
Note: See TracChangeset for help on using the changeset viewer.