Main program of the field/field02 example.
More...
#include "F02SteppingVerbose.hh"
#include "G4RunManager.hh"
#include "F02DetectorConstruction.hh"
#include "F02ActionInitialization.hh"
#include "G4UImanager.hh"
#include "FTFP_BERT.hh"
#include "G4StepLimiterPhysics.hh"
#include "Randomize.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
Main program of the field/field02 example.
Definition in file field02.cc.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 62 of file field02.cc.
66 G4Random::setTheEngine(
new CLHEP::RanecuEngine);
70 #ifdef G4MULTITHREADED 71 G4MTRunManager * runManager =
new G4MTRunManager;
73 G4VSteppingVerbose::SetInstance(
new F02SteppingVerbose);
74 G4RunManager * runManager =
new G4RunManager;
80 F02DetectorConstruction* detector =
new F02DetectorConstruction();
81 runManager->SetUserInitialization(detector);
83 G4VModularPhysicsList* physicsList =
new FTFP_BERT;
84 physicsList->RegisterPhysics(
new G4StepLimiterPhysics());
85 runManager->SetUserInitialization(physicsList);
87 runManager->SetUserInitialization(
new F02ActionInitialization(detector));
91 runManager->Initialize();
96 G4VisManager* visManager =
new G4VisExecutive;
99 visManager->Initialize();
104 G4UImanager* UImanager = G4UImanager::GetUIpointer();
108 G4String command =
"/control/execute ";
110 UImanager->ApplyCommand(command+fileName);
115 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
117 UImanager->ApplyCommand(
"/control/execute gui.mac");