#include "G4Types.hh"
#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "XrayTelDetectorConstruction.hh"
#include "XrayTelPhysicsList.hh"
#include "XrayTelActionInitializer.hh"
#include "G4VisExecutive.hh"
#include "G4UIExecutive.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 93 of file XrayTel.cc.
96 #ifdef G4MULTITHREADED 97 G4MTRunManager* runManager =
new G4MTRunManager;
99 G4RunManager* runManager =
new G4RunManager;
103 runManager->SetUserInitialization(
new XrayTelDetectorConstruction ) ;
104 runManager->SetUserInitialization(
new XrayTelPhysicsList);
105 runManager->SetUserInitialization(
new XrayTelActionInitializer());
108 G4VisManager* visManager =
new G4VisExecutive;
109 visManager->Initialize();
112 runManager->Initialize();
115 G4UImanager *UImanager = G4UImanager::GetUIpointer();
117 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
118 UImanager->ApplyCommand(
"/control/execute vis.mac");
124 G4String command =
"/control/execute ";
125 for (
int i=2; i<=argc; i++) {
127 UImanager->ApplyCommand(command+macroFileName);