43 #ifdef G4MULTITHREADED
68 G4cerr <<
" OpNovice [-m macro ] [-u UIsession] [-t nThreads] [-r seed] "
70 G4cerr <<
" note: -t option is available only for multi-threaded mode."
77 int main(
int argc,
char** argv)
88 #ifdef G4MULTITHREADED
93 for (
G4int i=1; i<argc; i=i+2 ) {
94 if (
G4String(argv[i]) ==
"-m" ) macro = argv[i+1];
95 else if (
G4String(argv[i]) ==
"-u" ) session = argv[i+1];
96 else if (
G4String(argv[i]) ==
"-r" ) myseed = atoi(argv[i+1]);
97 #ifdef G4MULTITHREADED
98 else if (
G4String(argv[i]) ==
"-t" ) {
110 G4Random::setTheEngine(
new CLHEP::RanecuEngine);
114 #ifdef G4MULTITHREADED
122 G4Random::setTheSeed(myseed);
150 if ( macro.size() ) {
152 G4String command =
"/control/execute ";
162 UImanager->
ApplyCommand(
"/control/execute OpNovice.in");
virtual void SetUserInitialization(G4VUserDetectorConstruction *userInit)
void SetNumberOfThreads(G4int n)
static G4UImanager * GetUIpointer()
static G4UIterminal * session
static G4int ConvertToInt(const char *st)
Action initialization class.
Definition of the OpNoviceActionInitialization class.
virtual void Initialize()
int main(int argc, char **argv)
G4int ApplyCommand(const char *aCommand)
G4GLOB_DLL std::ostream G4cerr