38 #ifdef G4MULTITHREADED 39 #include "G4MTRunManager.hh" 41 #include "F03SteppingVerbose.hh" 42 #include "G4RunManager.hh" 45 #include "F03DetectorConstruction.hh" 46 #include "F03ActionInitialization.hh" 48 #include "G4UImanager.hh" 49 #include "FTFP_BERT.hh" 50 #include "G4StepLimiterPhysics.hh" 51 #include "Randomize.hh" 53 #include "G4VisExecutive.hh" 54 #include "G4UIExecutive.hh" 58 int main(
int argc,
char** argv)
61 G4UIExecutive* ui =
nullptr;
63 ui =
new G4UIExecutive(argc, argv);
68 G4Random::setTheEngine(
new CLHEP::RanecuEngine);
72 #ifdef G4MULTITHREADED 73 G4MTRunManager * runManager =
new G4MTRunManager;
75 G4VSteppingVerbose::SetInstance(
new F03SteppingVerbose);
76 G4RunManager * runManager =
new G4RunManager;
82 F03DetectorConstruction* detector =
new F03DetectorConstruction();
83 runManager->SetUserInitialization(detector);
85 G4VModularPhysicsList* physicsList =
new FTFP_BERT;
86 physicsList->RegisterPhysics(
new G4StepLimiterPhysics());
87 runManager->SetUserInitialization(physicsList);
89 runManager->SetUserInitialization(
new F03ActionInitialization(detector));
93 runManager->Initialize();
97 G4VisManager* visManager =
new G4VisExecutive;
100 visManager->Initialize();
104 G4UImanager* UImanager = G4UImanager::GetUIpointer();
108 G4String command =
"/control/execute ";
110 UImanager->ApplyCommand(command+fileName);
114 UImanager->ApplyCommand(
"/control/execute init_vis.mac");
116 UImanager->ApplyCommand(
"/control/execute gui.mac");
int main(int argc, char **argv)