31 #ifdef G4MULTITHREADED 32 #include "G4MTRunManager.hh" 34 #include "G4RunManager.hh" 37 #include "G4UImanager.hh" 39 #include "Randomize.hh" 41 #include "B3DetectorConstruction.hh" 42 #include "B3PhysicsList.hh" 43 #include "B3aActionInitialization.hh" 45 #include "G4VisExecutive.hh" 46 #include "G4UIExecutive.hh" 50 int main(
int argc,
char** argv)
54 G4UIExecutive* ui = 0;
56 ui =
new G4UIExecutive(argc, argv);
61 G4Random::setTheEngine(
new CLHEP::RanecuEngine);
65 #ifdef G4MULTITHREADED 66 G4MTRunManager* runManager =
new G4MTRunManager;
68 G4RunManager* runManager =
new G4RunManager;
73 runManager->SetUserInitialization(
new B3DetectorConstruction);
75 runManager->SetUserInitialization(
new B3PhysicsList);
79 runManager->SetUserInitialization(
new B3aActionInitialization());
83 G4VisManager* visManager =
new G4VisExecutive;
86 visManager->Initialize();
89 G4UImanager* UImanager = G4UImanager::GetUIpointer();
95 G4String command =
"/control/execute ";
97 UImanager->ApplyCommand(command+fileName);
101 UImanager->ApplyCommand(
"/control/execute init_vis.mac");
int main(int argc, char **argv)