37 #include "G4MTRunManager.hh" 38 #include "G4RunManager.hh" 39 #include "G4UImanager.hh" 40 #include "G4VisExecutive.hh" 41 #include "G4UIExecutive.hh" 42 #include "STCyclotronAnalysis.hh" 44 #include "STCyclotronActionInitialization.hh" 45 #include "STCyclotronDetectorConstruction.hh" 46 #include "STCyclotronPhysicsList.hh" 47 #include "STCyclotronPrimaryGeneratorAction.hh" 48 #include "STCyclotronRunAction.hh" 50 int main(
int argc,
char** argv)
52 #ifdef G4MULTITHREADED 53 G4MTRunManager* runManager =
new G4MTRunManager;
54 runManager->SetNumberOfThreads(4);
56 G4RunManager* runManager =
new G4RunManager;
60 STCyclotronDetectorConstruction* det =
new STCyclotronDetectorConstruction();
61 runManager->SetUserInitialization(det);
63 STCyclotronPhysicsList* physList =
new STCyclotronPhysicsList(det);
64 runManager->SetUserInitialization(physList);
67 STCyclotronActionInitialization* actions =
new STCyclotronActionInitialization(det);
68 runManager->SetUserInitialization(actions);
81 G4VisManager* visManager =
new G4VisExecutive(
"Quiet");
82 visManager->Initialize();
85 G4UImanager* UImanager = G4UImanager::GetUIpointer();
87 UImanager->ApplyCommand(
"/control/execute Macro/init_parameters.mac");
92 G4String command =
"/control/execute ";
94 UImanager->ApplyCommand(command+fileName);
100 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
102 UImanager->ApplyCommand(
"/control/execute Macro/Vis/init_vis.mac");
106 UImanager->ApplyCommand(
"/control/execute Macro/GUI/gui.mac");
int main(int argc, char **argv)