Implementation of the dnaphysics example.
More...
#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "G4UIExecutive.hh"
#include "ActionInitialization.hh"
#include "DetectorConstruction.hh"
#include "PhysicsList.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
Implementation of the dnaphysics example.
Definition in file dnaphysics.cc.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 56 of file dnaphysics.cc.
60 G4UIExecutive* ui = 0;
62 ui =
new G4UIExecutive(argc, argv);
67 G4Random::setTheEngine(
new CLHEP::RanecuEngine);
71 #ifdef G4MULTITHREADED 72 G4MTRunManager* runManager =
new G4MTRunManager;
73 if(argc==3) runManager->SetNumberOfThreads(atoi(argv[2]));
74 else runManager->SetNumberOfThreads(2);
76 G4RunManager* runManager =
new G4RunManager;
85 runManager->SetUserInitialization(
new ActionInitialization());
88 G4VisManager* visManager =
new G4VisExecutive;
89 visManager->Initialize();
93 G4UImanager* UImanager = G4UImanager::GetUIpointer();
99 G4String command =
"/control/execute ";
101 UImanager->ApplyCommand(command+fileName);
105 UImanager->ApplyCommand(
"/control/execute vis.mac");