Main program of the persistency/P03 example.
More...
#include "ExTGDetectorConstruction.hh"
#include "ExTGDetectorConstructionWithSD.hh"
#include "ExTGDetectorConstructionWithCpp.hh"
#include "ExTGDetectorConstructionWithCuts.hh"
#include "G4GenericPhysicsList.hh"
#include "ExTGPrimaryGeneratorAction.hh"
#include "ExTGActionInitialization.hh"
#include "G4RunManager.hh"
#include "G4UImanager.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
Main program of the persistency/P03 example.
Definition in file textGeom.cc.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 59 of file textGeom.cc.
63 #ifdef G4MULTITHREADED 64 G4MTRunManager* runManager =
new G4MTRunManager;
65 runManager->SetNumberOfThreads(1);
67 G4RunManager* runManager =
new G4RunManager;
72 runManager->SetUserInitialization(
new ExTGDetectorConstruction);
75 std::vector<G4String>* MyConstr =
new std::vector<G4String>;
76 MyConstr->push_back(
"G4EmStandardPhysics");
77 G4VModularPhysicsList* phys =
new G4GenericPhysicsList(MyConstr);
78 runManager->SetUserInitialization(phys);
84 runManager->SetUserInitialization(
new ExTGActionInitialization);
95 G4UImanager * UImanager = G4UImanager::GetUIpointer();
98 G4VisManager* visManager =
new G4VisExecutive;
99 visManager->Initialize();
104 G4String command =
"/control/execute ";
106 UImanager->ApplyCommand(command+fileName);
111 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
113 UImanager->ApplyCommand(
"/control/execute run.mac");