#include "G4Types.hh"
#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "Randomize.hh"
#include "G4VisExecutive.hh"
#include "G4UIExecutive.hh"
#include "DMXAnalysisManager.hh"
#include "DMXDetectorConstruction.hh"
#include "DMXPhysicsList.hh"
#include "DMXActionInitializer.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 61 of file DMX.cc.
64 G4Random::setTheEngine(
new CLHEP::RanecuEngine);
67 #ifdef G4MULTITHREADED 68 G4MTRunManager* runManager =
new G4MTRunManager;
71 G4RunManager* runManager =
new G4RunManager;
75 runManager->SetUserInitialization(
new DMXDetectorConstruction);
76 runManager->SetUserInitialization(
new DMXPhysicsList);
77 runManager->SetUserInitialization(
new DMXActionInitializer());
80 G4VisManager* visManager =
new G4VisExecutive;
81 visManager->Initialize();
84 G4cout <<
" Using GPS and not DMX gun " << G4endl;
86 G4cout <<
" Using the DMX gun " << G4endl;
91 runManager->Initialize();
94 G4UImanager* UImanager = G4UImanager::GetUIpointer();
99 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
100 UImanager->ApplyCommand(
"/control/execute initInter.mac");
107 G4String command =
"/control/execute ";
109 UImanager->ApplyCommand(command+fileName);
114 G4AnalysisManager* man = G4AnalysisManager::Instance();
118 delete G4AnalysisManager::Instance();
120 if(visManager)
delete visManager;