33 #include "RE02DetectorConstruction.hh" 35 #include "RE02ActionInitialization.hh" 37 #ifdef G4MULTITHREADED 38 #include "G4MTRunManager.hh" 40 #include "G4RunManager.hh" 43 #include "G4UImanager.hh" 44 #include "G4SystemOfUnits.hh" 46 #include "G4UIExecutive.hh" 47 #include "G4VisExecutive.hh" 50 int main(
int argc,
char** argv) {
53 G4UIExecutive* ui =
nullptr;
55 ui =
new G4UIExecutive(argc, 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());
86 G4VisManager* visManager =
new G4VisExecutive;
87 visManager->Initialize();
90 runManager->SetUserInitialization(
new RE02ActionInitialization);
93 runManager->Initialize();
96 G4UImanager * pUI = G4UImanager::GetUIpointer();
101 pUI->ApplyCommand(
"/control/execute vis.mac");
108 G4String command =
"/control/execute ";
110 pUI->ApplyCommand(command+fileName);
int main(int argc, char **argv)