#include "G4Types.hh"
#include "G4RunManager.hh"
#include "G4UImanager.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 43 of file nanobeam.cc.
47 G4Random::setTheEngine(
new CLHEP::RanecuEngine);
51 #ifdef G4MULTITHREADED 52 G4MTRunManager* runManager =
new G4MTRunManager;
59 runManager->SetNumberOfThreads(1);
62 G4RunManager* runManager =
new G4RunManager;
69 runManager->SetUserInitialization(detector);
75 runManager->SetUserInitialization(
new ActionInitialization(detector));
79 runManager->Initialize();
83 G4UImanager* UImanager = G4UImanager::GetUIpointer();
87 UImanager->ApplyCommand(
"/control/execute default.mac");
91 G4String command =
"/control/execute ";
93 UImanager->ApplyCommand(command+fileName);