57 :rndmFlag(
"on"),beam(
"off"),spectrum(
"off"),isoVert(
"off")
60 XrayFluoDetector = XrayFluoDC;
83 G4cout <<
"XrayFluoPlanePrimaryGeneratorAction created UUUUUUUUUUAAAAAAAAAAAAAAAAAAAAAAAaa" <<
G4endl;
96 G4cout <<
"XrayFluoPlanePrimaryGeneratorAction deleted" <<
G4endl;
109 if (rndmFlag ==
"on")
139 if(particle ==
"proton"|| particle ==
"alpha")
148 while (partSum<random)
150 partSum += (*data)[j];
157 else if (particle ==
"gamma")
166 G4double energyRange = maxEnergy - minEnergy;
174 particleEnergy = (random*energyRange) + minEnergy;
176 if ((dataSet->
FindValue(particleEnergy,
id)) > randomNum)
193 G4double x = rho*std::sin(theta)*std::sin(phi);
194 G4double y = rho*std::sin(theta)*std::cos(phi);
208 #ifdef G4ANALYSIS_USE
211 XrayFluoAnalysisManager* analysis = XrayFluoAnalysisManager::getInstance();
212 analysis->analysePrimaryGenerator(partEnergy/
keV);