#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "Randomize.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 64 of file DMX.cc.
67 G4Random::setTheEngine(
new CLHEP::RanecuEngine);
70 #ifdef G4MULTITHREADED 71 G4MTRunManager* runManager =
new G4MTRunManager;
74 G4RunManager* runManager =
new G4RunManager;
78 runManager->SetUserInitialization(
new DMXDetectorConstruction);
79 runManager->SetUserInitialization(
new DMXPhysicsList);
80 runManager->SetUserInitialization(
new DMXActionInitializer());
84 G4VisManager* visManager =
new G4VisExecutive;
85 visManager->Initialize();
90 G4cout <<
" Using GPS and not DMX gun " << G4endl;
92 G4cout <<
" Using the DMX gun " << G4endl;
97 runManager->Initialize();
100 G4UImanager* UImanager = G4UImanager::GetUIpointer();
106 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
108 UImanager->ApplyCommand(
"/control/execute initInter.mac");
117 G4String command =
"/control/execute ";
119 UImanager->ApplyCommand(command+fileName);
124 G4AnalysisManager* man = G4AnalysisManager::Instance();
128 delete G4AnalysisManager::Instance();
131 if(visManager)
delete visManager;