31 #include "B1DetectorConstruction.hh" 32 #include "B1ActionInitialization.hh" 34 #ifdef G4MULTITHREADED 35 #include "G4MTRunManager.hh" 37 #include "G4RunManager.hh" 40 #include "G4UImanager.hh" 43 #include "G4VisExecutive.hh" 44 #include "G4UIExecutive.hh" 46 #include "Randomize.hh" 50 int main(
int argc,
char** argv)
54 G4UIExecutive* ui = 0;
56 ui =
new G4UIExecutive(argc, argv);
60 G4Random::setTheEngine(
new CLHEP::RanecuEngine);
64 #ifdef G4MULTITHREADED 65 G4MTRunManager* runManager =
new G4MTRunManager;
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 B1ActionInitialization());
85 G4VisManager* visManager =
new G4VisExecutive;
88 visManager->Initialize();
91 G4UImanager* UImanager = G4UImanager::GetUIpointer();
97 G4String command =
"/control/execute ";
99 UImanager->ApplyCommand(command+fileName);
103 UImanager->ApplyCommand(
"/control/execute init_vis.mac");
int main(int argc, char **argv)