62 using namespace CLHEP;
76 CLHEP::HepRandom::setTheEngine(
new CLHEP::RanecuEngine);
77 CLHEP::HepRandom::setTheSeed(
dir);
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)
XrayFluoSimulation(G4int seed)
static XrayFluoDetectorConstruction * GetInstance()
static XrayFluoMercuryDetectorConstruction * GetInstance()
static XrayFluoPlaneDetectorConstruction * GetInstance()
static G4UImanager * GetUIpointer()
G4GLOB_DLL std::ostream G4cout
static void SetInstance(G4VSteppingVerbose *Instance)
void RunSimulation(int argc, char *argv[])
G4int ApplyCommand(const char *aCommand)
virtual void SetUserAction(G4UserRunAction *userAction)