#include "G4Types.hh"
#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "G4VisExecutive.hh"
#include "G4UIExecutive.hh"
#include "GammaRayTelDetectorConstruction.hh"
#include "GammaRayTelPhysicsList.hh"
#include "GammaRayTelActionInitializer.hh"
#include "FTFP_BERT.hh"
#include "GammaRayTelAnalysis.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 65 of file GammaRayTel.cc.
68 #ifdef G4MULTITHREADED 69 G4MTRunManager* runManager =
new G4MTRunManager;
72 G4RunManager* runManager =
new G4RunManager;
76 GammaRayTelDetectorConstruction* detector =
77 new GammaRayTelDetectorConstruction;
78 runManager->SetUserInitialization(detector);
83 runManager->SetUserInitialization(
new GammaRayTelPhysicsList);
89 runManager->SetUserInitialization(
new GammaRayTelActionInitializer());
92 GammaRayTelAnalysis* analysis = GammaRayTelAnalysis::getInstance();
96 G4VisManager* visManager =
new G4VisExecutive;
97 visManager->Initialize();
103 G4UImanager* UImanager = G4UImanager::GetUIpointer();
106 G4String command =
"/control/execute ";
108 UImanager->ApplyCommand(command+fileName);
112 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
116 UImanager->ApplyCommand(
"/control/execute prerunGammaRayTel.mac");