32 #include "G4UImanager.hh" 33 #include "G4UserSteppingAction.hh" 35 #ifdef G4MULTITHREADED 36 #include "G4MTRunManager.hh" 38 #include "G4RunManager.hh" 42 #include "G4VisExecutive.hh" 46 #include "G4UIExecutive.hh" 49 #include "XActionInitialization.hh" 50 #include "XDetectorConstruction.hh" 51 #include "XPhysicsList.hh" 56 int main(
int argc,
char** argv) {
59 #ifdef G4MULTITHREADED 60 G4MTRunManager* runManager =
new G4MTRunManager;
62 G4RunManager* runManager =
new G4RunManager;
67 XDetectorConstruction* detector =
new XDetectorConstruction();
68 runManager->SetUserInitialization(detector);
70 G4VUserPhysicsList* physics =
new XPhysicsList();
72 runManager->SetUserInitialization(physics);
76 runManager->SetUserInitialization(
new XActionInitialization);
81 G4VisManager* visManager =
new G4VisExecutive;
82 visManager->Initialize();
87 runManager->Initialize();
91 G4UImanager* UImanager = G4UImanager::GetUIpointer();
96 G4UIExecutive * ui =
new G4UIExecutive(argc,argv);
98 UImanager->ApplyCommand(
"/control/execute vis.mac");
106 G4String command =
"/control/execute ";
108 UImanager->ApplyCommand(command+fileName);
int main(int argc, char **argv)