47 #ifdef G4MULTITHREADED
66 G4cerr <<
" ExUCN [-m macro ] [-u UIsession] [-t nThreads] [-r seed] "
68 G4cerr <<
" note: -t option is available only for multi-threaded mode."
75 int main(
int argc,
char** argv)
86 #ifdef G4MULTITHREADED
91 for (
G4int i=1; i<argc; i=i+2 ) {
92 if (
G4String(argv[i]) ==
"-m" ) macro = argv[i+1];
93 else if (
G4String(argv[i]) ==
"-u" ) session = argv[i+1];
94 else if (
G4String(argv[i]) ==
"-r" ) myseed = atoi(argv[i+1]);
95 #ifdef G4MULTITHREADED
96 else if (
G4String(argv[i]) ==
"-t" ) {
118 #ifdef G4MULTITHREADED
126 G4Random::setTheSeed(myseed);
152 if ( macro.size() ) {
154 G4String command =
"/control/execute ";
Definition of the ExUCNPhysicsList class.
void SetNumberOfThreads(G4int n)
static G4UIterminal * session
G4int ApplyCommand(const char *aCommand)
Definition of the ExUCNActionInitialization class.
static G4UImanager * GetUIpointer()
static G4int ConvertToInt(const char *st)
virtual void SetUserInitialization(G4VUserDetectorConstruction *userInit)
int main(int argc, char **argv)
G4GLOB_DLL std::ostream G4cerr
Definition of the ExUCNDetectorConstruction class.
Action initialization class.
virtual void Initialize()