30 #include "B1DetectorConstruction.hh" 31 #include "B1ActionInitialization.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)
53 G4UIExecutive* ui = 0;
55 ui =
new G4UIExecutive(argc, argv);
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 G4VisManager* visManager =
new G4VisExecutive;
87 visManager->Initialize();
90 G4UImanager* UImanager = G4UImanager::GetUIpointer();
96 G4String command =
"/control/execute ";
98 UImanager->ApplyCommand(command+fileName);
102 UImanager->ApplyCommand(
"/control/execute init_vis.mac");
int main(int argc, char **argv)