Changeset 431 for trunk/MagicSoft/Simulation
- Timestamp:
- 09/21/00 11:08:10 (24 years ago)
- Location:
- trunk/MagicSoft/Simulation/Detector/Starfield
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/Starfield/Makefile
r341 r431 3 3 ## Starfield Generator Makefile 4 4 ## 5 ## $Id: Makefile,v 1. 1 2000-01-21 13:36:36 petryExp $5 ## $Id: Makefile,v 1.2 2000-09-21 10:08:10 harald Exp $ 6 6 ## 7 7 ################################################################## … … 112 112 # DO NOT DELETE THIS LINE -- make depend depends on it. 113 113 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 114 starfield.o: starfield.h /usr/include/stdlib.h /usr/include/standards.h 115 starfield.o: /usr/include/getopt.h /usr/include/sys/types.h 116 starfield.o: /usr/include/mach/machine/vm_types.h /usr/include/sys/select.h 117 starfield.o: /usr/include/string.h /usr/include/strings.h /usr/include/math.h 118 starfield.o: /usr/include/dirent.h /usr/include/unistd.h 119 starfield.o: /usr/include/sys/access.h /usr/include/sys/seek.h 127 120 starfield.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 121 starfield.o: /usr/include/va_list.h /usr/include/sys/limits.h 122 starfield.o: /usr/include/sys/machine/machlimits.h 123 starfield.o: /usr/include/sys/syslimits.h /usr/include/sys/machine/machtime.h 124 starfield.o: /usr/include/sys/rt_limits.h parameters.h 125 star.o: star.hxx /usr/include/math.h /usr/include/standards.h 126 star.o: /usr/include/stdlib.h /usr/include/getopt.h /usr/include/sys/types.h 127 star.o: /usr/include/mach/machine/vm_types.h /usr/include/sys/select.h 128 star.o: /usr/include/string.h /usr/include/strings.h /usr/include/stdio.h 129 star.o: /usr/include/sys/seek.h /usr/include/va_list.h 130 star.o: /usr/include/sys/limits.h /usr/include/sys/machine/machlimits.h 131 star.o: /usr/include/sys/syslimits.h /usr/include/sys/machine/machtime.h 132 star.o: /usr/include/sys/rt_limits.h 133 photon.o: photon.hxx /usr/include/math.h /usr/include/standards.h 134 photon.o: /usr/include/stdlib.h /usr/include/getopt.h 135 photon.o: /usr/include/sys/types.h /usr/include/mach/machine/vm_types.h 136 photon.o: /usr/include/sys/select.h 151 137 convertcorsika.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 138 convertcorsika.o: /usr/include/standards.h /usr/include/sys/types.h 139 convertcorsika.o: /usr/include/mach/machine/vm_types.h 140 convertcorsika.o: /usr/include/sys/select.h /usr/include/strings.h photon.hxx 141 convertcorsika.o: /usr/include/math.h /usr/include/stdlib.h 142 convertcorsika.o: /usr/include/getopt.h 143 parameters.o: parameters.h /usr/include/stdio.h /usr/include/standards.h 144 parameters.o: /usr/include/sys/seek.h /usr/include/va_list.h 145 parameters.o: /usr/include/sys/types.h /usr/include/mach/machine/vm_types.h 146 parameters.o: /usr/include/sys/select.h /usr/include/getopt.h 147 parameters.o: /usr/include/sys/limits.h /usr/include/sys/machine/machlimits.h 148 parameters.o: /usr/include/sys/syslimits.h 149 parameters.o: /usr/include/sys/machine/machtime.h 150 parameters.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 petryExp $1 $Id: README,v 1.2 2000-09-21 10:08:10 harald Exp $ 2 2 3 3 STARFIELD README … … 30 30 NSB photon rate for each pixel. From this, the camera can then 31 31 generate 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 32 random generator and also taking into account the 34 33 atmospheric extinction and its dependence on the zenith angle. 35 34 … … 76 75 Verbosity level (0 = not verbose, 1 = verbose, 2 = very verbose, 3 = very very ...): 77 76 0 77 Output file name, starfiel will generate cerXXXX and staXXXXX 78 CrabNebula 78 79 79 80 Note that the there is a header line followed by pairs of an explanatory … … 113 114 EOF reached; accepted 0 stars from this segment. 114 115 Accepted 120 stars in total. 115 Writing binary Cherenkov file ./cer 050220...116 Writing binary Cherenkov file ./cerCrabNebula ... 116 117 Done. 117 Writing binary statistics file ./sta 050220...118 Writing binary statistics file ./staCrabNebula ... 118 119 Done. 119 120 120 121 6) Using the output. 121 The two output files (in this case cer 050220 and sta050220) are122 The two output files (in this case cerCrabNebula and staCrabNebula) are 122 123 of the same format as the file for a single event in the CORSIKA 123 124 shower simulation. The number in the name is generated from the … … 189 190 what is going on in detail. 190 191 192 g) Output file name, starfiel will generate cerXXXX and staXXXXX 193 194 This the key name for the output files 195 191 196 8) parameter file name 192 197 … … 199 204 the current directory. If no argument is given, it assumes the 200 205 name of the parameter file is "starfield.par". 201 202 203 204 205 -
trunk/MagicSoft/Simulation/Detector/Starfield/convertcorsika.cxx
r341 r431 11 11 CORStatfile cerstat; 12 12 13 int convertcorsika(int id, int photnum, photon phot[], float inttime_s, int verbose ){13 int convertcorsika(int id, int photnum, photon phot[], float inttime_s, int verbose,char output_name[]){ 14 14 15 15 int i,filenum; … … 17 17 char cor_dir[60]; 18 18 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"; 21 21 22 22 filenum=id; … … 28 28 strcpy (cor_dir, "./"); 29 29 30 s printf(cor_file, "cer%06d",filenum);30 strcat(cor_file, output_name); 31 31 32 32 strcat(cor_dir, cor_file); 33 33 34 34 35 35 // Fill the header of the corsika-like event. … … 103 103 104 104 strcpy (stat_dir, "./"); 105 106 //File labeling. 105 107 106 107 //File labeling. 108 109 sprintf(stat_file, "sta%06d",filenum); 108 strcat(stat_file, output_name); 110 109 111 110 strcat(stat_dir, stat_file); … … 124 123 125 124 } 126 -
trunk/MagicSoft/Simulation/Detector/Starfield/convertcorsika.h
r341 r431 28 28 29 29 //Function definition 30 int convertcorsika(int id, int photnum, photon phot[], float inttime_s, int verbose );30 int convertcorsika(int id, int photnum, photon phot[], float inttime_s, int verbose, char output_name[]); 31 31 32 32 #endif -
trunk/MagicSoft/Simulation/Detector/Starfield/parameters.cxx
r341 r431 86 86 cout << "Verbosity: " << verbose << "\n"; 87 87 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 88 98 ct_ra_h = ira_hours + ira_min/60. + ira_sec/3600.; 89 99 ct_dec_deg = idec_degrees + idec_arcmin/60. + dec_arcsec/3600.; -
trunk/MagicSoft/Simulation/Detector/Starfield/parameters.h
r341 r431 24 24 float mirr_radius_m; // mirror radius inside which photons are generated 25 25 char datapath[160]; // path inside which the catalog and extinction files are found 26 char output_file[160]; 26 27 int verbose; // verbose flag for switching on/off diagnostic output 27 28 -
trunk/MagicSoft/Simulation/Detector/Starfield/starfield.par
r341 r431 9 9 10.0 10 10 Path inside which the star catalog data can be found: 11 /usr/users/ petry/temp/starfield/sky200011 /usr/users/magicsol/blanch/Data 12 12 Verbosity level (0 = not verbose, 1 = verbose, 2 = very verbose, 3 = very very ...): 13 13 0 14 Output file name, starfiel will generate cerXXXX and staXXXXX 15 CrabNebula
Note:
See TracChangeset
for help on using the changeset viewer.