Ignore:
Timestamp:
10/09/02 19:15:28 (22 years ago)
Author:
bigongia
Message:
Version 0.6. Changed output format: added run header, changed event header,
             added ascii parameter files attached at the end of every output
             file to keep all info.
File:
1 edited

Legend:

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

    r1431 r1535  
    99extern  char line[];            /*  parsing buf. (init) */
    1010extern  char axisdev_filename[256], reflectivity_filename[256];
    11 
    12 float   mean_refl;              /*  Mirror mean reflectivity 270-610 nm.
    13                                  *  AM June 2002.
    14                                  */
    1511
    1612float   ct_Focal_mean;          /*  focal dist. (mean) (cm)     */
     
    2420
    2521mirror *ct_data=NULL;           /*  ptr to mirror data          */
    26 FILE   *ct_BinaryData=NULL;     /*  binary data for mirrors     */
    27 char    ct_BinaryName[128];     /*  binary data filename        */
    2822
    2923int     nReflectivity=0;        /*  elements in refl. table     */
     
    6660    FILE *datfile = fopen(datname, "r");
    6761    int current = 0;
    68 
    69     mean_refl = 0.;
    7062
    7163    if (datfile == NULL)
     
    9385                             &Reflectivity[1][current]))
    9486      {
    95         // Added June 2002, AM:
    96         mean_refl += Reflectivity[1][current];
    9787        current++;
    9888        if (current >= nReflectivity) break;
     
    10292
    10393    nReflectivity = current;
    104     if (current > 0)
    105       mean_refl /= (float) current;
    10694
    10795}   /*  end of ReadReflectivity  */
Note: See TracChangeset for help on using the changeset viewer.