45 #ifdef G4MULTITHREADED
68 G4cerr <<
" field06 [-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 ";
virtual void SetUserInitialization(G4VUserDetectorConstruction *userInit)
Action initialization class.
void SetNumberOfThreads(G4int n)
int main(int argc, char **argv)
static G4UImanager * GetUIpointer()
Definition of the F06DetectorConstruction class.
static G4UIterminal * session
static G4int ConvertToInt(const char *st)
Definition of the F06PhysicsList class.
Definition of the F06ActionInitialization class.
virtual void Initialize()
G4int ApplyCommand(const char *aCommand)
G4GLOB_DLL std::ostream G4cerr