double energy =
ToSI.keV(props
.getNumericProperty(SpectrumProperties.BeamEnergy));
// Create strategy
Strategy strategy = AlgorithmUser.getGlobalStrategy();
PhiRhoZAlgorithm corrAlg =
(PhiRhoZAlgorithm) strategy
.getAlgorithm(PhiRhoZAlgorithm.class);
if (corrAlg == null)
throw new NullPointerException("No correction algorithm defined");
IonizationCrossSection icx =
(IonizationCrossSection) strategy
.getAlgorithm(IonizationCrossSection.class);
if (icx == null)
icx = AbsoluteIonizationCrossSection.BoteSalvat2008;
FluorescenceYield fy =
(FluorescenceYield) strategy
.getAlgorithm(FluorescenceYield.class);
// Calculate intensities
Element element;
AtomicShell shell;