39 #include "G4UImanager.hh" 40 #include "G4UIsession.hh" 41 #include "G4TransportationManager.hh" 44 #include "G4VisExecutive.hh" 48 #include "G4UIExecutive.hh" 51 #include "G4HumanPhantomConstruction.hh" 52 #include "G4HumanPhantomPhysicsList.hh" 53 #include "G4HumanPhantomActionInitialization.hh" 55 #ifdef G4MULTITHREADED 56 #include "G4MTRunManager.hh" 58 #include "G4RunManager.hh" 61 int main(
int argc,
char** argv)
63 #ifdef G4MULTITHREADED 64 G4MTRunManager* runManager =
new G4MTRunManager;
65 runManager->SetNumberOfThreads(4);
67 G4RunManager* runManager =
new G4RunManager;
71 G4HumanPhantomConstruction* userPhantom =
new G4HumanPhantomConstruction();
72 runManager->SetUserInitialization(userPhantom);
74 runManager->SetUserInitialization(
new G4HumanPhantomPhysicsList);
77 G4VisManager* visManager =
new G4VisExecutive;
78 visManager->Initialize();
82 G4HumanPhantomActionInitialization* actions =
new G4HumanPhantomActionInitialization();
83 runManager->SetUserInitialization(actions);
86 G4UImanager* UImanager = G4UImanager::GetUIpointer();
91 G4cout <<
" UI session starts ..." << G4endl;
92 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
93 UImanager->ApplyCommand(
"/control/execute default.mac");
100 G4String command =
"/control/execute ";
102 UImanager -> ApplyCommand(command+fileName);
int main(int argc, char **argv)