Implementation of the dnadamage1 example.
More...
#include "G4Types.hh"
#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "G4UIExecutive.hh"
#include "G4VisExecutive.hh"
#include "G4ParallelWorldPhysics.hh"
#include "ActionInitialization.hh"
#include "DetectorConstruction.hh"
#include "ParallelWorld.hh"
#include "PhysicsList.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
Implementation of the dnadamage1 example.
Definition in file dnadamage1.cc.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 46 of file dnadamage1.cc.
54 #ifdef G4MULTITHREADED 55 std::unique_ptr<G4MTRunManager> pRunManager(
new G4MTRunManager);
56 pRunManager->SetNumberOfThreads(2);
58 std::unique_ptr<G4RunManager> pRunManager(
new G4RunManager);
62 pDetector->RegisterParallelWorld(
new ParallelWorld(
"ChemistryWorld"));
63 pRunManager->SetUserInitialization(pDetector);
66 pRunManager->SetUserInitialization(pPhysList);
67 pRunManager->SetUserInitialization(
new ActionInitialization(pDetector));
69 std::unique_ptr<G4VisManager> pVisuManager(
new G4VisExecutive);
70 pVisuManager->Initialize();
72 G4UImanager* pUImanager = G4UImanager::GetUIpointer();
77 G4String command =
"/control/execute ";
79 pUImanager->ApplyCommand(command+fileName);
84 std::unique_ptr<G4UIExecutive> pUi(
new G4UIExecutive(argc, argv));
85 pUImanager->ApplyCommand(
"/control/execute vis.mac");
TConfigurablePhysicsList< ModularPhysicsList > PhysicsList