47 #ifdef G4MULTITHREADED
65 G4cerr <<
" field06 [-m macro ] [-u UIsession] [-t nThreads] [-r seed] "
67 G4cerr <<
" note: -t option is available only for multi-threaded mode."
74 int main(
int argc,
char** argv)
85 #ifdef G4MULTITHREADED
90 for (
G4int i=1; i<argc; i=i+2 ) {
91 if (
G4String(argv[i]) ==
"-m" ) macro = argv[i+1];
92 else if (
G4String(argv[i]) ==
"-u" ) session = argv[i+1];
93 else if (
G4String(argv[i]) ==
"-r" ) myseed = atoi(argv[i+1]);
94 #ifdef G4MULTITHREADED
95 else if (
G4String(argv[i]) ==
"-t" ) {
107 if ( macro.size() == 0 ) {
117 #ifdef G4MULTITHREADED
125 G4Random::setTheSeed(myseed);
153 G4String command =
"/control/execute ";
void SetNumberOfThreads(G4int n)
static G4UIterminal * session
G4int ApplyCommand(const char *aCommand)
Definition of the F06PhysicsList class.
Action initialization 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 F06ActionInitialization class.
Definition of the F06DetectorConstruction class.
virtual void Initialize()