29 #include "B1DetectorConstruction.hh" 30 #include "B1ActionInitialization.hh" 32 #ifdef G4MULTITHREADED 33 #include "G4MTRunManager.hh" 35 #include "G4RunManager.hh" 38 #include "G4UImanager.hh" 41 #include "G4UIExecutive.hh" 42 #include "G4VisExecutive.hh" 43 #include "UVA_VisAction.hh" 45 #include "Randomize.hh" 46 #include "G4SystemOfUnits.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;
74 runManager->SetUserInitialization(
new B1DetectorConstruction());
77 G4VModularPhysicsList* physicsList =
new QBBC;
78 physicsList->SetVerboseLevel(1);
79 runManager->SetUserInitialization(physicsList);
82 runManager->SetUserInitialization(
new B1ActionInitialization());
85 G4VisManager* visManager =
new G4VisExecutive;
89 visManager->RegisterRunDurationUserVisAction
92 G4VisExtent(-20*cm,-10*cm,-25*cm,-15*cm,20*cm,40*cm));
93 visManager->Initialize();
96 G4UImanager* UImanager = G4UImanager::GetUIpointer();
100 G4String command =
"/control/execute ";
102 UImanager->ApplyCommand(command+fileName);
106 UImanager->ApplyCommand(
"/control/execute init_vis.mac");
int main(int argc, char **argv)