35 #ifdef G4MULTITHREADED 36 #include "G4MTRunManager.hh" 38 #include "G4RunManager.hh" 41 #include "G4UImanager.hh" 42 #include "G4UIExecutive.hh" 45 #include "G4VisExecutive.hh" 48 #include "ActionInitialization.hh" 52 int main(
int argc,
char** argv) {
56 G4UIExecutive* ui = 0;
58 ui =
new G4UIExecutive(argc, argv);
63 G4Random::setTheEngine(
new CLHEP::RanecuEngine);
67 #ifdef G4MULTITHREADED 68 G4MTRunManager* runManager =
new G4MTRunManager;
71 G4RunManager* runManager =
new G4RunManager;
77 runManager->SetUserInitialization(detector);
83 runManager->SetUserInitialization(
new ActionInitialization(detector));
87 runManager->Initialize();
90 G4VisManager* visManager =
new G4VisExecutive;
91 visManager->Initialize();
97 G4UImanager* UImanager = G4UImanager::GetUIpointer();
103 G4String command =
"/control/execute ";
105 UImanager->ApplyCommand(command+fileName);
109 UImanager->ApplyCommand(
"/control/execute vis.mac");
int main(int argc, char **argv)