39 #ifdef G4MULTITHREADED
67 <<
"clGeometry <call_list_file> [-m macro ] [-u UIsession] [-t nThreads]"
70 <<
" note: -t option is available only for multi-threaded mode."
77 int main(
int argc,
char** argv)
82 if ( argc < 2 || argc > 8 ) {
90 #ifdef G4MULTITHREADED
97 std::ifstream in(inFile);
99 G4cerr <<
"Cannot open input file \"" << inFile <<
"\"" <<
G4endl;
104 for (
G4int i=2; i<argc; i=i+2 ) {
106 if (
G4String(argv[i]) ==
"-m" ) macro = argv[i+1];
107 else if (
G4String(argv[i]) ==
"-u" ) session = argv[i+1];
108 #ifdef G4MULTITHREADED
109 else if (
G4String(argv[i]) ==
"-t" ) {
120 #ifdef G4MULTITHREADED
157 if ( macro.size() ) {
159 G4String command =
"/control/execute ";
167 uiManager->
ApplyCommand(
"/control/execute init_vis.mac");
virtual void SetUserInitialization(G4VUserDetectorConstruction *userInit)
Definition of the G3toG4DetectorConstruction class.
void SetNumberOfThreads(G4int n)
Detector construction class.
static G4UImanager * GetUIpointer()
Definition of the G3toG4ActionInitialization class.
G4GLOB_DLL std::ostream G4cout
static G4UIterminal * session
static G4int ConvertToInt(const char *st)
int main(int argc, char **argv)
Action initialization class.
virtual void Initialize()
G4int ApplyCommand(const char *aCommand)
G4GLOB_DLL std::ostream G4cerr