#include <XrayFluoSimulation.hh>
Definition at line 40 of file XrayFluoSimulation.hh.
XrayFluoSimulation::XrayFluoSimulation |
( |
G4int |
seed | ) |
|
XrayFluoSimulation::~XrayFluoSimulation |
( |
| ) |
|
void XrayFluoSimulation::RunSimulation |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 72 of file XrayFluoSimulation.cc.
References G4UImanager::ApplyCommand(), G4cin, G4cout, G4endl, XrayFluoPlaneDetectorConstruction::GetInstance(), XrayFluoMercuryDetectorConstruction::GetInstance(), XrayFluoDetectorConstruction::GetInstance(), G4UImanager::GetUIpointer(), G4VisManager::Initialize(), G4UIExecutive::IsGUI(), XrayFluoDetectorConstruction::PhaseSpaceOn(), G4UIExecutive::SessionStart(), G4VSteppingVerbose::SetInstance(), XrayFluoSteppingAction::SetMercuryFlag(), CLHEP::HepRandom::setTheEngine(), CLHEP::HepRandom::setTheSeed(), G4RunManager::SetUserAction(), and G4RunManager::SetUserInitialization().
Referenced by main().
91 G4int geometryNumber = 0;
94 geometryNumber = atoi(argv[2]);
97 while ( (geometryNumber != 1) && (geometryNumber !=2) && (geometryNumber !=3) && (geometryNumber !=4)) {
98 G4cout <<
"Please Select Simulation Geometrical Set-Up: "<<
G4endl;
105 G4cin >> geometryNumber;
114 if (geometryNumber == 1 || geometryNumber == 4) {
116 if (geometryNumber == 4) {
121 else if (geometryNumber == 2) {
125 else if (geometryNumber == 3) {
139 #ifdef G4ANALYSIS_USE
141 XrayFluoAnalysisManager* analysis = XrayFluoAnalysisManager::getInstance();
150 if (geometryNumber == 1 || geometryNumber == 4) {
151 if (geometryNumber == 4) {
152 #ifdef G4ANALYSIS_USE
153 analysis->PhaseSpaceOn();
154 analysis->CreatePersistency();
161 else if (geometryNumber == 2) {
166 else if (geometryNumber == 3) {
182 if (getenv(
"G4VIS_USE")) {
188 UImanager->
ApplyCommand(
"/control/execute initInter.mac");
200 G4String command =
"/control/execute ";
virtual void SetUserInitialization(G4VUserDetectorConstruction *userInit)
void SetMercuryFlag(G4bool val)
static XrayFluoDetectorConstruction * GetInstance()
static XrayFluoMercuryDetectorConstruction * GetInstance()
static XrayFluoPlaneDetectorConstruction * GetInstance()
static void setTheSeed(long seed, int lux=3)
static G4UImanager * GetUIpointer()
G4GLOB_DLL std::ostream G4cout
static void SetInstance(G4VSteppingVerbose *Instance)
static void setTheEngine(HepRandomEngine *theNewEngine)
G4int ApplyCommand(const char *aCommand)
virtual void SetUserAction(G4UserRunAction *userAction)
The documentation for this class was generated from the following files: