- Timestamp:
- 04/04/03 21:15:24 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/ReflectorII/geometry.c
r1614 r1908 18 18 int ct_NPixels; /* number of pixels */ 19 19 float ct_PixelWidth; /* pixel width (cm) */ 20 float ct_max_radius; /* Maximum value of curvilinear 21 * coordinates of the center of 22 * the mirrors. 23 */ 20 24 21 25 mirror *ct_data=NULL; /* ptr to mirror data */ … … 32 36 static void ReadMirrorTable(FILE *geofile) 33 37 { int i; /* Mirror index */ 38 39 ct_max_radius = 0.; 34 40 35 41 if ((ct_data=(mirror *)malloc(sizeof(mirror)*ct_NMirrors)) == NULL) … … 49 55 break; 50 56 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); 51 61 } 62 52 63 if (i < ct_NMirrors) 53 64 FatalError(MIRR_FEW___FTL, i); … … 198 209 fclose(geofile); 199 210 211 ct_max_radius += ct_RMirror; 212 200 213 if (strlen(reflectivity_filename) == 0) 201 214 strcpy(reflectivity_filename, REFLECTIVITY_FILE);
Note:
See TracChangeset
for help on using the changeset viewer.