#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) |
|
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 52 of file microbeam.cc.
56 G4UIExecutive* ui = 0;
58 ui =
new G4UIExecutive(argc, argv);
63 G4Random::setTheEngine(
new CLHEP::RanecuEngine);
67 #ifdef G4MULTITHREADED 68 G4MTRunManager* runManager =
new G4MTRunManager;
71 G4RunManager* runManager =
new G4RunManager;
77 runManager->SetUserInitialization(detector);
83 runManager->SetUserInitialization(
new ActionInitialization(detector));
87 runManager->Initialize();
90 G4VisManager* visManager =
new G4VisExecutive;
91 visManager->Initialize();
97 G4UImanager* UImanager = G4UImanager::GetUIpointer();
103 G4String command =
"/control/execute ";
105 UImanager->ApplyCommand(command+fileName);
109 UImanager->ApplyCommand(
"/control/execute vis.mac");