Ignore:
Timestamp:
06/25/03 10:18:53 (22 years ago)
Author:
moralejo
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r2209 r2233  
    332332        const Float_t  entry = pix.GetNumPhotons();
    333333        const Float_t  noise = pix.GetErrorPhot();
    334         const Double_t ratio = TMath::Sqrt(fCam->GetPixRatio(id));
     334
     335        //
     336        // We calculate a correction factor which accounts for the
     337        // fact that pixels have different size (see TDAS 02-14).
     338        //
     339        const Double_t factor = TMath::Sqrt(fCam->GetPixRatio(id));
    335340
    336341        // COBB: '<=' to skip entry=noise=0
    337         if (entry * ratio <= fCleanLvl1 * noise)
     342        if (entry * factor <= fCleanLvl1 * noise)
    338343            pix.SetPixelUnused();
    339344    }
     
    487492    const Float_t  entry = pix.GetNumPhotons();
    488493    const Float_t  noise = pix.GetErrorPhot();
    489     const Double_t ratio = TMath::Sqrt(fCam->GetPixRatio(id));
    490 
    491     return (entry * ratio <= fCleanLvl2 * noise);
     494
     495    //
     496    // We calculate a correction factor which accounts for the
     497    // fact that pixels have different size (see TDAS 02-14).
     498    //
     499    const Double_t factor = TMath::Sqrt(fCam->GetPixRatio(id));
     500
     501    return (entry * factor <= fCleanLvl2 * noise);
    492502}
    493503
Note: See TracChangeset for help on using the changeset viewer.