43 #ifdef G4MULTITHREADED 44 #include "G4MTRunManager.hh" 46 #include "G4RunManager.hh" 49 #include "G4UImanager.hh" 50 #include "G4UIExecutive.hh" 52 #include "BrachyActionInitialization.hh" 55 #include "BrachyAnalysisManager.hh" 58 #include "G4VisExecutive.hh" 60 #include "BrachyDetectorConstruction.hh" 61 #include "BrachyPhysicsList.hh" 62 #include "BrachyPrimaryGeneratorAction.hh" 63 #include "G4SDManager.hh" 64 #include "Randomize.hh" 65 #include "G4RunManager.hh" 66 #include "G4SDManager.hh" 67 #include "G4UImanager.hh" 68 #include "G4UImessenger.hh" 70 #include "G4ScoringManager.hh" 71 #include "G4UIExecutive.hh" 73 #include "G4ScoringManager.hh" 74 #include "BrachyUserScoreWriter.hh" 76 int main(
int argc ,
char ** argv)
79 #ifdef G4MULTITHREADED 80 G4MTRunManager* pRunManager =
new G4MTRunManager;
81 pRunManager->SetNumberOfThreads(4);
83 G4RunManager* pRunManager =
new G4RunManager;
86 G4cout <<
"***********************" << G4endl;
87 G4cout <<
"*** Seed: " << G4Random::getTheSeed() <<
" ***" << G4endl;
88 G4cout <<
"***********************" << G4endl;
91 G4ScoringManager* scoringManager = G4ScoringManager::GetScoringManager();
94 scoringManager->SetScoreWriter(
new BrachyUserScoreWriter());
97 pRunManager -> SetUserInitialization(
new BrachyPhysicsList);
100 BrachyDetectorConstruction *pDetectorConstruction =
new BrachyDetectorConstruction();
101 pRunManager -> SetUserInitialization(pDetectorConstruction);
105 BrachyAnalysisManager* analysis = BrachyAnalysisManager::GetInstance();
111 BrachyActionInitialization* actions =
new BrachyActionInitialization();
112 pRunManager->SetUserInitialization(actions);
118 G4VisManager* visManager =
new G4VisExecutive;
119 visManager->Initialize();
122 G4UImanager* UImanager = G4UImanager::GetUIpointer();
125 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
126 G4cout <<
" UI session starts ..." << G4endl;
127 UImanager -> ApplyCommand(
"/control/execute VisualisationMacro.mac");
128 ui -> SessionStart();
133 G4String command =
"/control/execute ";
135 UImanager -> ApplyCommand(command+fileName);
int main(int argc, char **argv)