48 #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 if ( macro.size() == 0 ) {
120 #ifdef G4MULTITHREADED
128 G4Random::setTheSeed(myseed);
154 if ( macro.size() ) {
156 G4String command =
"/control/execute ";
void SetNumberOfThreads(G4int n)
Definition of the OpNoviceDetectorConstruction class.
static G4UIterminal * session
G4int ApplyCommand(const char *aCommand)
static G4UImanager * GetUIpointer()
static G4int ConvertToInt(const char *st)
virtual void SetUserInitialization(G4VUserDetectorConstruction *userInit)
Definition of the OpNovicePhysicsList class.
Definition of the OpNoviceActionInitialization class.
int main(int argc, char **argv)
G4GLOB_DLL std::ostream G4cerr
virtual void Initialize()