43 #ifdef G4MULTITHREADED 44 #include "G4MTRunManager.hh" 46 #include "G4RunManager.hh" 49 #include "G4UImanager.hh" 51 #include "G4VisExecutive.hh" 53 #include "G4UIExecutive.hh" 55 #include "GammaRayTelDetectorConstruction.hh" 56 #include "GammaRayTelPhysicsList.hh" 57 #include "GammaRayTelActionInitializer.hh" 60 #include "FTFP_BERT.hh" 62 #include "GammaRayTelAnalysis.hh" 65 int main(
int argc,
char** argv)
68 #ifdef G4MULTITHREADED 69 G4MTRunManager* runManager =
new G4MTRunManager;
72 G4RunManager* runManager =
new G4RunManager;
76 GammaRayTelDetectorConstruction* detector =
77 new GammaRayTelDetectorConstruction;
78 runManager->SetUserInitialization(detector);
83 runManager->SetUserInitialization(
new GammaRayTelPhysicsList);
89 runManager->SetUserInitialization(
new GammaRayTelActionInitializer());
92 GammaRayTelAnalysis* analysis = GammaRayTelAnalysis::getInstance();
96 G4VisManager* visManager =
new G4VisExecutive;
97 visManager->Initialize();
103 G4UImanager* UImanager = G4UImanager::GetUIpointer();
106 G4String command =
"/control/execute ";
108 UImanager->ApplyCommand(command+fileName);
112 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
116 UImanager->ApplyCommand(
"/control/execute prerunGammaRayTel.mac");
int main(int argc, char **argv)