36 #include "ActionInitialization.hh" 38 #ifdef G4MULTITHREADED 39 #include "G4MTRunManager.hh" 41 #include "G4RunManager.hh" 44 #include "G4UImanager.hh" 45 #include "FTFP_BERT.hh" 47 #include "G4VisExecutive.hh" 48 #include "G4UIExecutive.hh" 52 int main(
int argc,
char** argv)
56 G4UIExecutive* ui = 0;
58 ui =
new G4UIExecutive(argc, argv);
63 #ifdef G4MULTITHREADED 65 G4MTRunManager * runManager =
new G4MTRunManager;
66 runManager->SetNumberOfThreads(nThreads);
68 G4RunManager * runManager =
new G4RunManager;
74 runManager->SetUserInitialization(detector);
75 runManager->SetUserInitialization(
new FTFP_BERT);
76 runManager->SetUserInitialization(
new ActionInitialization(detector));
80 G4VisManager* visManager =
new G4VisExecutive;
81 visManager->Initialize();
85 G4UImanager* UImanager = G4UImanager::GetUIpointer();
89 G4String command =
"/control/execute ";
91 UImanager->ApplyCommand(command+fileName);
95 UImanager->ApplyCommand(
"/control/execute init_vis.mac");
int main(int argc, char **argv)