30 #ifdef G4MULTITHREADED 31 #include "G4MTRunManager.hh" 33 #include "G4RunManager.hh" 35 #include "G4UImanager.hh" 36 #include "G4UIExecutive.hh" 37 #include "G4VisExecutive.hh" 38 #include "G4ParallelWorldPhysics.hh" 39 #include "ActionInitialization.hh" 41 #include "ParallelWorld.hh" 46 int main(
int argc,
char** argv)
54 #ifdef G4MULTITHREADED 55 std::unique_ptr<G4MTRunManager> pRunManager(
new G4MTRunManager);
56 pRunManager->SetNumberOfThreads(2);
58 std::unique_ptr<G4RunManager> pRunManager(
new G4RunManager);
62 pDetector->RegisterParallelWorld(
new ParallelWorld(
"ChemistryWorld"));
63 pRunManager->SetUserInitialization(pDetector);
66 pRunManager->SetUserInitialization(pPhysList);
67 pRunManager->SetUserInitialization(
new ActionInitialization(pDetector));
69 std::unique_ptr<G4VisManager> pVisuManager(
new G4VisExecutive);
70 pVisuManager->Initialize();
72 G4UImanager* pUImanager = G4UImanager::GetUIpointer();
77 G4String command =
"/control/execute ";
79 pUImanager->ApplyCommand(command+fileName);
84 std::unique_ptr<G4UIExecutive> pUi(
new G4UIExecutive(argc, argv));
85 pUImanager->ApplyCommand(
"/control/execute vis.mac");
int main(int argc, char **argv)
TConfigurablePhysicsList< ModularPhysicsList > PhysicsList