Ignore:
Timestamp:
09/21/00 11:31:36 (24 years ago)
Author:
harald
Message:
An additional change in starfield.cxx was neccessary to compile the
starfield adder on the alpha machines.
Location:
trunk/MagicSoft/Simulation/Detector/Starfield
Files:
2 edited

Legend:

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

    r431 r432  
    33## Starfield Generator Makefile
    44##
    5 ## $Id: Makefile,v 1.2 2000-09-21 10:08:10 harald Exp $
     5## $Id: Makefile,v 1.3 2000-09-21 10:31:36 harald Exp $
    66##   
    77##################################################################
     
    149149parameters.o: /usr/include/sys/machine/machtime.h
    150150parameters.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  
    99#include "starfield.h"
    1010
    11 #define PROGRAMID "$Id: starfield.cxx,v 1.2 2000-01-21 16:39:25 petry Exp $"
     11#define PROGRAMID "$Id: starfield.cxx,v 1.3 2000-09-21 10:31:36 harald Exp $"
    1212
    1313/////////////////////////////////////////////////////////////////////////
     
    1818  parameters pars;
    1919  star stars[iMAXSTARS];
    20   photon photons[iMAXPHOT]
     20  photon *photons
    2121
    2222  ifstream in;
     
    7777  in.close();
    7878
     79  // Allocate memory for photons
     80
     81  photons=new photon[iMAXPHOT];
     82
    7983
    8084  // prepare loop over star catalog files
     
    223227   
    224228      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          }
    225237     
    226238        // for every photon, a pair of uniform random x,y coordinates ( x*x+y*y<300 ) is generated
     
    254266          totalphotinside++;
    255267
    256           if(totalphotinside >= iMAXPHOT){
    257             cout << "Error: photon memory full. Can only store " << iMAXPHOT << " photons.\n";
    258             exit(1);
    259           }
    260 
    261268          totalnumphot++;       
    262269         
     
    270277       
    271278      } // end photon loop   
    272    
    273279    } // end waveband loop
    274280
    275281    stars[i].numphot = photinside;
    276    
     282    //if (i>81) break;
    277283    if (pars.verbose) cout<<"Star number= "<<i<< " (catalog number " <<
    278284                        starnumber << ") Number of photons accepted = "<< photinside<<endl;
     
    284290  convertcorsika(
    285291                 ((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
    288294  return 0;
    289295 
Note: See TracChangeset for help on using the changeset viewer.