Main program of the pythia6Decayer example.
More...
#include "P6DExtDecayerPhysics.hh"
#include "ExG4DetectorConstruction01.hh"
#include "ExG4PrimaryGeneratorAction01.hh"
#include "ExG4RunAction01.hh"
#include "ExG4EventAction01.hh"
#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "G4ThreeVector.hh"
#include "QGSP_BERT.hh"
#include "G4SystemOfUnits.hh"
#include "Randomize.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
Main program of the pythia6Decayer example.
Definition in file pythia6_decayer.cc.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 54 of file pythia6_decayer.cc.
58 G4Random::setTheEngine(
new CLHEP::RanecuEngine);
62 G4RunManager * runManager =
new G4RunManager;
66 runManager->SetUserInitialization(
new ExG4DetectorConstruction01);
69 G4VModularPhysicsList* physicsList =
new QGSP_BERT;
70 physicsList->RegisterPhysics(
new P6DExtDecayerPhysics());
71 runManager->SetUserInitialization(physicsList);
76 runManager->SetUserAction(
77 new ExG4PrimaryGeneratorAction01(
"B-", 50.*MeV));
79 runManager->SetUserAction(
new ExG4RunAction01);
80 runManager->SetUserAction(
new ExG4EventAction01);
82 runManager->Initialize();
86 G4VisManager* visManager =
new G4VisExecutive;
89 visManager->Initialize();
94 G4UImanager* UImanager = G4UImanager::GetUIpointer();
98 G4String command =
"/control/execute ";
100 UImanager->ApplyCommand(command+fileName);
104 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
106 UImanager->ApplyCommand(
"/control/execute init_vis.mac");
108 UImanager->ApplyCommand(
"/control/execute init.mac");