- Timestamp:
- 09/21/00 11:08:10 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.