#include "G4Types.hh"
#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "G4UIExecutive.hh"
#include "BrachyActionInitialization.hh"
#include "G4VisExecutive.hh"
#include "BrachyDetectorConstruction.hh"
#include "BrachyPhysicsList.hh"
#include "BrachyPrimaryGeneratorAction.hh"
#include "G4SDManager.hh"
#include "Randomize.hh"
#include "G4UImessenger.hh"
#include "G4ScoringManager.hh"
#include "BrachyUserScoreWriter.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 76 of file Brachy.cc.
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);