40 #include "ActionInitialization.hh" 42 #ifdef G4MULTITHREADED 43 #include "G4MTRunManager.hh" 45 #include "G4RunManager.hh" 48 #include "G4UImanager.hh" 49 #include "Randomize.hh" 51 #include "G4VisExecutive.hh" 52 #include "G4UIExecutive.hh" 58 int main(
int argc,
char** argv)
62 G4UIExecutive* ui = 0;
64 ui =
new G4UIExecutive(argc, argv);
68 G4Random::setTheEngine(
new CLHEP::RanecuEngine);
73 #ifdef G4MULTITHREADED 74 G4MTRunManager* runManager =
new G4MTRunManager;
76 G4RunManager* runManager =
new G4RunManager;
86 runManager->SetUserInitialization(
new ActionInitialization());
90 G4VisManager* visManager =
new G4VisExecutive;
93 visManager->Initialize();
96 G4UImanager* UImanager = G4UImanager::GetUIpointer();
102 G4String command =
"/control/execute ";
104 UImanager->ApplyCommand(command+fileName);
108 UImanager->ApplyCommand(
"/control/execute init_vis.mac");
int main(int argc, char **argv)