37 #include "ActionInitialization.hh" 39 #ifdef G4MULTITHREADED 40 #include "G4MTRunManager.hh" 42 #include "G4RunManager.hh" 45 #include "G4UImanager.hh" 46 #include "FTFP_BERT.hh" 48 #include "G4VisExecutive.hh" 49 #include "G4UIExecutive.hh" 53 int main(
int argc,
char** argv)
57 G4UIExecutive* ui = 0;
59 ui =
new G4UIExecutive(argc, argv);
64 #ifdef G4MULTITHREADED 66 G4MTRunManager * runManager =
new G4MTRunManager;
67 runManager->SetNumberOfThreads(nThreads);
69 G4RunManager * runManager =
new G4RunManager;
75 runManager->SetUserInitialization(detector);
76 runManager->SetUserInitialization(
new FTFP_BERT);
77 runManager->SetUserInitialization(
new ActionInitialization(detector));
81 G4VisManager* visManager =
new G4VisExecutive;
82 visManager->Initialize();
86 G4UImanager* UImanager = G4UImanager::GetUIpointer();
90 G4String command =
"/control/execute ";
92 UImanager->ApplyCommand(command+fileName);
96 UImanager->ApplyCommand(
"/control/execute init_vis.mac");
int main(int argc, char **argv)