33 #include "G4UImanager.hh" 34 #include "G4UIsession.hh" 35 #include "G4TransportationManager.hh" 36 #include "G4VisExecutive.hh" 37 #include "G4UIExecutive.hh" 40 #include "G4HumanPhantomConstruction.hh" 41 #include "G4HumanPhantomPhysicsList.hh" 42 #include "G4HumanPhantomActionInitialization.hh" 44 #ifdef G4MULTITHREADED 45 #include "G4MTRunManager.hh" 47 #include "G4RunManager.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 G4HumanPhantomConstruction* userPhantom =
new G4HumanPhantomConstruction();
61 runManager->SetUserInitialization(userPhantom);
63 runManager->SetUserInitialization(
new G4HumanPhantomPhysicsList);
65 G4VisManager* visManager =
new G4VisExecutive;
66 visManager->Initialize();
68 G4HumanPhantomActionInitialization* actions =
new G4HumanPhantomActionInitialization();
69 runManager->SetUserInitialization(actions);
71 G4UImanager* UImanager = G4UImanager::GetUIpointer();
76 G4cout <<
" UI session starts ..." << G4endl;
77 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
78 UImanager->ApplyCommand(
"/control/execute default.mac");
85 G4String command =
"/control/execute ";
87 UImanager -> ApplyCommand(command+fileName);
int main(int argc, char **argv)