Changeset 2465 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
11/04/03 11:38:48 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r2464 r2465  
    2828     - changed version number from 1 to 2
    2929
    30    * mimage/MImgCleanStd.cc:
     30   * mimage/MImgCleanStd.cc, mimage/MImgCleanTGB.cc:
    3131     - directly use MGeomCam::GetPixRatioSqrt() now
    3232
  • trunk/MagicSoft/Mars/mimage/MImgCleanStd.cc

    r2445 r2465  
    343343        // fact that pixels have different size (see TDAS 02-14).
    344344        //
    345         const Double_t factor = TMath::Sqrt(fCam->GetPixRatio(idx));
     345        const Double_t factor = fCam->GetPixRatioSqrt(idx);
    346346
    347347        // COBB: '<=' to skip entry=noise=0
     
    509509    // fact that pixels have different size (see TDAS 02-14).
    510510    //
    511     const Double_t factor = TMath::Sqrt(fCam->GetPixRatio(idx));
     511    const Double_t factor = fCam->GetPixRatioSqrt(idx);
    512512
    513513    return (entry * factor <= fCleanLvl2 * noise);
  • 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.