#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 56 of file Ultra.cc.
61 G4Random::setTheEngine(
new CLHEP::RanluxEngine);
63 #ifdef G4MULTITHREADED 64 G4MTRunManager* runManager =
new G4MTRunManager;
67 G4RunManager* runManager =
new G4RunManager;
71 UltraDetectorConstruction* detector =
new UltraDetectorConstruction;
72 UltraPhysicsList* list =
new UltraPhysicsList();
73 runManager->SetUserInitialization(detector);
74 runManager->SetUserInitialization(list);
77 runManager->SetUserInitialization(
new UltraActionInitializer());
80 G4UIExecutive* ui = 0;
82 ui =
new G4UIExecutive(argc, argv);
86 G4VisManager* visManager =
new G4VisExecutive;
87 visManager->Initialize();
90 G4UImanager* UImanager = G4UImanager::GetUIpointer();
96 UImanager->ApplyCommand(
"/control/execute Visualisation.mac");
102 G4String command =
"/control/execute ";
104 UImanager->ApplyCommand(command+fileName);