Main program of the RE06 example.
More...
#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "FTFP_BERT.hh"
#include "G4ParallelWorldPhysics.hh"
#include "RE06DetectorConstruction.hh"
#include "RE06ParallelWorld.hh"
#include "RE06PrimaryGeneratorAction.hh"
#include "RE06RunAction.hh"
#include "RE06SteppingVerbose.hh"
#include "RE06ActionInitialization.hh"
#include "RE06WorkerInitialization.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
Main program of the RE06 example.
Definition in file exampleRE06.cc.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 61 of file exampleRE06.cc.
64 RE06SteppingVerbose* verbosity =
new RE06SteppingVerbose;
65 G4VSteppingVerbose::SetInstance(verbosity);
69 #ifdef G4MULTITHREADED 70 G4MTRunManager * runManager =
new G4MTRunManager;
71 runManager->SetNumberOfThreads(4);
72 runManager->SetUserInitialization(
new RE06WorkerInitialization);
74 G4RunManager* runManager =
new G4RunManager;
79 G4String parallelWorldName =
"ParallelScoringWorld";
80 G4VUserDetectorConstruction* detector =
new RE06DetectorConstruction;
81 detector->RegisterParallelWorld(
new RE06ParallelWorld(parallelWorldName));
82 runManager->SetUserInitialization(detector);
84 G4VModularPhysicsList* physics =
new FTFP_BERT;
85 physics->RegisterPhysics(
new G4ParallelWorldPhysics(parallelWorldName));
86 runManager->SetUserInitialization(physics);
90 runManager->SetUserInitialization(
new RE06ActionInitialization);
95 G4VisManager* visManager =
new G4VisExecutive;
96 visManager->Initialize();
101 runManager->Initialize();
105 G4UImanager* UImanager = G4UImanager::GetUIpointer();
110 G4UIExecutive * ui =
new G4UIExecutive(argc,argv);
112 UImanager->ApplyCommand(
"/control/execute vis.mac");
120 G4String command =
"/control/execute ";
122 UImanager->ApplyCommand(command+fileName);