29 #include "B1DetectorConstruction.hh" 30 #include "B1ActionInitialization.hh" 32 #ifdef G4MULTITHREADED 33 #include "G4MTRunManager.hh" 35 #include "G4RunManager.hh" 38 #include "G4UImanager.hh" 42 #include "G4VisExecutive.hh" 43 #include "UVA_VisAction.hh" 47 #include "G4UIExecutive.hh" 50 #include "Randomize.hh" 51 #include "G4SystemOfUnits.hh" 55 int main(
int argc,
char** argv)
59 G4Random::setTheEngine(
new CLHEP::RanecuEngine);
63 #ifdef G4MULTITHREADED 64 G4MTRunManager* runManager =
new G4MTRunManager;
66 G4RunManager* runManager =
new G4RunManager;
72 runManager->SetUserInitialization(
new B1DetectorConstruction());
75 G4VModularPhysicsList* physicsList =
new QBBC;
76 physicsList->SetVerboseLevel(1);
77 runManager->SetUserInitialization(physicsList);
80 runManager->SetUserInitialization(
new B1ActionInitialization());
84 runManager->Initialize();
88 G4VisManager* visManager =
new G4VisExecutive;
91 visManager->Initialize();
93 visManager->SetUserAction
94 (
new UVA_VisAction, G4VisExtent(-20*cm,-10*cm,-25*cm,-15*cm,20*cm,40*cm));
98 G4UImanager* UImanager = G4UImanager::GetUIpointer();
102 G4String command =
"/control/execute ";
104 UImanager->ApplyCommand(command+fileName);
109 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
111 UImanager->ApplyCommand(
"/control/execute init_vis.mac");
113 UImanager->ApplyCommand(
"/control/execute init.mac");
int main(int argc, char **argv)