#include "B1DetectorConstruction.hh"
#include "B1ConActionInitialization.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) |
|
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 49 of file exampleB1Con.cc.
52 G4UIExecutive* ui = 0;
54 ui =
new G4UIExecutive(argc, argv);
59 G4Random::setTheEngine(
new CLHEP::RanecuEngine);
63 #ifdef G4MULTITHREADED 64 G4MTRunManager* runManager =
new G4MTRunManager;
65 runManager->SetNumberOfThreads(8);
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 B1ConActionInitialization());
85 runManager->Initialize();
88 G4VisManager* visManager =
new G4VisExecutive;
91 visManager->Initialize();
94 G4UImanager* UImanager = G4UImanager::GetUIpointer();
98 G4String command =
"/control/execute ";
100 UImanager->ApplyCommand(command+fileName);
104 UImanager->ApplyCommand(
"/control/execute init_vis.mac");