#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "G4PhysListFactory.hh"
#include "G4VModularPhysicsList.hh"
#include "IORTEventAction.hh"
#include "IORTPhysicsList.hh"
#include "IORTPrimaryGeneratorAction.hh"
#include "IORTRunAction.hh"
#include "Randomize.hh"
#include "G4UImessenger.hh"
#include "globals.hh"
#include "IORTSteppingAction.hh"
#include "IORTGeometryController.hh"
#include "IORTGeometryMessenger.hh"
#include "G4VisExecutive.hh"
#include "G4UIExecutive.hh"
#include <ctime>
#include "G4ScoringManager.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 77 of file iort_therapy.cc.
References Initialize().
80 CLHEP::HepRandom::setTheEngine(
new CLHEP::RanecuEngine());
85 G4RunManager* runManager =
new G4RunManager;
87 G4ScoringManager::GetScoringManager();
93 IORTGeometryController *geometryController =
new IORTGeometryController();
96 IORTGeometryMessenger *geometryMessenger =
new IORTGeometryMessenger(geometryController);
99 geometryController->SetGeometry(
"default");
101 runManager->SetUserInitialization(
new IORTPhysicsList());
104 IORTPrimaryGeneratorAction *pPrimaryGenerator =
new IORTPrimaryGeneratorAction();
105 runManager -> SetUserAction(pPrimaryGenerator);
108 IORTRunAction* pRunAction =
new IORTRunAction();
109 runManager -> SetUserAction(pRunAction);
111 IORTEventAction* pEventAction =
new IORTEventAction();
112 runManager -> SetUserAction(pEventAction);
114 IORTSteppingAction* steppingAction =
new IORTSteppingAction(pRunAction);
115 runManager -> SetUserAction(steppingAction);
118 G4VisManager* visManager =
new G4VisExecutive;
121 G4UImanager* UImanager = G4UImanager::GetUIpointer();
124 G4String command =
"/control/execute ";
126 UImanager->ApplyCommand(command+fileName);
131 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
133 UImanager->ApplyCommand(
"/control/execute defaultMacro.mac");
143 delete geometryMessenger;
144 delete geometryController;