40 #ifdef G4MULTITHREADED 41 #include "G4MTRunManager.hh" 43 #include "G4RunManager.hh" 46 #include "G4UImanager.hh" 47 #include "Randomize.hh" 49 #include "G4VisExecutive.hh" 50 #include "G4UIExecutive.hh" 52 #include "UltraActionInitializer.hh" 53 #include "UltraDetectorConstruction.hh" 54 #include "UltraPhysicsList.hh" 57 int main(
int argc,
char** argv) {
62 G4Random::setTheEngine(
new CLHEP::RanluxEngine);
64 #ifdef G4MULTITHREADED 65 G4MTRunManager* runManager =
new G4MTRunManager;
68 G4RunManager* runManager =
new G4RunManager;
72 runManager->SetUserInitialization(
new UltraDetectorConstruction);
73 runManager->SetUserInitialization(
new UltraPhysicsList());
76 runManager->SetUserInitialization(
new UltraActionInitializer());
79 G4UIExecutive* ui = 0;
81 ui =
new G4UIExecutive(argc, argv);
85 G4VisManager* visManager =
new G4VisExecutive;
86 visManager->Initialize();
89 G4UImanager* UImanager = G4UImanager::GetUIpointer();
95 UImanager->ApplyCommand(
"/control/execute VisDirect.mac");
101 G4String command =
"/control/execute ";
103 UImanager->ApplyCommand(command+fileName);
int main(int argc, char **argv)