Main program of the B1 example.
More...
#include "B1DetectorConstruction.hh"
#include "B1ActionInitialization.hh"
#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "QBBC.hh"
#include "G4VisExecutive.hh"
#include "G4UIExecutive.hh"
#include "Randomize.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
Main program of the B1 example.
Definition in file exampleB1.cc.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 50 of file exampleB1.cc.
54 G4UIExecutive* ui = 0;
56 ui =
new G4UIExecutive(argc, argv);
60 G4Random::setTheEngine(
new CLHEP::RanecuEngine);
64 #ifdef G4MULTITHREADED 65 G4MTRunManager* runManager =
new G4MTRunManager;
67 G4RunManager* runManager =
new G4RunManager;
73 runManager->SetUserInitialization(
new B1DetectorConstruction());
76 G4VModularPhysicsList* physicsList =
new QBBC;
77 physicsList->SetVerboseLevel(1);
78 runManager->SetUserInitialization(physicsList);
81 runManager->SetUserInitialization(
new B1ActionInitialization());
85 G4VisManager* visManager =
new G4VisExecutive;
88 visManager->Initialize();
91 G4UImanager* UImanager = G4UImanager::GetUIpointer();
97 G4String command =
"/control/execute ";
99 UImanager->ApplyCommand(command+fileName);
103 UImanager->ApplyCommand(
"/control/execute init_vis.mac");