41 #ifdef G4MULTITHREADED 42 #include "G4MTRunManager.hh" 44 #include "G4RunManager.hh" 47 #include "G4UImanager.hh" 48 #include "G4UIExecutive.hh" 50 #include "BrachyActionInitialization.hh" 53 #include "BrachyAnalysisManager.hh" 57 #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" 73 #include "G4UIExecutive.hh" 76 #include "G4ScoringManager.hh" 77 #include "BrachyUserScoreWriter.hh" 79 int main(
int argc ,
char ** argv)
82 #ifdef G4MULTITHREADED 83 G4MTRunManager* pRunManager =
new G4MTRunManager;
84 pRunManager->SetNumberOfThreads(4);
86 G4RunManager* pRunManager =
new G4RunManager;
91 G4Random::setTheSeed(seed);
93 G4cout <<
"***********************" << G4endl;
94 G4cout <<
"*** " << seed <<
" ***" << G4endl;
95 G4cout <<
"***********************" << G4endl;
98 G4ScoringManager* scoringManager = G4ScoringManager::GetScoringManager();
101 scoringManager->SetScoreWriter(
new BrachyUserScoreWriter());
104 pRunManager -> SetUserInitialization(
new BrachyPhysicsList);
107 BrachyDetectorConstruction *pDetectorConstruction =
new BrachyDetectorConstruction();
108 pRunManager -> SetUserInitialization(pDetectorConstruction);
112 BrachyAnalysisManager* analysis = BrachyAnalysisManager::GetInstance();
118 BrachyActionInitialization* actions =
new BrachyActionInitialization();
119 pRunManager->SetUserInitialization(actions);
127 G4VisManager* visManager =
new G4VisExecutive;
128 visManager->Initialize();
132 G4UImanager* UImanager = G4UImanager::GetUIpointer();
136 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
137 G4cout <<
" UI session starts ..." << G4endl;
138 UImanager -> ApplyCommand(
"/control/execute VisualisationMacro.mac");
139 ui -> SessionStart();
145 G4String command =
"/control/execute ";
147 UImanager -> ApplyCommand(command+fileName);
int main(int argc, char **argv)