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"
#include "G4VisExecutive.hh"
#include "G4UIExecutive.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 48 of file exampleB5.cc.
52 G4UIExecutive* ui = 0;
54 ui =
new G4UIExecutive(argc, argv);
59 #ifdef G4MULTITHREADED 60 auto runManager =
new G4MTRunManager;
62 auto runManager =
new G4RunManager;
66 runManager->SetUserInitialization(
new B5DetectorConstruction);
68 auto physicsList =
new FTFP_BERT;
69 physicsList->RegisterPhysics(
new G4StepLimiterPhysics());
70 runManager->SetUserInitialization(physicsList);
73 runManager->SetUserInitialization(
new B5ActionInitialization());
76 auto visManager =
new G4VisExecutive;
79 visManager->Initialize();
82 auto UImanager = G4UImanager::GetUIpointer();
86 G4String command =
"/control/execute ";
88 UImanager->ApplyCommand(command+fileName);
91 UImanager->ApplyCommand(
"/control/execute init_vis.mac");
93 UImanager->ApplyCommand(
"/control/execute gui.mac");