Ignore:
Timestamp:
11/19/02 13:31:21 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r1641 r1647  
    117117        const Float_t noise = pix.GetErrorPhot();
    118118
     119        const Int_t id = pix.GetPixId();
     120
     121        const Double_t ratio = TMath::Sqrt(fCam->GetPixRatio(id));
     122
    119123        // COBB: '<=' to skip entry=noise=0
    120         if (entry <= fCleanLvl1 * noise / sqrt(fCam->GetPixRatio(i)))
     124        if (entry <= fCleanLvl1 * noise / ratio)
    121125            pix.SetPixelUnused();
    122126
    123         if (pix.GetPixId()>max)
    124             max = pix.GetPixId();
     127        if (id>max)
     128            max = id;
    125129    }
    126130    return max;
     
    265269        const Float_t noise = pix.GetErrorPhot();
    266270
    267         if (entry <= fCleanLvl2 * noise / sqrt(fCam->GetPixRatio(i)))
    268             continue;
    269 
    270271        //
    271272        // get pixel id of this entry
    272273        //
    273274        const Int_t id = pix.GetPixId();
     275
     276        const Double_t ratio = TMath::Sqrt(fCam->GetPixRatio(id));
     277
     278        if (entry <= fCleanLvl2 * noise / ratio)
     279            continue;
    274280
    275281        //
Note: See TracChangeset for help on using the changeset viewer.