Main program of the exoticphysics/phonon example.
More...
#include "G4Types.hh"
#include "G4UImanager.hh"
#include "G4UserSteppingAction.hh"
#include "G4RunManager.hh"
#include "G4VisExecutive.hh"
#include "G4UIExecutive.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 52 of file XGeBox.cc.
55 G4UIExecutive* ui =
nullptr;
57 ui =
new G4UIExecutive(argc, argv);
62 #ifdef G4MULTITHREADED 63 G4MTRunManager* runManager =
new G4MTRunManager;
65 G4RunManager* runManager =
new G4RunManager;
70 XDetectorConstruction* detector =
new XDetectorConstruction();
71 runManager->SetUserInitialization(detector);
73 G4VUserPhysicsList* physics =
new XPhysicsList();
75 runManager->SetUserInitialization(physics);
79 runManager->SetUserInitialization(
new XActionInitialization);
83 G4VisManager* visManager =
new G4VisExecutive;
84 visManager->Initialize();
88 runManager->Initialize();
92 G4UImanager* UImanager = G4UImanager::GetUIpointer();
96 UImanager->ApplyCommand(
"/control/execute vis.mac");
102 G4String command =
"/control/execute ";
104 UImanager->ApplyCommand(command+fileName);