Changeset 18275


Ignore:
Timestamp:
07/26/15 22:44:30 (9 years ago)
Author:
Daniela Dorner
Message:
fixed bug in calculation of fConcCore
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mimage/MNewImagePar.cc

    r9374 r18275  
    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 (sqrt(distr)>sqrt(dist0)-dz || (dzx==0 && dzy==0))
    226225            fConcCore += nphot;
    227226
Note: See TracChangeset for help on using the changeset viewer.