Changeset 2224


Ignore:
Timestamp:
06/23/03 17:58:32 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r2221 r2224  
    157157     - added filename to canvas
    158158 
    159    * macros/readMagic.C, macros/readCT1.C, macros/status.C:
     159   * macros/readMagic.C, macros/readCT1.C, macros/status.C,
     160     macros/readcurrents.C, macros/readrfl.C:
    160161     - adapted to changes
    161162     
  • 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.