Ignore:
Timestamp:
11/14/02 21:39:04 (22 years ago)
Author:
bigongia
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r1535 r1614  
    2424float   *Reflectivity[2];       /*  reflectivity table          */
    2525float   *AxisDeviation[2];      /*  axis deviation table        */
    26 float   *ct_Focal;              /*  focal length table          */
    2726
    2827/*  Prototypes  */
     
    3029static void ReadReflectivity(char *datname);
    3130static void ReadAxisDev(char *datname);
    32 static void ReadFocals(void);
    3331
    3432static void ReadMirrorTable(FILE *geofile)
     
    5048                         &ct_data[i].xn,            &ct_data[i].yn,     &ct_data[i].zn))
    5149          break;
     50
    5251      }
    5352    if (i < ct_NMirrors)
     
    121120}   /*  end of ReadAxisDev  */
    122121
    123 static void ReadFocals(void)
    124 {   int loop;
    125 
    126     if ((ct_Focal = (float *) malloc(sizeof(float) * ct_NMirrors)) == NULL)
    127         FatalError(FOCL_FEW___FTL, ct_NMirrors);
    128 
    129     for (loop=0; loop<ct_NMirrors; loop++)
    130         ct_Focal[loop] = ct_data[loop].f;
    131 }   /*  end of ReadFocals  */
    132 
    133122void GeometrySwitch(FILE *geofile)
    134123{   char *value_ptr = NULL;     /*  ptr at parm value   */
     
    218207
    219208
    220     ReadFocals();
    221209}   /*  end of GeometrySwitch  */
    222210
Note: See TracChangeset for help on using the changeset viewer.