Main program of the analysis/AnaEx01 example.
More...
#include "DetectorConstruction.hh"
#include "ActionInitialization.hh"
#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "FTFP_BERT.hh"
#include "G4VisExecutive.hh"
#include "G4UIExecutive.hh"
Go to the source code of this file.
|
| int | main (int argc, char **argv) |
| |
Main program of the analysis/AnaEx01 example.
Definition in file AnaEx01.cc.
| int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 52 of file AnaEx01.cc.
56 G4UIExecutive* ui = 0;
58 ui =
new G4UIExecutive(argc, argv);
63 #ifdef G4MULTITHREADED 65 G4MTRunManager * runManager =
new G4MTRunManager;
66 runManager->SetNumberOfThreads(nThreads);
68 G4RunManager * runManager =
new G4RunManager;
74 runManager->SetUserInitialization(detector);
75 runManager->SetUserInitialization(
new FTFP_BERT);
76 runManager->SetUserInitialization(
new ActionInitialization(detector));
80 G4VisManager* visManager =
new G4VisExecutive;
81 visManager->Initialize();
85 G4UImanager* UImanager = G4UImanager::GetUIpointer();
89 G4String command =
"/control/execute ";
91 UImanager->ApplyCommand(command+fileName);
95 UImanager->ApplyCommand(
"/control/execute init_vis.mac");