Ignore:
Timestamp:
08/18/15 10:09:13 (10 years ago)
Author:
ftemme
Message:
Merging trunk into MarsWobble branch
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/MarsWobble/mimage/MNewImagePar.cc

    r9374 r18278  
    220220        const Double_t dzx   =  hillas.GetCosDelta()*dx + hillas.GetSinDelta()*dy; // [mm]
    221221        const Double_t dzy   = -hillas.GetSinDelta()*dx + hillas.GetCosDelta()*dy; // [mm]
    222         const Double_t dz    =  gpix.GetT()*gpix.GetT()/4;
    223         const Double_t tana  =  dzy*dzy/(dzx*dzx);
    224         const Double_t distr =  (1+tana)/(rl + tana*rw);
    225         if (distr>dist0-dz || dzx==0)
     222        const Double_t dz    =  gpix.GetT()/2;
     223        const Double_t distr =  (dzy*dzy+dzx*dzx)/(dzx*dzx*rl + dzy*dzy*rw);
     224        if ((dzx==0 && dzy==0) || sqrt(distr)>sqrt(dist0)-dz)
    226225            fConcCore += nphot;
    227226
Note: See TracChangeset for help on using the changeset viewer.