31 #include "B1DetectorConstruction.hh" 32 #include "B1ConActionInitialization.hh" 34 #ifdef G4MULTITHREADED 35 #include "G4MTRunManager.hh" 37 #include "G4RunManager.hh" 40 #include "G4UImanager.hh" 44 #include "G4VisExecutive.hh" 48 #include "G4UIExecutive.hh" 51 #include "Randomize.hh" 55 int main(
int argc,
char** 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();
89 G4VisManager* visManager =
new G4VisExecutive;
92 visManager->Initialize();
96 G4UImanager* UImanager = G4UImanager::GetUIpointer();
100 G4String command =
"/control/execute ";
102 UImanager->ApplyCommand(command+fileName);
107 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
109 UImanager->ApplyCommand(
"/control/execute init_vis.mac");
111 UImanager->ApplyCommand(
"/control/execute init.mac");
int main(int argc, char **argv)