Main program of the B3a example.
More...
#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "Randomize.hh"
#include "B3DetectorConstruction.hh"
#include "B3PhysicsList.hh"
#include "B3aActionInitialization.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 B3a example.
Definition in file exampleB3a.cc.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 50 of file exampleB3a.cc.
54 G4UIExecutive* ui = 0;
56 ui =
new G4UIExecutive(argc, argv);
61 G4Random::setTheEngine(
new CLHEP::RanecuEngine);
65 #ifdef G4MULTITHREADED 66 G4MTRunManager* runManager =
new G4MTRunManager;
68 G4RunManager* runManager =
new G4RunManager;
73 runManager->SetUserInitialization(
new B3DetectorConstruction);
75 runManager->SetUserInitialization(
new B3PhysicsList);
79 runManager->SetUserInitialization(
new B3aActionInitialization());
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");