Changeset 2224
- Timestamp:
- 06/23/03 17:58:32 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r2221 r2224 157 157 - added filename to canvas 158 158 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: 160 161 - adapted to changes 161 162 -
trunk/MagicSoft/Mars/mreflector/MRflEvtData.cc
r2208 r2224 123 123 val = 0; 124 124 125 MHexagon hex(cam[idx]); 125 126 for (Int_t i=0; i<entries; i++) 126 127 { 127 128 const MRflSinglePhoton &ph = GetPhoton(i); 128 129 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); 140 132 } 141 133
Note:
See TracChangeset
for help on using the changeset viewer.