43 #include "ActionInitialization.hh" 45 #ifdef G4MULTITHREADED 46 #include "G4MTRunManager.hh" 48 #include "G4RunManager.hh" 51 #include "G4VisExecutive.hh" 52 #include "G4UIExecutive.hh" 54 #include "G4UImanager.hh" 56 #include "Randomize.hh" 60 int main(
int argc,
char** argv)
63 G4UIExecutive* ui =
nullptr;
65 ui =
new G4UIExecutive(argc, argv);
68 #ifdef G4MULTITHREADED 69 G4MTRunManager* runManager=
new G4MTRunManager;
71 runManager->SetNumberOfThreads(nThreads);
73 G4RunManager* runManager =
new G4RunManager();
80 runManager->SetUserInitialization(physList);
81 runManager->SetUserInitialization(
new ActionInitialization(physList));
84 G4UImanager* UI = G4UImanager::GetUIpointer();
86 G4VisManager* visManager =
new G4VisExecutive;
87 visManager->Initialize();
91 G4String command =
"/control/execute ";
93 UI->ApplyCommand(command+fileName);
TConfigurablePhysicsList< ModularPhysicsList > PhysicsList
int main(int argc, char **argv)