42 #ifdef G4MULTITHREADED 43 #include "G4MTRunManager.hh" 45 #include "F05SteppingVerbose.hh" 46 #include "G4RunManager.hh" 49 #include "F05PhysicsList.hh" 50 #include "F05DetectorConstruction.hh" 52 #include "F05ActionInitialization.hh" 54 #include "G4UImanager.hh" 56 #include "Randomize.hh" 58 #include "G4VisExecutive.hh" 59 #include "G4UIExecutive.hh" 63 int main(
int argc,
char** argv)
66 G4UIExecutive* ui =
nullptr;
68 ui =
new G4UIExecutive(argc, argv);
73 G4Random::setTheEngine(
new CLHEP::RanecuEngine);
76 if (argc > 2) myseed = atoi(argv[argc-1]);
80 #ifdef G4MULTITHREADED 81 G4MTRunManager * runManager =
new G4MTRunManager;
83 G4VSteppingVerbose::SetInstance(
new F05SteppingVerbose);
84 G4RunManager * runManager =
new G4RunManager;
87 G4Random::setTheSeed(myseed);
92 runManager->SetUserInitialization(
new F05DetectorConstruction());
94 runManager->SetUserInitialization(
new F05PhysicsList());
96 runManager->SetUserInitialization(
new F05ActionInitialization());
100 G4VisManager* visManager =
new G4VisExecutive;
103 visManager->Initialize();
107 G4UImanager* UImanager = G4UImanager::GetUIpointer();
111 G4String command =
"/control/execute ";
113 UImanager->ApplyCommand(command+fileName);
117 UImanager->ApplyCommand(
"/control/execute init_vis.mac");
119 UImanager->ApplyCommand(
"/control/execute gui.mac");
int main(int argc, char **argv)