46 #ifdef G4MULTITHREADED
71 G4cerr <<
" OpNovice [-m macro ] [-u UIsession] [-t nThreads] [-r seed] "
73 G4cerr <<
" note: -t option is available only for multi-threaded mode."
80 int main(
int argc,
char** argv)
91 #ifdef G4MULTITHREADED
96 for (
G4int i=1; i<argc; i=i+2 ) {
97 if (
G4String(argv[i]) ==
"-m" ) macro = argv[i+1];
98 else if (
G4String(argv[i]) ==
"-u" ) session = argv[i+1];
99 else if (
G4String(argv[i]) ==
"-r" ) myseed = atoi(argv[i+1]);
100 #ifdef G4MULTITHREADED
101 else if (
G4String(argv[i]) ==
"-t" ) {
117 #ifdef G4MULTITHREADED
125 G4Random::setTheSeed(myseed);
153 if ( macro.size() ) {
155 G4String command =
"/control/execute ";
165 UImanager->
ApplyCommand(
"/control/execute OpNovice.in");
virtual void SetUserInitialization(G4VUserDetectorConstruction *userInit)
void SetNumberOfThreads(G4int n)
int main(int argc, char **argv)
Definition of the OpNoviceDetectorConstruction class.
static G4UImanager * GetUIpointer()
static G4UIterminal * session
Definition of the OpNovicePhysicsList class.
static G4int ConvertToInt(const char *st)
Definition of the OpNoviceActionInitialization class.
virtual void Initialize()
G4int ApplyCommand(const char *aCommand)
G4GLOB_DLL std::ostream G4cerr