if (transitions.isEmpty())
transitions.addAll(findAllXRayTransitions(comp, props));
// Calculate maximum depth
Strategy strategy = AlgorithmUser.getGlobalStrategy();
ElectronRange electronRange =
(ElectronRange) strategy.getAlgorithm(ElectronRange.class);
if (electronRange == null)
electronRange = ElectronRange.Pouchou1991;
double rMax;
for (XRayTransition xrt : transitions) {
rMax =
electronRange.compute(comp, xrt.getDestination(), energy)
/ density;
zPZS.put(xrt, HistogramUtil.createBins(-rMax, 0.0, channels));
gnfPZs.put(xrt, new double[channels]);
enfPZs.put(xrt, new double[channels]);
}