37 #ifdef G4MULTITHREADED
67 int main(
int argc,
char** argv)
69 #ifdef G4MULTITHREADED
73 if (argc > 2) seed = atoi(argv[argc-1]);
77 G4Random::setTheEngine(
new CLHEP::RanecuEngine);
78 G4Random::setTheSeed(seed);
87 while ((c=getopt(argc,argv,
"p")) != -1)
97 "Option -%c requires an operand\n", optopt);
101 "Unrecognised option: -%c\n", optopt);
131 if (argc > 2) { optmax = optmax-1; }
135 G4String command =
"/control/execute ";
136 for ( ; optind < optmax; optind++)
138 G4String macroFilename = argv[optind];
142 #else // Simple UI for Windows runs, no possibility of additional arguments
145 G4String command =
"/control/execute ";
virtual void SetUserInitialization(G4VUserDetectorConstruction *userInit)
Definition of the WLSDetectorConstruction class.
static G4UImanager * GetUIpointer()
G4GLOB_DLL std::ostream G4cout
int main(int argc, char **argv)
Action initialization class.
Definition of the WLSPhysicsList class.
Definition of the WLSActionInitialization class.
G4int ApplyCommand(const char *aCommand)