Main program of the optical/LXe example.
More...
#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "G4String.hh"
#include "LXePhysicsList.hh"
#include "LXeDetectorConstruction.hh"
#include "LXeActionInitialization.hh"
#include "LXeRecorderBase.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
Main program of the optical/LXe example.
Definition in file LXe.cc.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 59 of file LXe.cc.
61 #ifdef G4MULTITHREADED 62 G4MTRunManager * runManager =
new G4MTRunManager;
64 G4RunManager * runManager =
new G4RunManager;
67 runManager->SetUserInitialization(
new LXeDetectorConstruction());
68 runManager->SetUserInitialization(
new LXePhysicsList());
70 LXeRecorderBase* recorder = NULL;
72 runManager->SetUserInitialization(
new LXeActionInitialization(recorder));
75 G4VisManager* visManager =
new G4VisExecutive;
78 visManager->Initialize();
84 G4UImanager* UImanager = G4UImanager::GetUIpointer();
88 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
90 UImanager->ApplyCommand(
"/control/execute vis.mac");
93 UImanager->ApplyCommand(
"/control/execute gui.mac");
99 G4String command =
"/control/execute ";
101 UImanager->ApplyCommand(command+filename);