39 #include "ActionInitialization.hh" 41 #ifdef G4MULTITHREADED 42 #include "G4MTRunManager.hh" 44 #include "G4RunManager.hh" 47 #include "G4UImanager.hh" 48 #include "G4UIExecutive.hh" 49 #include "G4VisExecutive.hh" 50 #include "Randomize.hh" 56 int main(
int argc,
char** argv)
59 G4UIExecutive* ui = 0;
61 ui =
new G4UIExecutive(argc, argv);
66 #ifdef G4MULTITHREADED 67 G4MTRunManager* runManager =
new G4MTRunManager;
69 G4RunManager* runManager =
new G4RunManager;
78 runManager->SetUserInitialization(
new ActionInitialization());
81 G4VisManager* visManager =
new G4VisExecutive;
84 visManager->Initialize();
87 G4UImanager* UImanager = G4UImanager::GetUIpointer();
92 G4String command =
"/control/execute ";
94 UImanager->ApplyCommand(command+fileName);
98 UImanager->ApplyCommand(
"/control/execute init_vis.mac");
int main(int argc, char **argv)