78 #ifdef G4MULTITHREADED 79 #include "G4MTRunManager.hh" 81 #include "G4RunManager.hh" 84 #include "G4UImanager.hh" 85 #include "XrayTelDetectorConstruction.hh" 86 #include "XrayTelPhysicsList.hh" 87 #include "XrayTelActionInitializer.hh" 90 #include "G4VisExecutive.hh" 94 #include "G4UIExecutive.hh" 99 int main(
int argc,
char** argv )
102 #ifdef G4MULTITHREADED 103 G4MTRunManager* runManager =
new G4MTRunManager;
105 G4RunManager* runManager =
new G4RunManager;
109 runManager->SetUserInitialization(
new XrayTelDetectorConstruction ) ;
110 runManager->SetUserInitialization(
new XrayTelPhysicsList);
111 runManager->SetUserInitialization(
new XrayTelActionInitializer());
115 G4VisManager* visManager =
new G4VisExecutive;
116 visManager->Initialize();
120 runManager->Initialize();
123 G4UImanager *UImanager = G4UImanager::GetUIpointer();
126 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
128 UImanager->ApplyCommand(
"/control/execute vis.mac");
136 G4String command =
"/control/execute ";
137 for (
int i=2; i<=argc; i++) {
139 UImanager->ApplyCommand(command+macroFileName);
int main(int argc, char **argv)