31 #include "B2aDetectorConstruction.hh" 32 #include "B2ActionInitialization.hh" 34 #ifdef G4MULTITHREADED 35 #include "G4MTRunManager.hh" 37 #include "G4RunManager.hh" 40 #include "G4UImanager.hh" 41 #include "FTFP_BERT.hh" 42 #include "G4StepLimiterPhysics.hh" 44 #include "Randomize.hh" 46 #include "G4VisExecutive.hh" 47 #include "G4UIExecutive.hh" 51 int main(
int argc,
char** argv)
55 G4UIExecutive* ui = 0;
57 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 B2aDetectorConstruction());
75 G4VModularPhysicsList* physicsList =
new FTFP_BERT;
76 physicsList->RegisterPhysics(
new G4StepLimiterPhysics());
77 runManager->SetUserInitialization(physicsList);
80 runManager->SetUserInitialization(
new B2ActionInitialization());
84 G4VisManager* visManager =
new G4VisExecutive;
87 visManager->Initialize();
90 G4UImanager* UImanager = G4UImanager::GetUIpointer();
96 G4String command =
"/control/execute ";
98 UImanager->ApplyCommand(command+fileName);
102 UImanager->ApplyCommand(
"/control/execute init_vis.mac");
104 UImanager->ApplyCommand(
"/control/execute gui.mac");
int main(int argc, char **argv)