45 #ifdef G4MULTITHREADED
69 G4cerr <<
" ExUCN [-m macro ] [-u UIsession] [-t nThreads] [-r seed] "
71 G4cerr <<
" note: -t option is available only for multi-threaded mode."
78 int main(
int argc,
char** argv)
89 #ifdef G4MULTITHREADED
94 for (
G4int i=1; i<argc; i=i+2 ) {
95 if (
G4String(argv[i]) ==
"-m" ) macro = argv[i+1];
96 else if (
G4String(argv[i]) ==
"-u" ) session = argv[i+1];
97 else if (
G4String(argv[i]) ==
"-r" ) myseed = atoi(argv[i+1]);
98 #ifdef G4MULTITHREADED
99 else if (
G4String(argv[i]) ==
"-t" ) {
115 #ifdef G4MULTITHREADED
123 G4Random::setTheSeed(myseed);
151 if ( macro.size() ) {
153 G4String command =
"/control/execute ";
virtual void SetUserInitialization(G4VUserDetectorConstruction *userInit)
void SetNumberOfThreads(G4int n)
Action initialization class.
int main(int argc, char **argv)
static G4UImanager * GetUIpointer()
Definition of the ExUCNDetectorConstruction class.
static G4UIterminal * session
static G4int ConvertToInt(const char *st)
virtual void Initialize()
Definition of the ExUCNActionInitialization class.
G4int ApplyCommand(const char *aCommand)
G4GLOB_DLL std::ostream G4cerr
Definition of the ExUCNPhysicsList class.