48 #ifdef G4MULTITHREADED
74 int main(
int argc,
char** argv)
87 if (argc > 2) myseed = atoi(argv[argc-1]);
91 #ifdef G4MULTITHREADED
98 G4Random::setTheSeed(myseed);
104 while ((c=getopt(argc,argv,
"p")) != -1)
109 physicsList = optarg;
110 G4cout <<
"Physics List used is " << physicsList <<
G4endl;
113 fprintf(stderr,
"Option -%c requires an operand\n", optopt);
116 fprintf(stderr,
"Unrecognised option: -%c\n", optopt);
148 if (argc > 2) { optmax = optmax-1; }
152 G4String command =
"/control/execute ";
153 for ( ; optind < optmax; optind++)
155 G4String macroFilename = argv[optind];
159 #else // Simple UI for Windows runs, no possibility of additional arguments
162 G4String command =
"/control/execute ";
170 G4cout <<
"At the prompt, issue commands to set up detector & field, then:"
Action initialization class.
Definition of the F04SteppingVerbose class.
G4int ApplyCommand(const char *aCommand)
Definition of the F04PhysicsList class.
static G4UImanager * GetUIpointer()
Definition of the F04DetectorConstruction class.
virtual void SetUserInitialization(G4VUserDetectorConstruction *userInit)
Definition of the F04ActionInitialization class.
int main(int argc, char **argv)
static void SetInstance(G4VSteppingVerbose *Instance)
G4GLOB_DLL std::ostream G4cout