39 #ifdef G4MULTITHREADED
59 <<
"clGeometry <call_list_file> [-m macro ] [-u UIsession] [-t nThreads]"
62 <<
" note: -t option is available only for multi-threaded mode."
69 int main(
int argc,
char** argv)
74 if ( argc < 2 || argc > 8 ) {
82 #ifdef G4MULTITHREADED
89 std::ifstream
in(inFile);
91 G4cerr <<
"Cannot open input file \"" << inFile <<
"\"" <<
G4endl;
96 for (
G4int i=2; i<argc; i=i+2 ) {
98 if (
G4String(argv[i]) ==
"-m" ) macro = argv[i+1];
99 else if (
G4String(argv[i]) ==
"-u" ) session = argv[i+1];
100 #ifdef G4MULTITHREADED
101 else if (
G4String(argv[i]) ==
"-t" ) {
114 if ( ! macro.size() ) {
119 #ifdef G4MULTITHREADED
149 if ( macro.size() ) {
151 G4String command =
"/control/execute ";
152 UImanager->ApplyCommand(command+macro);
156 UImanager->ApplyCommand(
"/control/execute init_vis.mac");
void SetNumberOfThreads(G4int n)
static G4UIterminal * session
static G4UImanager * GetUIpointer()
static G4int ConvertToInt(const char *st)
virtual void SetUserInitialization(G4VUserDetectorConstruction *userInit)
Definition of the G3toG4ActionInitialization class.
int main(int argc, char **argv)
G4GLOB_DLL std::ostream G4cerr
G4GLOB_DLL std::ostream G4cout
Definition of the G3toG4DetectorConstruction class.