39 #ifdef G4MULTITHREADED 40 #include "G4MTRunManager.hh" 42 #include "G4RunManager.hh" 45 #include "G4UImanager.hh" 46 #include "Randomize.hh" 48 #include "G4VisExecutive.hh" 49 #include "G4UIExecutive.hh" 51 #include "UltraActionInitializer.hh" 52 #include "UltraDetectorConstruction.hh" 53 #include "UltraPhysicsList.hh" 56 int main(
int argc,
char** argv) {
61 G4Random::setTheEngine(
new CLHEP::RanluxEngine);
63 #ifdef G4MULTITHREADED 64 G4MTRunManager* runManager =
new G4MTRunManager;
67 G4RunManager* runManager =
new G4RunManager;
71 UltraDetectorConstruction* detector =
new UltraDetectorConstruction;
72 UltraPhysicsList* list =
new UltraPhysicsList();
73 runManager->SetUserInitialization(detector);
74 runManager->SetUserInitialization(list);
77 runManager->SetUserInitialization(
new UltraActionInitializer());
80 G4UIExecutive* ui = 0;
82 ui =
new G4UIExecutive(argc, argv);
86 G4VisManager* visManager =
new G4VisExecutive;
87 visManager->Initialize();
90 G4UImanager* UImanager = G4UImanager::GetUIpointer();
96 UImanager->ApplyCommand(
"/control/execute Visualisation.mac");
102 G4String command =
"/control/execute ";
104 UImanager->ApplyCommand(command+fileName);
int main(int argc, char **argv)