Ignore:
Timestamp:
06/23/03 17:58:32 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mreflector/MRflEvtData.cc

    r2208 r2224  
    123123    val = 0;
    124124
     125    MHexagon hex(cam[idx]);
    125126    for (Int_t i=0; i<entries; i++)
    126127    {
    127128        const MRflSinglePhoton &ph = GetPhoton(i);
    128129
    129         UInt_t idx;
    130         for (idx=0; idx<cam.GetNumPixels(); idx++)
    131         {
    132             MHexagon hex(cam[idx]);
    133             if (hex.DistanceToPrimitive(ph.GetX(), ph.GetY())<0)
    134                 break;
    135         }
    136         if (idx==cam.GetNumPixels())
    137             continue;
    138 
    139         val += cam.GetPixRatio(idx);
     130        if (hex.DistanceToPrimitive(ph.GetX(), ph.GetY())<=0)
     131            val += cam.GetPixRatio(idx);
    140132    }
    141133
Note: See TracChangeset for help on using the changeset viewer.