Main program of the analysis/B5 example.
More...
#include "B5DetectorConstruction.hh"
#include "B5ActionInitialization.hh"
#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "FTFP_BERT.hh"
#include "G4StepLimiterPhysics.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
Main program of the analysis/B5 example.
Definition in file exampleB5.cc.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 54 of file exampleB5.cc.
59 G4UIExecutive* ui = 0;
61 ui =
new G4UIExecutive(argc, argv);
67 #ifdef G4MULTITHREADED 68 auto runManager =
new G4MTRunManager;
70 auto runManager =
new G4RunManager;
74 runManager->SetUserInitialization(
new B5DetectorConstruction);
76 auto physicsList =
new FTFP_BERT;
77 physicsList->RegisterPhysics(
new G4StepLimiterPhysics());
78 runManager->SetUserInitialization(physicsList);
81 runManager->SetUserInitialization(
new B5ActionInitialization());
85 auto visManager =
new G4VisExecutive;
88 visManager->Initialize();
92 auto UImanager = G4UImanager::GetUIpointer();
96 G4String command =
"/control/execute ";
98 UImanager->ApplyCommand(command+fileName);
103 UImanager->ApplyCommand(
"/control/execute init_vis.mac");
105 UImanager->ApplyCommand(
"/control/execute init.mac");
108 UImanager->ApplyCommand(
"/control/execute gui.mac");