Changeset 346 for trunk/MagicSoft/Simulation/Detector/Reflector
- Timestamp:
- 01/25/00 16:25:09 (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/Reflector/reflector.cxx
r339 r346 20 20 // 21 21 // $RCSfile: reflector.cxx,v $ 22 // $Revision: 1. 6$22 // $Revision: 1.7 $ 23 23 // $Author: blanch $ 24 // $Date: 2000-01- 14 16:39:50$24 // $Date: 2000-01-25 16:25:09 $ 25 25 // 26 26 //////////////////////////////////////////////////////////////////////// … … 3499 3499 int i; 3500 3500 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). 3503 3504 3504 3505 range_aux=1.0-sin(M_PI/2-range); … … 3510 3511 cos_theta = cos(theta); 3511 3512 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); 3513 3514 *newtheta = acos( cos_newtheta ); 3514 3515 sin_newtheta = sin( *newtheta );
Note:
See TracChangeset
for help on using the changeset viewer.