Ignore:
Timestamp:
11/04/03 11:38:48 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r2422 r2465  
    253253        MCerPhotPix &pix = (*fEvt)[i];
    254254
    255         const Double_t entry  = pix.GetNumPhotons();
    256         const Double_t factor = fCam->GetPixRatio(pix.GetPixId());
    257         const Float_t  noise  = (*fPed)[pix.GetPixId()].GetPedestalRms();
    258 
    259         if (entry * TMath::Sqrt(factor) <= fCleanLvl2 * noise)
     255        const Int_t    idx        = pix.GetPixId();
     256        const Double_t entry      = pix.GetNumPhotons();
     257        const Double_t factor     = fCam->GetPixRatio(idx);
     258        const Double_t factorsqrt = fCam->GetPixRatioSqrt(idx);
     259        const Float_t  noise      = (*fPed)[idx].GetPedestalRms();
     260
     261        if (entry * factorsqrt <= fCleanLvl2 * noise)
    260262        {
    261263            sum += entry*factor;
Note: See TracChangeset for help on using the changeset viewer.