80 #ifdef G4MULTITHREADED 81 #include "G4MTRunManager.hh" 83 #include "G4RunManager.hh" 86 #include "G4UImanager.hh" 87 #include "XrayTelDetectorConstruction.hh" 88 #include "XrayTelPhysicsList.hh" 89 #include "XrayTelActionInitializer.hh" 90 #include "G4VisExecutive.hh" 91 #include "G4UIExecutive.hh" 93 int main(
int argc,
char** argv )
96 #ifdef G4MULTITHREADED 97 G4MTRunManager* runManager =
new G4MTRunManager;
99 G4RunManager* runManager =
new G4RunManager;
103 runManager->SetUserInitialization(
new XrayTelDetectorConstruction ) ;
104 runManager->SetUserInitialization(
new XrayTelPhysicsList);
105 runManager->SetUserInitialization(
new XrayTelActionInitializer());
108 G4VisManager* visManager =
new G4VisExecutive;
109 visManager->Initialize();
112 runManager->Initialize();
115 G4UImanager *UImanager = G4UImanager::GetUIpointer();
117 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
118 UImanager->ApplyCommand(
"/control/execute vis.mac");
124 G4String command =
"/control/execute ";
125 for (
int i=2; i<=argc; i++) {
127 UImanager->ApplyCommand(command+macroFileName);
int main(int argc, char **argv)