Main program of the medical/dna/svalue example.
More...
#include "G4Types.hh"
#include "MyFile.hh"
#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "G4UIExecutive.hh"
#include "G4VisExecutive.hh"
#include "Randomize.hh"
#include "DetectorConstruction.hh"
#include "PhysicsList.hh"
#include "ActionInitialization.hh"
#include "SteppingVerbose.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
Main program of the medical/dna/svalue example.
Definition in file svalue.cc.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 59 of file svalue.cc.
65 G4UIExecutive* ui = 0;
67 ui =
new G4UIExecutive(argc, argv);
71 #ifdef G4MULTITHREADED 72 G4MTRunManager* runManager =
new G4MTRunManager();
73 G4int nThreads = G4Threading::G4GetNumberOfCores();
74 if (argc==3) nThreads = G4UIcommand::ConvertToInt(argv[2]);
75 runManager->SetNumberOfThreads(nThreads);
77 G4VSteppingVerbose::SetInstance(
new SteppingVerbose);
78 G4RunManager* runManager =
new G4RunManager();
83 runManager->SetUserInitialization(detector);
84 runManager->SetUserInitialization(
new PhysicsList());
85 runManager->SetUserInitialization(
new ActionInitialization(detector));
88 G4VisManager* visManager =
new G4VisExecutive;
89 visManager->Initialize();
92 G4UImanager* UI = G4UImanager::GetUIpointer();
96 G4String command =
"/control/execute ";
98 UI->ApplyCommand(command+fileName);
TConfigurablePhysicsList< ModularPhysicsList > PhysicsList