33 #ifdef G4MULTITHREADED 34 #include "G4MTRunManager.hh" 36 #include "G4RunManager.hh" 39 #include "G4UImanager.hh" 40 #include "G4String.hh" 42 #include "LXePhysicsList.hh" 43 #include "LXeDetectorConstruction.hh" 45 #include "LXeActionInitialization.hh" 47 #include "LXeRecorderBase.hh" 50 #include "G4VisExecutive.hh" 54 #include "G4UIExecutive.hh" 59 int main(
int argc,
char** argv)
61 #ifdef G4MULTITHREADED 62 G4MTRunManager * runManager =
new G4MTRunManager;
64 G4RunManager * runManager =
new G4RunManager;
67 runManager->SetUserInitialization(
new LXeDetectorConstruction());
68 runManager->SetUserInitialization(
new LXePhysicsList());
70 LXeRecorderBase* recorder = NULL;
72 runManager->SetUserInitialization(
new LXeActionInitialization(recorder));
75 G4VisManager* visManager =
new G4VisExecutive;
78 visManager->Initialize();
84 G4UImanager* UImanager = G4UImanager::GetUIpointer();
88 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
90 UImanager->ApplyCommand(
"/control/execute vis.mac");
93 UImanager->ApplyCommand(
"/control/execute gui.mac");
99 G4String command =
"/control/execute ";
101 UImanager->ApplyCommand(command+filename);
int main(int argc, char **argv)