37 #ifdef G4MULTITHREADED 38 #include "G4MTRunManager.hh" 40 #include "G4RunManager.hh" 43 #include "G4UImanager.hh" 44 #include "G4UIExecutive.hh" 45 #include "G4VisExecutive.hh" 47 #include "ActionInitialization.hh" 51 int main(
int argc,
char** argv) {
55 G4UIExecutive* ui = 0;
57 ui =
new G4UIExecutive(argc, argv);
62 #ifdef G4MULTITHREADED 63 G4MTRunManager* runManager =
new G4MTRunManager;
66 G4RunManager* runManager =
new G4RunManager;
72 runManager->SetUserInitialization(detector);
78 runManager->SetUserInitialization(
new ActionInitialization(detector));
82 runManager->Initialize();
86 G4VisManager* visManager =
new G4VisExecutive;
87 visManager->Initialize();
90 G4UImanager* UImanager = G4UImanager::GetUIpointer();
96 G4String command =
"/control/execute ";
98 UImanager->ApplyCommand(command+fileName);
102 UImanager->ApplyCommand(
"/control/execute vis.mac");
int main(int argc, char **argv)