Changeset 2233 for trunk


Ignore:
Timestamp:
06/25/03 10:18:53 (21 years ago)
Author:
moralejo
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r2231 r2233  
    11                                                 -*-*- END OF LINE -*-*-
     2
     3 2003/06/25: Abelardo Moralejo
     4
     5   * mimage/MImgCleanStd.cc:
     6     - Changed name of variable "ratio" to "factor", wherever it meant
     7       the square root of the ratio between the area of an inner pixel
     8       and the current pixel (it was confusing).
    29
    310 2003/06/24: Thomas Bretz
  • 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.