Ignore:
Timestamp:
01/03/00 12:41:26 (25 years ago)
Author:
harald
Message:
There was a small mistake with +/- signs in the prevois versions. This
line was founded by Jose Carlos. His remark is following:

Look for the comment I include here in this block: you will see that
now the following expression has a +- sign, where before it was only
+ (or -, I don't remember, but only one)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Simulation/Detector/Reflector/reflector.cxx

    r301 r336  
    2020//
    2121// $RCSfile: reflector.cxx,v $
    22 // $Revision: 1.2 $
     22// $Revision: 1.3 $
    2323// $Author: harald $
    24 // $Date: 1999-11-01 11:05:54 $
     24// $Date: 2000-01-03 12:41:26 $
    2525//
    2626////////////////////////////////////////////////////////////////////////
     
    19861986        // the photon actually hit the mirror!!
    19871987
    1988         t = t - sqrt( SQR(xm[0] - xcut[0]) +
    1989                       SQR(xm[1] - xcut[1]) +
    1990                       SQR(xm[2] - xcut[2]) ) / Speed_of_Light_air_cmns;
    1991        
     1988        t = t + ((( xm[2] > 0. ) ? -1.0 : +1.0) *
     1989                 sqrt( SQR(xm[0] - xcut[0]) +
     1990                       SQR(xm[1] - xcut[1]) +
     1991                       SQR(xm[2] - xcut[2]) ) / Speed_of_Light_air_cmns);
    19921992        // add path from the mirror till the camera
    19931993
     
    35313531//
    35323532// $Log: not supported by cvs2svn $
     3533// Revision 1.2  1999/11/01 11:05:54  harald
     3534// Small changes to comile the reflector program under linux.
     3535// (Different use of NULL on DECalphas-osf1 and on linux)
     3536//
    35333537// Revision 1.1.1.1  1999/10/29  07:00:33  harald
    35343538// This is the startpoint for the futher development of the Reflector program
Note: See TracChangeset for help on using the changeset viewer.