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/geometry.c

    r1614 r1908  
    1818int     ct_NPixels;             /*  number of pixels            */
    1919float   ct_PixelWidth;          /*  pixel width (cm)            */
     20float   ct_max_radius;          /* Maximum value of curvilinear
     21                                 * coordinates of the center of
     22                                 * the mirrors.
     23                                 */
    2024
    2125mirror *ct_data=NULL;           /*  ptr to mirror data          */
     
    3236static void ReadMirrorTable(FILE *geofile)
    3337{   int i;      /*  Mirror index        */
     38
     39    ct_max_radius = 0.;
    3440
    3541    if ((ct_data=(mirror *)malloc(sizeof(mirror)*ct_NMirrors)) == NULL)
     
    4955          break;
    5056
     57        ct_max_radius = (ct_data[i].sx > ct_max_radius? ct_data[i].sx :
     58                         ct_max_radius);
     59        ct_max_radius = (ct_data[i].sy > ct_max_radius? ct_data[i].sy :
     60                         ct_max_radius);
    5161      }
     62
    5263    if (i < ct_NMirrors)
    5364      FatalError(MIRR_FEW___FTL, i);
     
    198209    fclose(geofile);
    199210
     211    ct_max_radius += ct_RMirror;
     212
    200213    if (strlen(reflectivity_filename) == 0)
    201214      strcpy(reflectivity_filename, REFLECTIVITY_FILE);
Note: See TracChangeset for help on using the changeset viewer.