Ignore:
Timestamp:
01/31/00 20:53:57 (25 years ago)
Author:
harald
Message:
A smaller change concerning the random pointing. I got from Jose Carlos
the information:

>>The point was that the get_new_ct_pointing routine now generates
>>the right coordinates randomly from the original direction with
>>a maximum deviatiation given by the user, but this new directions
>>were not uniformly distributed. Now they are !!

need to be check soon!!
File:
1 edited

Legend:

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

    r348 r349  
    2020//
    2121// $RCSfile: reflector.cxx,v $
    22 // $Revision: 1.9 $
     22// $Revision: 1.10 $
    2323// $Author: harald $
    24 // $Date: 2000-01-28 09:19:54 $
     24// $Date: 2000-01-31 20:53:57 $
    2525//
    2626////////////////////////////////////////////////////////////////////////
     
    35253525  // using this option
    35263526
    3527   it = RandomNumber * range;
     3527  it = acos(cos(range) + RandomNumber * (1 - cos(range)));
    35283528  ip = RandomNumber * 2.0 * M_PI;
    35293529
     
    35633563//
    35643564// $Log: not supported by cvs2svn $
     3565// Revision 1.9  2000/01/28 09:19:54  harald
     3566// A new version from JoseCarlosGonzalez. The old routine for random_pointing
     3567// was not correct. This one should be okay!!
     3568//
    35653569// Revision 1.20  2000/01/27  10:47:54  gonzalez
    35663570// JAN2000-STABLE
Note: See TracChangeset for help on using the changeset viewer.