30 #ifdef G4MULTITHREADED 31 #include "G4MTRunManager.hh" 33 #include "G4RunManager.hh" 36 #include "G4UImanager.hh" 37 #include "Randomize.hh" 42 #include "ActionInitialization.hh" 43 #include "SteppingVerbose.hh" 45 #include "G4VisExecutive.hh" 46 #include "G4UIExecutive.hh" 50 int main(
int argc,
char** argv) {
53 remove (
"spower.txt");
57 G4UIExecutive* ui = 0;
59 ui =
new G4UIExecutive(argc, argv);
63 #ifdef G4MULTITHREADED 64 G4MTRunManager* runManager =
new G4MTRunManager;
66 G4VSteppingVerbose::SetInstance(
new SteppingVerbose);
67 G4RunManager* runManager =
new G4RunManager;
72 runManager->SetUserInitialization(det);
75 runManager->SetUserInitialization(phys);
77 runManager->SetUserInitialization(
new ActionInitialization());
81 G4VisManager* visManager =
new G4VisExecutive;
84 visManager->Initialize();
87 G4UImanager* UImanager = G4UImanager::GetUIpointer();
93 G4String command =
"/control/execute ";
95 UImanager->ApplyCommand(command+fileName);
TConfigurablePhysicsList< ModularPhysicsList > PhysicsList
int main(int argc, char **argv)