Main program of the B2a example.
More...
#include "B2aDetectorConstruction.hh"
#include "B2ActionInitialization.hh"
#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "FTFP_BERT.hh"
#include "G4StepLimiterPhysics.hh"
#include "Randomize.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 B2a example.
Definition in file exampleB2a.cc.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 50 of file exampleB2a.cc.
54 G4UIExecutive* ui = 0;
56 ui =
new G4UIExecutive(argc, argv);
64 #ifdef G4MULTITHREADED 65 G4MTRunManager* runManager =
new G4MTRunManager;
67 G4RunManager* runManager =
new G4RunManager;
72 runManager->SetUserInitialization(
new B2aDetectorConstruction());
74 G4VModularPhysicsList* physicsList =
new FTFP_BERT;
75 physicsList->RegisterPhysics(
new G4StepLimiterPhysics());
76 runManager->SetUserInitialization(physicsList);
79 runManager->SetUserInitialization(
new B2ActionInitialization());
83 G4VisManager* visManager =
new G4VisExecutive;
86 visManager->Initialize();
89 G4UImanager* UImanager = G4UImanager::GetUIpointer();
95 G4String command =
"/control/execute ";
97 UImanager->ApplyCommand(command+fileName);
101 UImanager->ApplyCommand(
"/control/execute init_vis.mac");
103 UImanager->ApplyCommand(
"/control/execute gui.mac");