#include "G4Types.hh"
#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "G4UIExecutive.hh"
#include "G4VisExecutive.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 51 of file microbeam.cc.
55 G4UIExecutive* ui = 0;
57 ui =
new G4UIExecutive(argc, argv);
62 #ifdef G4MULTITHREADED 63 G4MTRunManager* runManager =
new G4MTRunManager;
66 G4RunManager* runManager =
new G4RunManager;
72 runManager->SetUserInitialization(detector);
78 runManager->SetUserInitialization(
new ActionInitialization(detector));
82 runManager->Initialize();
86 G4VisManager* visManager =
new G4VisExecutive;
87 visManager->Initialize();
90 G4UImanager* UImanager = G4UImanager::GetUIpointer();
96 G4String command =
"/control/execute ";
98 UImanager->ApplyCommand(command+fileName);
102 UImanager->ApplyCommand(
"/control/execute vis.mac");