#include "G4Types.hh"
#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "Randomize.hh"
#include "G4VisExecutive.hh"
#include "G4UIExecutive.hh"
#include "PurgMagDetectorConstruction.hh"
#include "PurgMagPhysicsList.hh"
#include "PurgMagActionInitializer.hh"
#include "PurgMagAnalysisManager.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 56 of file PurgMag.cc.
59 G4Random::setTheEngine(
new CLHEP::RanecuEngine);
62 #ifdef G4MULTITHREADED 63 G4MTRunManager* runManager =
new G4MTRunManager;
66 G4RunManager* runManager =
new G4RunManager;
70 runManager->SetUserInitialization(
new PurgMagDetectorConstruction);
71 runManager->SetUserInitialization(
new PurgMagPhysicsList);
72 runManager->SetUserInitialization(
new PurgMagActionInitializer());
75 G4VisManager* visManager =
new G4VisExecutive;
76 visManager->Initialize();
79 runManager->Initialize();
82 G4UImanager* UImanager = G4UImanager::GetUIpointer();
87 G4UIExecutive* ui =
new G4UIExecutive(argc, argv);
88 UImanager->ApplyCommand(
"/control/execute vis.mac");
94 G4String command =
"/control/execute ";
96 UImanager->ApplyCommand(command+fileName);
100 G4AnalysisManager* man = G4AnalysisManager::Instance();