40 #ifdef G4MULTITHREADED 41 #include "G4MTRunManager.hh" 43 #include "G4RunManager.hh" 46 #include "G4UImanager.hh" 47 #include "G4UIterminal.hh" 48 #include "G4UItcsh.hh" 49 #include "G4UIExecutive.hh" 51 #include "G4VisExecutive.hh" 53 #include "ActionInitialization.hh" 59 int main(
int argc,
char** argv)
67 macroName =
"icsd.mac";
76 G4Exception(
"main",
"WRONG ARGUMENT NUMBER", FatalException,
77 "To many argument were provided.");
83 #ifdef G4MULTITHREADED 84 G4MTRunManager* runManager =
new G4MTRunManager;
85 runManager->SetNumberOfThreads(2);
87 G4RunManager* runManager =
new G4RunManager;
92 runManager->SetUserInitialization(detector);
96 runManager->SetUserInitialization(
new ActionInitialization());
99 runManager->Initialize();
102 G4UImanager* UImanager = G4UImanager::GetUIpointer();
103 G4String command =
"/control/execute ";
104 UImanager->ApplyCommand(command+macroName);
int main(int argc, char **argv)