Main program of the visualization/userVisAction example.
More...
#include "B1DetectorConstruction.hh"
#include "B1ActionInitialization.hh"
#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "QBBC.hh"
#include "G4UIExecutive.hh"
#include "G4VisExecutive.hh"
#include "UVA_VisAction.hh"
#include "Randomize.hh"
#include "G4SystemOfUnits.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
Main program of the visualization/userVisAction example.
Definition in file userVisAction.cc.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 50 of file userVisAction.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;
74 runManager->SetUserInitialization(
new B1DetectorConstruction());
77 G4VModularPhysicsList* physicsList =
new QBBC;
78 physicsList->SetVerboseLevel(1);
79 runManager->SetUserInitialization(physicsList);
82 runManager->SetUserInitialization(
new B1ActionInitialization());
85 G4VisManager* visManager =
new G4VisExecutive;
89 visManager->RegisterRunDurationUserVisAction
92 G4VisExtent(-20*cm,-10*cm,-25*cm,-15*cm,20*cm,40*cm));
93 visManager->Initialize();
96 G4UImanager* UImanager = G4UImanager::GetUIpointer();
100 G4String command =
"/control/execute ";
102 UImanager->ApplyCommand(command+fileName);
106 UImanager->ApplyCommand(
"/control/execute init_vis.mac");