Ignore:
Timestamp:
04/29/03 23:47:38 (22 years ago)
Author:
moralejo
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Simulation/Detector/ReflectorII/Changelog

    r1960 r2046  
    11** Add changes at the beginning! **
     2
     329/04/2003 A. Moralejo
     4
     5ph2cph.c:
     6Changed determination of which mirror element is hit. Before there was a
     7problem when going to very large distances from the mirror center, sometimes
     8a wrong mirror was chosen, which was actually further away from the impact
     9point 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
     11new 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
     27geometry.c:
     28Small change in calculation of ct_nax_radius (introduced fabs, but nothing
     29changes)
    230
    33116/04/2003 A. Moralejo
Note: See TracChangeset for help on using the changeset viewer.