- Timestamp:
- 11/13/02 18:21:05 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/ReflectorII/tester/cermaker.c
r1601 r1602 111 111 /*****************************/ 112 112 113 if (argc < 7 || argc > 8)113 if (argc < 4 || argc > 5) 114 114 { 115 printf ("\nUsage: cermaker source_x(cm) source_y(cm) source_z(cm) minradius(cm) maxradius(cm) maxpsi(deg)[events]\n\n");115 printf ("\nUsage: cermaker source_x(cm) source_y(cm) source_z(cm) [events]\n\n"); 116 116 exit(-1); 117 117 } … … 125 125 source_z += MAGIC_HEIGHT; 126 126 127 /* 127 128 sscanf (argv[4], "%f", &minradius); 128 129 sscanf (argv[5], "%f", &maxradius); 129 130 sscanf (argv[6], "%f", &maxpsi); 130 131 if (argc == 8) 132 sscanf (argv[7], "%d", &maxevents); 131 */ 132 133 minradius = 0.; maxradius = 900.; maxpsi = 360.; 134 135 if (argc == 5) 136 sscanf (argv[4], "%ld", &maxevents); 137 133 138 134 139 memset ((char*)dummy,0,sizeof(dummy));
Note:
See TracChangeset
for help on using the changeset viewer.