Main program of the Common example.
More...
#include "DetectorConstruction.hh"
#include "GeantinoPhysicsList.hh"
#include "GpsPrimaryGeneratorAction.hh"
#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "G4UIExecutive.hh"
#include "G4VisExecutive.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
Main program of the Common example.
Definition in file exampleCommon.cc.
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 41 of file exampleCommon.cc.
42{
43
44
47
48
50
51
54
55
57
58
59
61
62
63 visManager->Initialize();
64
65
66 G4UImanager* UImanager = G4UImanager::GetUIpointer();
67
68
69
70 if ( ! ui ) {
71
72 G4String command =
"/control/execute ";
74 UImanager->ApplyCommand(command+fileName);
75 }
76 else {
77
78 UImanager->ApplyCommand("/control/execute init_vis.mac");
79 ui->SessionStart();
80 delete ui;
81 }
82
83
84
85
86
87 delete visManager;
88 delete runManager;
89}
Simple detector construction with a box volume placed in a world.
Physics list with geantino and charged geantino only.
The primary generator class with general particle source.