37 #ifdef G4MULTITHREADED 38 #include "G4MTRunManager.hh" 40 #include "F02SteppingVerbose.hh" 41 #include "G4RunManager.hh" 44 #include "F02DetectorConstruction.hh" 45 #include "F02ActionInitialization.hh" 47 #include "G4UImanager.hh" 48 #include "FTFP_BERT.hh" 49 #include "G4StepLimiterPhysics.hh" 50 #include "Randomize.hh" 53 #include "G4VisExecutive.hh" 57 #include "G4UIExecutive.hh" 62 int main(
int argc,
char** argv)
66 G4Random::setTheEngine(
new CLHEP::RanecuEngine);
70 #ifdef G4MULTITHREADED 71 G4MTRunManager * runManager =
new G4MTRunManager;
73 G4VSteppingVerbose::SetInstance(
new F02SteppingVerbose);
74 G4RunManager * runManager =
new G4RunManager;
80 F02DetectorConstruction* detector =
new F02DetectorConstruction();
81 runManager->SetUserInitialization(detector);
83 G4VModularPhysicsList* physicsList =
new FTFP_BERT;
84 physicsList->RegisterPhysics(
new G4StepLimiterPhysics());
85 runManager->SetUserInitialization(physicsList);
87 runManager->SetUserInitialization(
new F02ActionInitialization(detector));
91 runManager->Initialize();
96 G4VisManager* visManager =
new G4VisExecutive;
99 visManager->Initialize();
104 G4UImanager* UImanager = G4UImanager::GetUIpointer();
108 G4String command =
"/control/execute ";
110 UImanager->ApplyCommand(command+fileName);
115 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
117 UImanager->ApplyCommand(
"/control/execute gui.mac");
int main(int argc, char **argv)