Changeset 1908 for trunk/MagicSoft/Simulation/Detector/ReflectorII/ph2cph.c
- Timestamp:
- 04/04/03 21:15:24 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/ReflectorII/ph2cph.c
r1624 r1908 92 92 93 93 float distmirr, distmirr2; /* distances used in MAGIC reflection routine */ 94 95 94 96 float sx, sy; 95 97 float t1, t2; … … 307 309 308 310 /* is it outside the dish? */ 309 310 if ((fabs(sx) > 850.0) || (fabs(sy) > 850.0)) { 311 if ((fabs(sx) > ct_max_radius) || (fabs(sy) > ct_max_radius)) { 311 312 /* 312 313 cout << "CONDITION 1 !" << endl << flush; … … 848 849 Lin2Curv(float x) 849 850 { 851 /* 850 852 x /= 100.f; 851 853 return ((x + 0.000144175317185f * x * x * x)*100.f); 854 */ 855 856 double k = 0.25/ct_Focal_mean; 857 return ((2*k*x*sqrt(1+4*k*k*x*x)+asinh(2*k*x))/4/k); 852 858 } 853 859
Note:
See TracChangeset
for help on using the changeset viewer.