41 #ifdef G4MULTITHREADED 42 #include "G4MTRunManager.hh" 44 #include "F05SteppingVerbose.hh" 45 #include "G4RunManager.hh" 48 #include "F05PhysicsList.hh" 49 #include "F05DetectorConstruction.hh" 51 #include "F05ActionInitialization.hh" 53 #include "G4UImanager.hh" 55 #include "Randomize.hh" 58 #include "G4VisExecutive.hh" 62 #include "G4UIExecutive.hh" 67 int main(
int argc,
char** argv)
71 G4Random::setTheEngine(
new CLHEP::RanecuEngine);
74 if (argc > 2) myseed = atoi(argv[argc-1]);
78 #ifdef G4MULTITHREADED 79 G4MTRunManager * runManager =
new G4MTRunManager;
81 G4VSteppingVerbose::SetInstance(
new F05SteppingVerbose);
82 G4RunManager * runManager =
new G4RunManager;
85 G4Random::setTheSeed(myseed);
90 runManager->SetUserInitialization(
new F05DetectorConstruction());
92 runManager->SetUserInitialization(
new F05PhysicsList());
94 runManager->SetUserInitialization(
new F05ActionInitialization());
98 runManager->Initialize();
103 G4VisManager* visManager =
new G4VisExecutive;
106 visManager->Initialize();
111 G4UImanager* UImanager = G4UImanager::GetUIpointer();
115 G4String command =
"/control/execute ";
117 UImanager->ApplyCommand(command+fileName);
122 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
124 UImanager->ApplyCommand(
"/control/execute vis.mac");
126 UImanager->ApplyCommand(
"/control/execute field05.in");
129 UImanager->ApplyCommand(
"/control/execute gui.mac");
int main(int argc, char **argv)