- Timestamp:
- 04/29/03 23:47:38 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/ReflectorII/Changelog
r1960 r2046 1 1 ** Add changes at the beginning! ** 2 3 29/04/2003 A. Moralejo 4 5 ph2cph.c: 6 Changed determination of which mirror element is hit. Before there was a 7 problem when going to very large distances from the mirror center, sometimes 8 a wrong mirror was chosen, which was actually further away from the impact 9 point than the mirror size, and therefore the photon was discarded later as 10 "not hitting any mirror". Now we measure the distance on the paraboloid. The 11 new code is: 12 13 /* calculate the mirror to be used */ 14 15 distmirr = 1000000.0f; 16 17 for (i=0; i<ct_NMirrors && distmirr>=ct_RMirror; ++i) { 18 distmirr2 = (float) sqrt(SQR(ct_data[i].sx - sx) + 19 SQR(ct_data[i].sy - sy)); 20 21 if (distmirr2 < distmirr) { 22 i_mirror = i; 23 distmirr = distmirr2; 24 } 25 } 26 27 geometry.c: 28 Small change in calculation of ct_nax_radius (introduced fabs, but nothing 29 changes) 2 30 3 31 16/04/2003 A. Moralejo
Note:
See TracChangeset
for help on using the changeset viewer.