- Timestamp:
- 10/09/02 19:15:28 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/ReflectorII/geometry.c
r1431 r1535 9 9 extern char line[]; /* parsing buf. (init) */ 10 10 extern char axisdev_filename[256], reflectivity_filename[256]; 11 12 float mean_refl; /* Mirror mean reflectivity 270-610 nm.13 * AM June 2002.14 */15 11 16 12 float ct_Focal_mean; /* focal dist. (mean) (cm) */ … … 24 20 25 21 mirror *ct_data=NULL; /* ptr to mirror data */ 26 FILE *ct_BinaryData=NULL; /* binary data for mirrors */27 char ct_BinaryName[128]; /* binary data filename */28 22 29 23 int nReflectivity=0; /* elements in refl. table */ … … 66 60 FILE *datfile = fopen(datname, "r"); 67 61 int current = 0; 68 69 mean_refl = 0.;70 62 71 63 if (datfile == NULL) … … 93 85 &Reflectivity[1][current])) 94 86 { 95 // Added June 2002, AM:96 mean_refl += Reflectivity[1][current];97 87 current++; 98 88 if (current >= nReflectivity) break; … … 102 92 103 93 nReflectivity = current; 104 if (current > 0)105 mean_refl /= (float) current;106 94 107 95 } /* end of ReadReflectivity */
Note:
See TracChangeset
for help on using the changeset viewer.