Changeset 432 for trunk/MagicSoft/Simulation
- Timestamp:
- 09/21/00 11:31:36 (24 years ago)
- Location:
- trunk/MagicSoft/Simulation/Detector/Starfield
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/Starfield/Makefile
r431 r432 3 3 ## Starfield Generator Makefile 4 4 ## 5 ## $Id: Makefile,v 1. 2 2000-09-21 10:08:10harald Exp $5 ## $Id: Makefile,v 1.3 2000-09-21 10:31:36 harald Exp $ 6 6 ## 7 7 ################################################################## … … 149 149 parameters.o: /usr/include/sys/machine/machtime.h 150 150 parameters.o: /usr/include/sys/rt_limits.h 151 ../include-CORSIKA/COREventHeader.o: ../include-CORSIKA/COREventHeader.hxx 152 ../include-CORSIKA/COREventHeader.o: /usr/include/stdlib.h 153 ../include-CORSIKA/COREventHeader.o: /usr/include/standards.h 154 ../include-CORSIKA/COREventHeader.o: /usr/include/getopt.h 155 ../include-CORSIKA/COREventHeader.o: /usr/include/sys/types.h 156 ../include-CORSIKA/COREventHeader.o: /usr/include/mach/machine/vm_types.h 157 ../include-CORSIKA/COREventHeader.o: /usr/include/sys/select.h 158 ../include-CORSIKA/COREventHeader.o: /usr/include/math.h 159 ../include-CORSIKA/CORParticle.o: ../include-CORSIKA/CORParticle.hxx 160 ../include-CORSIKA/CORParticle.o: /usr/include/stdlib.h 161 ../include-CORSIKA/CORParticle.o: /usr/include/standards.h 162 ../include-CORSIKA/CORParticle.o: /usr/include/getopt.h 163 ../include-CORSIKA/CORParticle.o: /usr/include/sys/types.h 164 ../include-CORSIKA/CORParticle.o: /usr/include/mach/machine/vm_types.h 165 ../include-CORSIKA/CORParticle.o: /usr/include/sys/select.h 166 ../include-CORSIKA/CORParticle.o: /usr/include/math.h 167 ../include-CORSIKA/CORStatfile.o: ../include-CORSIKA/CORStatfile.hxx 168 ../include-CORSIKA/CORStatfile.o: /usr/include/stdlib.h 169 ../include-CORSIKA/CORStatfile.o: /usr/include/standards.h 170 ../include-CORSIKA/CORStatfile.o: /usr/include/getopt.h 171 ../include-CORSIKA/CORStatfile.o: /usr/include/sys/types.h 172 ../include-CORSIKA/CORStatfile.o: /usr/include/mach/machine/vm_types.h 173 ../include-CORSIKA/CORStatfile.o: /usr/include/sys/select.h 174 ../include-CORSIKA/CORStatfile.o: /usr/include/math.h -
trunk/MagicSoft/Simulation/Detector/Starfield/starfield.cxx
r343 r432 9 9 #include "starfield.h" 10 10 11 #define PROGRAMID "$Id: starfield.cxx,v 1. 2 2000-01-21 16:39:25 petryExp $"11 #define PROGRAMID "$Id: starfield.cxx,v 1.3 2000-09-21 10:31:36 harald Exp $" 12 12 13 13 ///////////////////////////////////////////////////////////////////////// … … 18 18 parameters pars; 19 19 star stars[iMAXSTARS]; 20 photon photons[iMAXPHOT];20 photon *photons; 21 21 22 22 ifstream in; … … 77 77 in.close(); 78 78 79 // Allocate memory for photons 80 81 photons=new photon[iMAXPHOT]; 82 79 83 80 84 // prepare loop over star catalog files … … 223 227 224 228 for(j=0; j<nph[k]; j++){ // loop over photons of this waveband 229 230 // Check if we have overflowed the alllowed ph number 231 232 if(totalphotinside >= iMAXPHOT){ 233 cout << "Warning: photon memory full. Can only store " << iMAXPHOT << " photons.\n"; 234 break; 235 //exit(1); 236 } 225 237 226 238 // for every photon, a pair of uniform random x,y coordinates ( x*x+y*y<300 ) is generated … … 254 266 totalphotinside++; 255 267 256 if(totalphotinside >= iMAXPHOT){257 cout << "Error: photon memory full. Can only store " << iMAXPHOT << " photons.\n";258 exit(1);259 }260 261 268 totalnumphot++; 262 269 … … 270 277 271 278 } // end photon loop 272 273 279 } // end waveband loop 274 280 275 281 stars[i].numphot = photinside; 276 282 //if (i>81) break; 277 283 if (pars.verbose) cout<<"Star number= "<<i<< " (catalog number " << 278 284 starnumber << ") Number of photons accepted = "<< photinside<<endl; … … 284 290 convertcorsika( 285 291 ((int)pars.ct_ra_h*10)*1000 + (int)(abs(pars.ct_dec_deg)*10), // the file id 286 totalphotinside, photons, pars.integtime_s, pars.verbose);287 292 totalphotinside, photons, pars.integtime_s, pars.verbose, pars.output_file); 293 288 294 return 0; 289 295
Note:
See TracChangeset
for help on using the changeset viewer.