#include "B1DetectorConstruction.hh"
#include "B1ConActionInitialization.hh"
#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "QBBC.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 55 of file exampleB1Con.cc.
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();
89 G4VisManager* visManager =
new G4VisExecutive;
92 visManager->Initialize();
96 G4UImanager* UImanager = G4UImanager::GetUIpointer();
100 G4String command =
"/control/execute ";
102 UImanager->ApplyCommand(command+fileName);
107 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
109 UImanager->ApplyCommand(
"/control/execute init_vis.mac");
111 UImanager->ApplyCommand(
"/control/execute init.mac");