34 #include "RE02DetectorConstruction.hh" 36 #include "RE02ActionInitialization.hh" 38 #ifdef G4MULTITHREADED 39 #include "G4MTRunManager.hh" 41 #include "G4RunManager.hh" 44 #include "G4UImanager.hh" 45 #include "G4SystemOfUnits.hh" 48 #include "G4UIExecutive.hh" 52 #include "G4VisExecutive.hh" 56 int main(
int argc,
char** argv) {
59 #ifdef G4MULTITHREADED 60 G4MTRunManager * runManager =
new G4MTRunManager;
63 G4RunManager * runManager =
new G4RunManager;
69 RE02DetectorConstruction* detector =
new RE02DetectorConstruction;
70 detector->SetPhantomSize(G4ThreeVector(200*mm,200*mm,400*mm));
71 detector->SetNumberOfSegmentsInPhantom(100,100,200);
76 detector->SetLeadSegment(TRUE);
81 runManager->SetUserInitialization(detector);
83 runManager->SetUserInitialization(
new QGS_BIC());
87 G4VisManager* visManager =
new G4VisExecutive;
88 visManager->Initialize();
92 runManager->SetUserInitialization(
new RE02ActionInitialization);
95 runManager->Initialize();
98 G4UImanager * pUI = G4UImanager::GetUIpointer();
104 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
106 pUI->ApplyCommand(
"/control/execute vis.mac");
115 G4String command =
"/control/execute ";
117 pUI->ApplyCommand(command+fileName);
int main(int argc, char **argv)