Changeset 431


Ignore:
Timestamp:
09/21/00 11:08:10 (24 years ago)
Author:
harald
Message:
Oscar changed the code just to run it on alpha machines. I just commit
the changes due to problems with the repository.
Location:
trunk/MagicSoft/Simulation/Detector/Starfield
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Simulation/Detector/Starfield/Makefile

    r341 r431  
    33## Starfield Generator Makefile
    44##
    5 ## $Id: Makefile,v 1.1 2000-01-21 13:36:36 petry Exp $
     5## $Id: Makefile,v 1.2 2000-09-21 10:08:10 harald Exp $
    66##   
    77##################################################################
     
    112112# DO NOT DELETE THIS LINE -- make depend depends on it.
    113113
    114 starfield.o: starfield.h /usr/include/stdlib.h /usr/include/features.h
    115 starfield.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h
    116 starfield.o: /usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/include/stddef.h
    117 starfield.o: /usr/include/sys/types.h /usr/include/gnu/types.h
    118 starfield.o: /usr/include/time.h /usr/include/endian.h /usr/include/bytesex.h
    119 starfield.o: /usr/include/sys/select.h /usr/include/selectbits.h
    120 starfield.o: /usr/include/alloca.h /usr/include/string.h /usr/include/math.h
    121 starfield.o: /usr/include/huge_val.h /usr/include/mathcalls.h
    122 starfield.o: /usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/include/float.h
    123 starfield.o: /usr/include/dirent.h /usr/include/direntry.h
    124 starfield.o: /usr/include/posix1_lim.h /usr/include/local_lim.h
    125 starfield.o: /usr/include/linux/limits.h /usr/include/unistd.h
    126 starfield.o: /usr/include/posix_opt.h /usr/include/confname.h
     114starfield.o: starfield.h /usr/include/stdlib.h /usr/include/standards.h
     115starfield.o: /usr/include/getopt.h /usr/include/sys/types.h
     116starfield.o: /usr/include/mach/machine/vm_types.h /usr/include/sys/select.h
     117starfield.o: /usr/include/string.h /usr/include/strings.h /usr/include/math.h
     118starfield.o: /usr/include/dirent.h /usr/include/unistd.h
     119starfield.o: /usr/include/sys/access.h /usr/include/sys/seek.h
    127120starfield.o: convertcorsika.h photon.hxx star.hxx /usr/include/stdio.h
    128 starfield.o: /usr/include/libio.h /usr/include/_G_config.h
    129 starfield.o: /usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/include/stdarg.h
    130 starfield.o: /usr/include/stdio_lim.h parameters.h
    131 star.o: star.hxx /usr/include/math.h /usr/include/features.h
    132 star.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h
    133 star.o: /usr/include/huge_val.h /usr/include/mathcalls.h
    134 star.o: /usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/include/float.h
    135 star.o: /usr/include/string.h
    136 star.o: /usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/include/stddef.h
    137 star.o: /usr/include/stdio.h /usr/include/libio.h /usr/include/_G_config.h
    138 star.o: /usr/include/gnu/types.h
    139 star.o: /usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/include/stdarg.h
    140 star.o: /usr/include/stdio_lim.h
    141 photon.o: photon.hxx /usr/include/math.h /usr/include/features.h
    142 photon.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h
    143 photon.o: /usr/include/huge_val.h /usr/include/mathcalls.h
    144 photon.o: /usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/include/float.h
    145 photon.o: /usr/include/stdlib.h
    146 photon.o: /usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/include/stddef.h
    147 photon.o: /usr/include/sys/types.h /usr/include/gnu/types.h
    148 photon.o: /usr/include/time.h /usr/include/endian.h /usr/include/bytesex.h
    149 photon.o: /usr/include/sys/select.h /usr/include/selectbits.h
    150 photon.o: /usr/include/alloca.h
     121starfield.o: /usr/include/va_list.h /usr/include/sys/limits.h
     122starfield.o: /usr/include/sys/machine/machlimits.h
     123starfield.o: /usr/include/sys/syslimits.h /usr/include/sys/machine/machtime.h
     124starfield.o: /usr/include/sys/rt_limits.h parameters.h
     125star.o: star.hxx /usr/include/math.h /usr/include/standards.h
     126star.o: /usr/include/stdlib.h /usr/include/getopt.h /usr/include/sys/types.h
     127star.o: /usr/include/mach/machine/vm_types.h /usr/include/sys/select.h
     128star.o: /usr/include/string.h /usr/include/strings.h /usr/include/stdio.h
     129star.o: /usr/include/sys/seek.h /usr/include/va_list.h
     130star.o: /usr/include/sys/limits.h /usr/include/sys/machine/machlimits.h
     131star.o: /usr/include/sys/syslimits.h /usr/include/sys/machine/machtime.h
     132star.o: /usr/include/sys/rt_limits.h
     133photon.o: photon.hxx /usr/include/math.h /usr/include/standards.h
     134photon.o: /usr/include/stdlib.h /usr/include/getopt.h
     135photon.o: /usr/include/sys/types.h /usr/include/mach/machine/vm_types.h
     136photon.o: /usr/include/sys/select.h
    151137convertcorsika.o: convertcorsika.h /usr/include/string.h
    152 convertcorsika.o: /usr/include/features.h /usr/include/sys/cdefs.h
    153 convertcorsika.o: /usr/include/gnu/stubs.h
    154 convertcorsika.o: /usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/include/stddef.h
    155 convertcorsika.o: photon.hxx /usr/include/math.h /usr/include/huge_val.h
    156 convertcorsika.o: /usr/include/mathcalls.h
    157 convertcorsika.o: /usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/include/float.h
    158 convertcorsika.o: /usr/include/stdlib.h /usr/include/sys/types.h
    159 convertcorsika.o: /usr/include/gnu/types.h /usr/include/time.h
    160 convertcorsika.o: /usr/include/endian.h /usr/include/bytesex.h
    161 convertcorsika.o: /usr/include/sys/select.h /usr/include/selectbits.h
    162 convertcorsika.o: /usr/include/alloca.h
    163 parameters.o: parameters.h /usr/include/stdio.h /usr/include/libio.h
    164 parameters.o: /usr/include/features.h /usr/include/sys/cdefs.h
    165 parameters.o: /usr/include/gnu/stubs.h /usr/include/_G_config.h
    166 parameters.o: /usr/include/gnu/types.h
    167 parameters.o: /usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/include/stddef.h
    168 parameters.o: /usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/include/stdarg.h
    169 parameters.o: /usr/include/stdio_lim.h
    170 ../include-CORSIKA/COREventHeader.o: ../include-CORSIKA/COREventHeader.hxx
    171 ../include-CORSIKA/COREventHeader.o: /usr/include/stdlib.h
    172 ../include-CORSIKA/COREventHeader.o: /usr/include/features.h
    173 ../include-CORSIKA/COREventHeader.o: /usr/include/sys/cdefs.h
    174 ../include-CORSIKA/COREventHeader.o: /usr/include/gnu/stubs.h
    175 ../include-CORSIKA/COREventHeader.o: /usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/include/stddef.h
    176 ../include-CORSIKA/COREventHeader.o: /usr/include/sys/types.h
    177 ../include-CORSIKA/COREventHeader.o: /usr/include/gnu/types.h
    178 ../include-CORSIKA/COREventHeader.o: /usr/include/time.h
    179 ../include-CORSIKA/COREventHeader.o: /usr/include/endian.h
    180 ../include-CORSIKA/COREventHeader.o: /usr/include/bytesex.h
    181 ../include-CORSIKA/COREventHeader.o: /usr/include/sys/select.h
    182 ../include-CORSIKA/COREventHeader.o: /usr/include/selectbits.h
    183 ../include-CORSIKA/COREventHeader.o: /usr/include/alloca.h
    184 ../include-CORSIKA/COREventHeader.o: /usr/include/math.h
    185 ../include-CORSIKA/COREventHeader.o: /usr/include/huge_val.h
    186 ../include-CORSIKA/COREventHeader.o: /usr/include/mathcalls.h
    187 ../include-CORSIKA/COREventHeader.o: /usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/include/float.h
    188 ../include-CORSIKA/CORParticle.o: ../include-CORSIKA/CORParticle.hxx
    189 ../include-CORSIKA/CORParticle.o: /usr/include/stdlib.h
    190 ../include-CORSIKA/CORParticle.o: /usr/include/features.h
    191 ../include-CORSIKA/CORParticle.o: /usr/include/sys/cdefs.h
    192 ../include-CORSIKA/CORParticle.o: /usr/include/gnu/stubs.h
    193 ../include-CORSIKA/CORParticle.o: /usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/include/stddef.h
    194 ../include-CORSIKA/CORParticle.o: /usr/include/sys/types.h
    195 ../include-CORSIKA/CORParticle.o: /usr/include/gnu/types.h
    196 ../include-CORSIKA/CORParticle.o: /usr/include/time.h /usr/include/endian.h
    197 ../include-CORSIKA/CORParticle.o: /usr/include/bytesex.h
    198 ../include-CORSIKA/CORParticle.o: /usr/include/sys/select.h
    199 ../include-CORSIKA/CORParticle.o: /usr/include/selectbits.h
    200 ../include-CORSIKA/CORParticle.o: /usr/include/alloca.h /usr/include/math.h
    201 ../include-CORSIKA/CORParticle.o: /usr/include/huge_val.h
    202 ../include-CORSIKA/CORParticle.o: /usr/include/mathcalls.h
    203 ../include-CORSIKA/CORParticle.o: /usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/include/float.h
    204 ../include-CORSIKA/CORStatfile.o: ../include-CORSIKA/CORStatfile.hxx
    205 ../include-CORSIKA/CORStatfile.o: /usr/include/stdlib.h
    206 ../include-CORSIKA/CORStatfile.o: /usr/include/features.h
    207 ../include-CORSIKA/CORStatfile.o: /usr/include/sys/cdefs.h
    208 ../include-CORSIKA/CORStatfile.o: /usr/include/gnu/stubs.h
    209 ../include-CORSIKA/CORStatfile.o: /usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/include/stddef.h
    210 ../include-CORSIKA/CORStatfile.o: /usr/include/sys/types.h
    211 ../include-CORSIKA/CORStatfile.o: /usr/include/gnu/types.h
    212 ../include-CORSIKA/CORStatfile.o: /usr/include/time.h /usr/include/endian.h
    213 ../include-CORSIKA/CORStatfile.o: /usr/include/bytesex.h
    214 ../include-CORSIKA/CORStatfile.o: /usr/include/sys/select.h
    215 ../include-CORSIKA/CORStatfile.o: /usr/include/selectbits.h
    216 ../include-CORSIKA/CORStatfile.o: /usr/include/alloca.h /usr/include/math.h
    217 ../include-CORSIKA/CORStatfile.o: /usr/include/huge_val.h
    218 ../include-CORSIKA/CORStatfile.o: /usr/include/mathcalls.h
    219 ../include-CORSIKA/CORStatfile.o: /usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/include/float.h
     138convertcorsika.o: /usr/include/standards.h /usr/include/sys/types.h
     139convertcorsika.o: /usr/include/mach/machine/vm_types.h
     140convertcorsika.o: /usr/include/sys/select.h /usr/include/strings.h photon.hxx
     141convertcorsika.o: /usr/include/math.h /usr/include/stdlib.h
     142convertcorsika.o: /usr/include/getopt.h
     143parameters.o: parameters.h /usr/include/stdio.h /usr/include/standards.h
     144parameters.o: /usr/include/sys/seek.h /usr/include/va_list.h
     145parameters.o: /usr/include/sys/types.h /usr/include/mach/machine/vm_types.h
     146parameters.o: /usr/include/sys/select.h /usr/include/getopt.h
     147parameters.o: /usr/include/sys/limits.h /usr/include/sys/machine/machlimits.h
     148parameters.o: /usr/include/sys/syslimits.h
     149parameters.o: /usr/include/sys/machine/machtime.h
     150parameters.o: /usr/include/sys/rt_limits.h
  • trunk/MagicSoft/Simulation/Detector/Starfield/README

    r341 r431  
    1 $Id: README,v 1.1 2000-01-21 13:36:36 petry Exp $
     1$Id: README,v 1.2 2000-09-21 10:08:10 harald Exp $
    22
    33STARFIELD README
     
    3030NSB photon rate for each pixel. From this, the camera can then
    3131generate the NSB contribution in each shower image using a Poisson
    32 random generator (at present, 21-1-2000, this is not yet implemented
    33 but it will be very soon) and also taking into account the
     32random generator and also taking into account the
    3433atmospheric extinction and its dependence on the zenith angle.
    3534
     
    7675     Verbosity level (0 = not verbose, 1 = verbose, 2 = very verbose, 3 = very very ...):
    7776     0
     77     Output file name, starfiel will generate cerXXXX and staXXXXX
     78     CrabNebula
    7879
    7980   Note that the there is a header line followed by pairs of an explanatory
     
    113114     EOF reached; accepted 0 stars from this segment.
    114115     Accepted 120 stars in total.
    115      Writing binary Cherenkov file ./cer050220 ...
     116     Writing binary Cherenkov file ./cerCrabNebula ...
    116117     Done.
    117      Writing binary statistics file  ./sta050220 ...
     118     Writing binary statistics file  ./staCrabNebula ...
    118119     Done.
    119120
    1201216) Using the output.
    121    The two output files (in this case cer050220 and sta050220) are
     122   The two output files (in this case cerCrabNebula and staCrabNebula) are
    122123   of the same format as the file for a single event in the CORSIKA
    123124   shower simulation. The number in the name is generated from the
     
    189190      what is going on in detail.
    190191
     192   g) Output file name, starfiel will generate cerXXXX and staXXXXX
     193
     194      This the key name for the output files
     195
    1911968) parameter file name
    192197
     
    199204   the current directory. If no argument is given, it assumes the
    200205   name of the parameter file is "starfield.par".
    201 
    202 
    203 
    204 
    205 
  • trunk/MagicSoft/Simulation/Detector/Starfield/convertcorsika.cxx

    r341 r431  
    1111CORStatfile cerstat;
    1212
    13 int convertcorsika(int id, int photnum, photon phot[], float inttime_s, int verbose){
     13int convertcorsika(int id, int photnum, photon phot[], float inttime_s, int verbose,char output_name[]){
    1414
    1515  int i,filenum;
     
    1717  char cor_dir[60];
    1818  char stat_dir[60]; 
    19   char cor_file[15];
    20   char stat_file[15];
     19  char cor_file[20]="cer";
     20  char stat_file[20]="sta";
    2121 
    2222  filenum=id;
     
    2828  strcpy (cor_dir, "./");
    2929 
    30   sprintf(cor_file, "cer%06d",filenum);
     30  strcat(cor_file, output_name);
    3131   
    3232  strcat(cor_dir, cor_file);
    33  
     33
    3434 
    3535  // Fill the header of the corsika-like event.
     
    103103 
    104104  strcpy (stat_dir, "./");
     105   
     106  //File labeling.
    105107 
    106  
    107   //File labeling.
    108  
    109   sprintf(stat_file, "sta%06d",filenum);
     108  strcat(stat_file, output_name);
    110109   
    111110  strcat(stat_dir, stat_file);
     
    124123     
    125124}
    126 
  • trunk/MagicSoft/Simulation/Detector/Starfield/convertcorsika.h

    r341 r431  
    2828
    2929//Function definition
    30 int convertcorsika(int id, int photnum, photon phot[], float inttime_s, int verbose);
     30int convertcorsika(int id, int photnum, photon phot[], float inttime_s, int verbose, char output_name[]);
    3131
    3232#endif
  • trunk/MagicSoft/Simulation/Detector/Starfield/parameters.cxx

    r341 r431  
    8686  cout << "Verbosity: " << verbose << "\n";
    8787
     88  in->getline(dummy, sizeof(dummy), '\n');
     89  if(verbose) cout << dummy << "\n";
     90  if(in->eof()) return(in->good());
     91
     92  in->getline(dummy, sizeof(dummy), '\n');
     93  if(verbose) cout << dummy << "\n";
     94  sscanf(dummy, "%s", output_file);
     95  cout << "Output Files : cer" << output_file << " and sta"<<output_file<<endl;
     96  if(in->eof()) return(in->good());
     97
    8898  ct_ra_h = ira_hours + ira_min/60. + ira_sec/3600.;
    8999  ct_dec_deg = idec_degrees + idec_arcmin/60. + dec_arcsec/3600.;
  • trunk/MagicSoft/Simulation/Detector/Starfield/parameters.h

    r341 r431  
    2424  float mirr_radius_m; // mirror radius inside which photons are generated
    2525  char datapath[160]; // path inside which the catalog and extinction files are found
     26  char output_file[160];
    2627  int verbose; // verbose flag for switching on/off diagnostic output
    2728
  • trunk/MagicSoft/Simulation/Detector/Starfield/starfield.par

    r341 r431  
    9910.0
    1010Path inside which the star catalog data can be found:
    11 /usr/users/petry/temp/starfield/sky2000
     11/usr/users/magicsol/blanch/Data
    1212Verbosity level (0 = not verbose, 1 = verbose, 2 = very verbose, 3 = very very ...):
    13130
     14Output file name, starfiel will generate cerXXXX and staXXXXX
     15CrabNebula
Note: See TracChangeset for help on using the changeset viewer.