46 #ifdef G4MULTITHREADED
77 int main(
int argc,
char** argv)
81 G4Random::setTheEngine(
new CLHEP::RanecuEngine);
84 if (argc > 2) myseed = atoi(argv[argc-1]);
88 #ifdef G4MULTITHREADED
95 G4Random::setTheSeed(myseed);
101 while ((c=getopt(argc,argv,
"p")) != -1)
106 physicsList = optarg;
107 G4cout <<
"Physics List used is " << physicsList <<
G4endl;
110 fprintf(stderr,
"Option -%c requires an operand\n", optopt);
113 fprintf(stderr,
"Unrecognised option: -%c\n", optopt);
147 if (argc > 2) { optmax = optmax-1; }
151 G4String command =
"/control/execute ";
152 for ( ; optind < optmax; optind++)
154 G4String macroFilename = argv[optind];
158 #else // Simple UI for Windows runs, no possibility of additional arguments
161 G4String command =
"/control/execute ";
173 G4cout <<
"At the prompt, issue commands to set up detector & field, then:"
Action initialization class.
virtual void SetUserInitialization(G4VUserDetectorConstruction *userInit)
int main(int argc, char **argv)
static G4UImanager * GetUIpointer()
Definition of the F04SteppingVerbose class.
Definition of the F04DetectorConstruction class.
G4GLOB_DLL std::ostream G4cout
Definition of the F04PhysicsList class.
static void SetInstance(G4VSteppingVerbose *Instance)
Definition of the F04ActionInitialization class.
G4int ApplyCommand(const char *aCommand)