#include "G4Types.hh"
#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "Randomize.hh"
#include "G4VisExecutive.hh"
#include "G4UIExecutive.hh"
#include "UltraActionInitializer.hh"
#include "UltraDetectorConstruction.hh"
#include "UltraPhysicsList.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 57 of file Ultra.cc.
62 G4Random::setTheEngine(
new CLHEP::RanluxEngine);
64 #ifdef G4MULTITHREADED 65 G4MTRunManager* runManager =
new G4MTRunManager;
68 G4RunManager* runManager =
new G4RunManager;
72 runManager->SetUserInitialization(
new UltraDetectorConstruction);
73 runManager->SetUserInitialization(
new UltraPhysicsList());
76 runManager->SetUserInitialization(
new UltraActionInitializer());
79 G4UIExecutive* ui = 0;
81 ui =
new G4UIExecutive(argc, argv);
85 G4VisManager* visManager =
new G4VisExecutive;
86 visManager->Initialize();
89 G4UImanager* UImanager = G4UImanager::GetUIpointer();
95 UImanager->ApplyCommand(
"/control/execute VisDirect.mac");
101 G4String command =
"/control/execute ";
103 UImanager->ApplyCommand(command+fileName);