#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "G4UIterminal.hh"
#include "G4UItcsh.hh"
#include "ActionInitialization.hh"
#include "DetectorConstruction.hh"
#include "PhysicsList.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 43 of file nanobeam.cc.
References session.
47 G4Random::setTheEngine(
new CLHEP::RanecuEngine);
51 #ifdef G4MULTITHREADED 52 G4MTRunManager* runManager =
new G4MTRunManager;
59 runManager->SetNumberOfThreads(1);
63 G4RunManager* runManager =
new G4RunManager;
72 runManager->SetUserInitialization(detector);
78 runManager->SetUserInitialization(
new ActionInitialization(detector));
82 runManager->Initialize();
86 G4UImanager* UImanager = G4UImanager::GetUIpointer();
91 G4UIsession *
session =
new G4UIterminal();
93 G4UIsession * session =
new G4UIterminal(
new G4UItcsh);
95 UImanager->ApplyCommand(
"/control/execute default.mac");
96 session->SessionStart();
101 G4String command =
"/control/execute ";
103 UImanager->ApplyCommand(command+fileName);
static G4UIterminal * session