30 #include "B1DetectorConstruction.hh" 31 #include "B1ConActionInitialization.hh" 33 #ifdef G4MULTITHREADED 34 #include "G4MTRunManager.hh" 36 #include "G4RunManager.hh" 39 #include "G4UImanager.hh" 42 #include "G4VisExecutive.hh" 43 #include "G4UIExecutive.hh" 45 #include "Randomize.hh" 49 int main(
int argc,
char** argv)
52 G4UIExecutive* ui = 0;
54 ui =
new G4UIExecutive(argc, argv);
59 G4Random::setTheEngine(
new CLHEP::RanecuEngine);
63 #ifdef G4MULTITHREADED 64 G4MTRunManager* runManager =
new G4MTRunManager;
65 runManager->SetNumberOfThreads(8);
67 G4RunManager* runManager =
new G4RunManager;
73 runManager->SetUserInitialization(
new B1DetectorConstruction());
76 G4VModularPhysicsList* physicsList =
new QBBC;
77 physicsList->SetVerboseLevel(1);
78 runManager->SetUserInitialization(physicsList);
81 runManager->SetUserInitialization(
new B1ConActionInitialization());
85 runManager->Initialize();
88 G4VisManager* visManager =
new G4VisExecutive;
91 visManager->Initialize();
94 G4UImanager* UImanager = G4UImanager::GetUIpointer();
98 G4String command =
"/control/execute ";
100 UImanager->ApplyCommand(command+fileName);
104 UImanager->ApplyCommand(
"/control/execute init_vis.mac");
int main(int argc, char **argv)