#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "XrayTelDetectorConstruction.hh"
#include "XrayTelPhysicsList.hh"
#include "XrayTelActionInitializer.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 99 of file XrayTel.cc.
102 #ifdef G4MULTITHREADED 103 G4MTRunManager* runManager =
new G4MTRunManager;
105 G4RunManager* runManager =
new G4RunManager;
109 runManager->SetUserInitialization(
new XrayTelDetectorConstruction ) ;
110 runManager->SetUserInitialization(
new XrayTelPhysicsList);
111 runManager->SetUserInitialization(
new XrayTelActionInitializer());
115 G4VisManager* visManager =
new G4VisExecutive;
116 visManager->Initialize();
120 runManager->Initialize();
123 G4UImanager *UImanager = G4UImanager::GetUIpointer();
126 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
128 UImanager->ApplyCommand(
"/control/execute vis.mac");
136 G4String command =
"/control/execute ";
137 for (
int i=2; i<=argc; i++) {
139 UImanager->ApplyCommand(command+macroFileName);