Changeset 346 for trunk


Ignore:
Timestamp:
01/25/00 16:25:09 (25 years ago)
Author:
blanch
Message:
A sign problem in get_new_ct_pointing was solved
File:
1 edited

Legend:

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

    r339 r346  
    2020//
    2121// $RCSfile: reflector.cxx,v $
    22 // $Revision: 1.6 $
     22// $Revision: 1.7 $
    2323// $Author: blanch $
    24 // $Date: 2000-01-14 16:39:50 $
     24// $Date: 2000-01-25 16:25:09 $
    2525//
    2626////////////////////////////////////////////////////////////////////////
     
    34993499  int i;
    35003500
    3501   //Random position of the CT. Theta distribution
    3502   //follows sin(theta) and ohi distribution is flat
     3501  //Random position of the CT. It is the distance
     3502  //between shower axis and CT position and its 
     3503  //distribution follows sin(it).
    35033504
    35043505  range_aux=1.0-sin(M_PI/2-range);
     
    35103511  cos_theta = cos(theta);
    35113512
    3512   cos_newtheta = cos_theta*cos(it) + sin_theta*sin(it)*cos(ip);
     3513  cos_newtheta = cos_theta*cos(it) - sin_theta*sin(it)*cos(ip);
    35133514  *newtheta = acos( cos_newtheta );
    35143515  sin_newtheta = sin( *newtheta );
Note: See TracChangeset for help on using the changeset viewer.