Ignore:
Timestamp:
07/09/10 15:19:10 (14 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r9369 r9615  
    664664    MArrayI indices;
    665665
     666    // Add conversion factor for dx here
     667    const Double_t dtmax = lvl*fCam->GetConvMm2Deg();
     668
    666669    const UInt_t npixevt = fEvt->GetNumPixels();
    667670    for (UInt_t idx=0; idx<npixevt; idx++)
     
    689692                continue;
    690693
     694            const Double_t dt = TMath::Abs(npix.GetArrivalTime()-tm0);
     695            const Double_t dx = gpix.GetDist((*fCam)[idx2]);
     696
    691697            // If this pixel is to far away (in arrival time) don't count
    692             if (TMath::Abs(npix.GetArrivalTime()-tm0)>lvl)
     698            if (dt>dtmax*dx)
    693699                continue;
    694700
Note: See TracChangeset for help on using the changeset viewer.