#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "Randomize.hh"
#include "PurgMagDetectorConstruction.hh"
#include "PurgMagPhysicsList.hh"
#include "PurgMagActionInitializer.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 61 of file PurgMag.cc.
64 G4Random::setTheEngine(
new CLHEP::RanecuEngine);
67 #ifdef G4MULTITHREADED 68 G4MTRunManager* runManager =
new G4MTRunManager;
71 G4RunManager* runManager =
new G4RunManager;
75 runManager->SetUserInitialization(
new PurgMagDetectorConstruction);
76 runManager->SetUserInitialization(
new PurgMagPhysicsList);
77 runManager->SetUserInitialization(
new PurgMagActionInitializer());
82 G4VisManager* visManager =
new G4VisExecutive;
83 visManager->Initialize();
87 runManager->Initialize();
90 G4UImanager* UImanager = G4UImanager::GetUIpointer();
96 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
98 UImanager->ApplyCommand(
"/control/execute vis.mac");
106 G4String command =
"/control/execute ";
108 UImanager->ApplyCommand(command+fileName);