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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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 
Note: See TracChangeset for help on using the changeset viewer.