Ignore:
Timestamp:
04/04/03 21:15:24 (21 years ago)
Author:
moralejo
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Simulation/Detector/ReflectorII/ph2cph.c

    r1624 r1908  
    9292
    9393  float distmirr, distmirr2;  /* distances used in MAGIC reflection routine */
     94
     95
    9496  float sx, sy;
    9597  float t1, t2;
     
    307309
    308310  /*  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)) {
    311312    /*
    312313    cout << "CONDITION 1 !" << endl << flush;
     
    848849Lin2Curv(float x)
    849850{
     851/*
    850852  x /= 100.f;
    851853  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);
    852858}
    853859
Note: See TracChangeset for help on using the changeset viewer.