40 #ifdef G4MULTITHREADED 41 #include "G4MTRunManager.hh" 43 #include "G4RunManager.hh" 46 #include "G4UImanager.hh" 47 #include "Randomize.hh" 50 #include "G4VisExecutive.hh" 54 #include "G4UIExecutive.hh" 57 #include "PurgMagDetectorConstruction.hh" 58 #include "PurgMagPhysicsList.hh" 59 #include "PurgMagActionInitializer.hh" 61 int main(
int argc,
char** argv) {
64 G4Random::setTheEngine(
new CLHEP::RanecuEngine);
67 #ifdef G4MULTITHREADED 68 G4MTRunManager* runManager =
new G4MTRunManager;
71 G4RunManager* runManager =
new G4RunManager;
75 runManager->SetUserInitialization(
new PurgMagDetectorConstruction);
76 runManager->SetUserInitialization(
new PurgMagPhysicsList);
77 runManager->SetUserInitialization(
new PurgMagActionInitializer());
82 G4VisManager* visManager =
new G4VisExecutive;
83 visManager->Initialize();
87 runManager->Initialize();
90 G4UImanager* UImanager = G4UImanager::GetUIpointer();
96 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
98 UImanager->ApplyCommand(
"/control/execute vis.mac");
106 G4String command =
"/control/execute ";
108 UImanager->ApplyCommand(command+fileName);
int main(int argc, char **argv)