#include "G4RunManager.hh"
#include "DetectorConstruction.hh"
#include "PhysicsList.hh"
#include "G4UImanager.hh"
#include "G4VisExecutive.hh"
#include "G4MTRunManager.hh"
#include "AnalysisManager.hh"
#include "ActionInitialization.hh"
#include "G4UIExecutive.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 42 of file radioprotection.cc.
45 #ifdef G4MULTITHREADED 46 G4MTRunManager* pRunManager =
new G4MTRunManager;
47 pRunManager->SetNumberOfThreads(4);
49 G4RunManager* pRunManager =
new G4RunManager;
52 AnalysisManager* analysis =
new AnalysisManager();
56 pRunManager -> SetUserInitialization(detector);
60 pRunManager -> SetUserInitialization(physics);
64 ActionInitialization* actions =
new ActionInitialization(analysis);
65 pRunManager->SetUserInitialization(actions);
67 G4VisManager* visManager =
new G4VisExecutive();
68 visManager->Initialize();
72 G4UImanager* UImanager = G4UImanager::GetUIpointer();
77 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
78 G4cout <<
" UI session starts ..." << G4endl;
79 UImanager -> ApplyCommand(
"/control/execute vis.mac");
87 G4String command =
"/control/execute ";
89 UImanager->ApplyCommand(command+fileName);
TConfigurablePhysicsList< ModularPhysicsList > PhysicsList