42 #ifdef G4MULTITHREADED 43 #include "G4MTRunManager.hh" 45 #include "G4RunManager.hh" 48 #include "G4UImanager.hh" 51 #include "G4VisExecutive.hh" 55 #include "G4UIExecutive.hh" 58 #include "GammaRayTelDetectorConstruction.hh" 59 #include "GammaRayTelPhysicsList.hh" 60 #include "GammaRayTelActionInitializer.hh" 63 #include "FTFP_BERT.hh" 65 #include "GammaRayTelAnalysis.hh" 68 int main(
int argc,
char** argv)
71 #ifdef G4MULTITHREADED 72 G4MTRunManager* runManager =
new G4MTRunManager;
75 G4RunManager* runManager =
new G4RunManager;
79 GammaRayTelDetectorConstruction* detector =
80 new GammaRayTelDetectorConstruction;
81 runManager->SetUserInitialization(detector);
86 runManager->SetUserInitialization(
new GammaRayTelPhysicsList);
92 runManager->SetUserInitialization(
new GammaRayTelActionInitializer());
95 GammaRayTelAnalysis* analysis = GammaRayTelAnalysis::getInstance();
100 G4VisManager* visManager =
new G4VisExecutive;
101 visManager->Initialize();
108 G4UImanager* UImanager = G4UImanager::GetUIpointer();
111 G4String command =
"/control/execute ";
113 UImanager->ApplyCommand(command+fileName);
118 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
122 UImanager->ApplyCommand(
"/control/execute prerunGammaRayTel.mac");
int main(int argc, char **argv)