32 #ifdef G4MULTITHREADED 33 #include "G4MTRunManager.hh" 35 #include "G4RunManager.hh" 38 #include "G4UImanager.hh" 39 #include "G4VisExecutive.hh" 40 #include "G4UIExecutive.hh" 41 #include "G4TScoreNtupleWriter.hh" 43 #include "Randomize.hh" 45 #include "B3DetectorConstruction.hh" 46 #include "B3PhysicsList.hh" 47 #include "B3bActionInitialization.hh" 48 #include "B3Analysis.hh" 52 int main(
int argc,
char** argv)
56 G4UIExecutive* ui = 0;
58 ui =
new G4UIExecutive(argc, argv);
67 #ifdef G4MULTITHREADED 68 G4MTRunManager* runManager =
new G4MTRunManager;
70 G4RunManager* runManager =
new G4RunManager;
75 runManager->SetUserInitialization(
new B3DetectorConstruction);
77 runManager->SetUserInitialization(
new B3PhysicsList);
81 runManager->SetUserInitialization(
new B3bActionInitialization());
85 G4VisManager* visManager =
new G4VisExecutive;
88 visManager->Initialize();
91 G4UImanager* UImanager = G4UImanager::GetUIpointer();
97 G4TScoreNtupleWriter<G4AnalysisManager> scoreNtupleWriter;
98 scoreNtupleWriter.SetVerboseLevel(1);
104 G4String command =
"/control/execute ";
106 UImanager->ApplyCommand(command+fileName);
110 UImanager->ApplyCommand(
"/control/execute init_vis.mac");
int main(int argc, char **argv)