Changeset 2224 for trunk/MagicSoft/Mars/mreflector
- Timestamp:
- 06/23/03 17:58:32 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.