40 #include "ActionInitialization.hh" 42 #ifdef G4MULTITHREADED 43 #include "G4MTRunManager.hh" 45 #include "G4RunManager.hh" 48 #include "G4UImanager.hh" 49 #include "G4UIExecutive.hh" 50 #include "G4VisExecutive.hh" 51 #include "Randomize.hh" 57 int main(
int argc,
char** argv)
60 G4UIExecutive* ui = 0;
62 ui =
new G4UIExecutive(argc, argv);
67 #ifdef G4MULTITHREADED 68 G4MTRunManager* runManager =
new G4MTRunManager;
70 G4RunManager* runManager =
new G4RunManager;
79 runManager->SetUserInitialization(
new ActionInitialization());
82 G4VisManager* visManager =
new G4VisExecutive;
83 visManager->Initialize();
86 G4UImanager* UImanager = G4UImanager::GetUIpointer();
91 G4String command =
"/control/execute ";
93 UImanager->ApplyCommand(command+fileName);
97 UImanager->ApplyCommand(
"/control/execute init_vis.mac");
int main(int argc, char **argv)