30 #include "B2aDetectorConstruction.hh" 31 #include "B2ActionInitialization.hh" 33 #ifdef G4MULTITHREADED 34 #include "G4MTRunManager.hh" 36 #include "G4RunManager.hh" 39 #include "G4UImanager.hh" 40 #include "FTFP_BERT.hh" 41 #include "G4StepLimiterPhysics.hh" 43 #include "Randomize.hh" 45 #include "G4VisExecutive.hh" 46 #include "G4UIExecutive.hh" 50 int main(
int argc,
char** argv)
54 G4UIExecutive* ui = 0;
56 ui =
new G4UIExecutive(argc, argv);
64 #ifdef G4MULTITHREADED 65 G4MTRunManager* runManager =
new G4MTRunManager;
67 G4RunManager* runManager =
new G4RunManager;
72 runManager->SetUserInitialization(
new B2aDetectorConstruction());
74 G4VModularPhysicsList* physicsList =
new FTFP_BERT;
75 physicsList->RegisterPhysics(
new G4StepLimiterPhysics());
76 runManager->SetUserInitialization(physicsList);
79 runManager->SetUserInitialization(
new B2ActionInitialization());
83 G4VisManager* visManager =
new G4VisExecutive;
86 visManager->Initialize();
89 G4UImanager* UImanager = G4UImanager::GetUIpointer();
95 G4String command =
"/control/execute ";
97 UImanager->ApplyCommand(command+fileName);
101 UImanager->ApplyCommand(
"/control/execute init_vis.mac");
103 UImanager->ApplyCommand(
"/control/execute gui.mac");
int main(int argc, char **argv)