Main program of the exoticphysics/phonon example.
More...
#include "G4UImanager.hh"
#include "G4UserSteppingAction.hh"
#include "G4RunManager.hh"
#include "XActionInitialization.hh"
#include "XDetectorConstruction.hh"
#include "XPhysicsList.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
Main program of the exoticphysics/phonon example.
Definition in file XGeBox.cc.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 56 of file XGeBox.cc.
59 #ifdef G4MULTITHREADED 60 G4MTRunManager* runManager =
new G4MTRunManager;
62 G4RunManager* runManager =
new G4RunManager;
67 XDetectorConstruction* detector =
new XDetectorConstruction();
68 runManager->SetUserInitialization(detector);
70 G4VUserPhysicsList* physics =
new XPhysicsList();
72 runManager->SetUserInitialization(physics);
76 runManager->SetUserInitialization(
new XActionInitialization);
81 G4VisManager* visManager =
new G4VisExecutive;
82 visManager->Initialize();
87 runManager->Initialize();
91 G4UImanager* UImanager = G4UImanager::GetUIpointer();
96 G4UIExecutive * ui =
new G4UIExecutive(argc,argv);
98 UImanager->ApplyCommand(
"/control/execute vis.mac");
106 G4String command =
"/control/execute ";
108 UImanager->ApplyCommand(command+fileName);