48 #ifdef G4MULTITHREADED
70 G4cerr <<
" OpNovice [-m macro ] [-u UIsession] [-t nThreads] [-r seed] "
72 G4cerr <<
" note: -t option is available only for multi-threaded mode."
79 int main(
int argc,
char** argv)
90 #ifdef G4MULTITHREADED
95 for (
G4int i=1; i<argc; i=i+2 ) {
96 if (
G4String(argv[i]) ==
"-m" ) macro = argv[i+1];
97 else if (
G4String(argv[i]) ==
"-u" ) session = argv[i+1];
98 else if (
G4String(argv[i]) ==
"-r" ) myseed = atoi(argv[i+1]);
99 #ifdef G4MULTITHREADED
100 else if (
G4String(argv[i]) ==
"-t" ) {
112 if ( macro.size() == 0 ) {
122 #ifdef G4MULTITHREADED
130 G4Random::setTheSeed(myseed);
141 runManager-> SetUserInitialization(physicsList);
154 if ( macro.size() ) {
156 G4String command =
"/control/execute ";