Main program of the runAndEvent/RE03 example.
More...
#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "G4ScoringManager.hh"
#include "RE03DetectorConstruction.hh"
#include "FTFP_BERT.hh"
#include "RE03ActionInitialization.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
Main program of the runAndEvent/RE03 example.
Definition in file RE03.cc.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 57 of file RE03.cc.
61 #ifdef G4MULTITHREADED 62 G4MTRunManager * runManager =
new G4MTRunManager;
63 runManager->SetNumberOfThreads(4);
65 G4RunManager * runManager =
new G4RunManager;
69 G4ScoringManager * scManager = G4ScoringManager::GetScoringManager();
70 scManager->SetVerboseLevel(1);
79 G4VUserDetectorConstruction* detector =
new RE03DetectorConstruction;
80 runManager->SetUserInitialization(detector);
82 G4VUserPhysicsList* physics =
new FTFP_BERT;
83 runManager->SetUserInitialization(physics);
87 RE03ActionInitialization* actions =
new RE03ActionInitialization;
88 runManager->SetUserInitialization(actions);
92 G4VisManager* visManager =
new G4VisExecutive;
93 visManager->Initialize();
98 runManager->Initialize();
102 G4UImanager* UImanager = G4UImanager::GetUIpointer();
107 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
109 UImanager->ApplyCommand(
"/control/execute vis.mac");
117 G4String command =
"/control/execute ";
119 UImanager->ApplyCommand(command+fileName);