31 #include "B5DetectorConstruction.hh" 32 #include "B5ActionInitialization.hh" 34 #ifdef G4MULTITHREADED 35 #include "G4MTRunManager.hh" 37 #include "G4RunManager.hh" 40 #include "G4UImanager.hh" 41 #include "FTFP_BERT.hh" 42 #include "G4StepLimiterPhysics.hh" 45 #include "G4VisExecutive.hh" 49 #include "G4UIExecutive.hh" 54 int main(
int argc,
char** argv)
59 G4UIExecutive* ui = 0;
61 ui =
new G4UIExecutive(argc, argv);
67 #ifdef G4MULTITHREADED 68 auto runManager =
new G4MTRunManager;
70 auto runManager =
new G4RunManager;
74 runManager->SetUserInitialization(
new B5DetectorConstruction);
76 auto physicsList =
new FTFP_BERT;
77 physicsList->RegisterPhysics(
new G4StepLimiterPhysics());
78 runManager->SetUserInitialization(physicsList);
81 runManager->SetUserInitialization(
new B5ActionInitialization());
85 auto visManager =
new G4VisExecutive;
88 visManager->Initialize();
92 auto UImanager = G4UImanager::GetUIpointer();
96 G4String command =
"/control/execute ";
98 UImanager->ApplyCommand(command+fileName);
103 UImanager->ApplyCommand(
"/control/execute init_vis.mac");
105 UImanager->ApplyCommand(
"/control/execute init.mac");
108 UImanager->ApplyCommand(
"/control/execute gui.mac");
int main(int argc, char **argv)