41 #ifdef G4MULTITHREADED 42 #include "G4MTRunManager.hh" 44 #include "G4RunManager.hh" 47 #include "G4UImanager.hh" 48 #include "Randomize.hh" 49 #include "G4VisExecutive.hh" 50 #include "G4UIExecutive.hh" 51 #include "PurgMagDetectorConstruction.hh" 52 #include "PurgMagPhysicsList.hh" 53 #include "PurgMagActionInitializer.hh" 54 #include "PurgMagAnalysisManager.hh" 56 int main(
int argc,
char** argv) {
59 G4Random::setTheEngine(
new CLHEP::RanecuEngine);
62 #ifdef G4MULTITHREADED 63 G4MTRunManager* runManager =
new G4MTRunManager;
66 G4RunManager* runManager =
new G4RunManager;
70 runManager->SetUserInitialization(
new PurgMagDetectorConstruction);
71 runManager->SetUserInitialization(
new PurgMagPhysicsList);
72 runManager->SetUserInitialization(
new PurgMagActionInitializer());
75 G4VisManager* visManager =
new G4VisExecutive;
76 visManager->Initialize();
79 runManager->Initialize();
82 G4UImanager* UImanager = G4UImanager::GetUIpointer();
87 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
88 UImanager->ApplyCommand(
"/control/execute vis.mac");
94 G4String command =
"/control/execute ";
96 UImanager->ApplyCommand(command+fileName);
100 G4AnalysisManager* man = G4AnalysisManager::Instance();
int main(int argc, char **argv)