#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "G4UIExecutive.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 52 of file microelectronics.cc.
References session.
57 session =
new G4UIExecutive(argc, argv);
62 G4Random::setTheEngine(
new CLHEP::RanecuEngine);
66 #ifdef G4MULTITHREADED 67 G4MTRunManager* runManager =
new G4MTRunManager;
70 G4RunManager* runManager =
new G4RunManager;
75 runManager->SetUserInitialization(detector);
80 runManager->SetUserInitialization(
new ActionInitialization(detector));
83 runManager->Initialize();
85 G4VisManager* visManager =
new G4VisExecutive;
86 visManager->Initialize();
89 G4UImanager* UImanager = G4UImanager::GetUIpointer();
93 UImanager->ApplyCommand(
"/control/execute microelectronics.mac");
94 session->SessionStart();
99 G4String command =
"/control/execute ";
101 UImanager->ApplyCommand(command+fileName);
static G4UIterminal * session