30 #ifdef G4MULTITHREADED 31 #include "G4MTRunManager.hh" 33 #include "G4RunManager.hh" 36 #include "G4UImanager.hh" 37 #include "Randomize.hh" 41 #include "ActionInitialization.hh" 42 #include "SteppingVerbose.hh" 44 #include "G4VisExecutive.hh" 45 #include "G4UIExecutive.hh" 49 int main(
int argc,
char** argv) {
55 G4UIExecutive* ui = 0;
57 ui =
new G4UIExecutive(argc, argv);
61 #ifdef G4MULTITHREADED 62 G4MTRunManager* runManager =
new G4MTRunManager;
64 G4VSteppingVerbose::SetInstance(
new SteppingVerbose);
65 G4RunManager* runManager =
new G4RunManager;
70 runManager->SetUserInitialization(det);
73 runManager->SetUserInitialization(phys);
75 runManager->SetUserInitialization(
new ActionInitialization());
78 G4VisManager* visManager =
new G4VisExecutive;
81 visManager->Initialize();
84 G4UImanager* UImanager = G4UImanager::GetUIpointer();
89 G4String command =
"/control/execute ";
91 UImanager->ApplyCommand(command+fileName);
int main(int argc, char **argv)
TConfigurablePhysicsList< ModularPhysicsList > PhysicsList