27 #ifdef G4MULTITHREADED 28 #include "G4MTRunManager.hh" 30 #include "G4RunManager.hh" 34 #include "G4VisExecutive.hh" 38 #include "G4UIExecutive.hh" 41 #include "G4UImanager.hh" 43 #include "GB03DetectorConstruction.hh" 44 #include "GB03PrimaryGeneratorAction.hh" 45 #include "GB03ActionInitialization.hh" 46 #include "FTFP_BERT.hh" 47 #include "G4GenericBiasingPhysics.hh" 49 int main(
int argc,
char** argv)
53 #ifdef G4MULTITHREADED 54 G4MTRunManager * runManager =
new G4MTRunManager;
55 G4cout <<
" ********** Run Manager constructed in MT mode ************ " << G4endl;
57 runManager->SetNumberOfThreads(4);
59 G4RunManager * runManager =
new G4RunManager;
60 G4cout <<
" ********** Run Manager constructed in sequential mode ************ " << G4endl;
65 G4VUserDetectorConstruction* detector =
new GB03DetectorConstruction;
66 runManager->SetUserInitialization(detector);
67 G4VModularPhysicsList* physicsList =
new FTFP_BERT;
71 G4GenericBiasingPhysics* biasingPhysics =
new G4GenericBiasingPhysics();
72 biasingPhysics->NonPhysicsBias(
"neutron");
73 physicsList->RegisterPhysics(biasingPhysics);
74 runManager->SetUserInitialization(physicsList);
77 G4VUserActionInitialization* actions =
new GB03ActionInitialization;
78 runManager->SetUserInitialization(actions);
83 G4VisManager* visManager =
new G4VisExecutive;
84 visManager->Initialize();
89 runManager->Initialize();
93 G4UImanager* UImanager = G4UImanager::GetUIpointer();
98 G4UIExecutive * ui =
new G4UIExecutive(argc,argv);
100 UImanager->ApplyCommand(
"/control/execute vis.mac");
108 G4String command =
"/control/execute ";
110 UImanager->ApplyCommand(command+fileName);
int main(int argc, char **argv)