#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "GB03DetectorConstruction.hh"
#include "GB03PrimaryGeneratorAction.hh"
#include "GB03ActionInitialization.hh"
#include "FTFP_BERT.hh"
#include "G4GenericBiasingPhysics.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 exampleGB03.cc.
53 #ifdef G4MULTITHREADED 54 G4MTRunManager * runManager =
new G4MTRunManager;
55 G4cout <<
" ********** Run Manager constructed in MT mode ************ " << G4endl;
57 runManager->SetNumberOfThreads(4);
59 G4RunManager * runManager =
new G4RunManager;
60 G4cout <<
" ********** Run Manager constructed in sequential mode ************ " << G4endl;
65 G4VUserDetectorConstruction* detector =
new GB03DetectorConstruction;
66 runManager->SetUserInitialization(detector);
67 G4VModularPhysicsList* physicsList =
new FTFP_BERT;
71 G4GenericBiasingPhysics* biasingPhysics =
new G4GenericBiasingPhysics();
72 biasingPhysics->NonPhysicsBias(
"neutron");
73 physicsList->RegisterPhysics(biasingPhysics);
74 runManager->SetUserInitialization(physicsList);
77 G4VUserActionInitialization* actions =
new GB03ActionInitialization;
78 runManager->SetUserInitialization(actions);
83 G4VisManager* visManager =
new G4VisExecutive;
84 visManager->Initialize();
89 runManager->Initialize();
93 G4UImanager* UImanager = G4UImanager::GetUIpointer();
98 G4UIExecutive * ui =
new G4UIExecutive(argc,argv);
100 UImanager->ApplyCommand(
"/control/execute vis.mac");
108 G4String command =
"/control/execute ";
110 UImanager->ApplyCommand(command+fileName);