diff --git a/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/common/util/PHDFileUtil.java b/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/common/util/PHDFileUtil.java index b74a741a..adf82185 100644 --- a/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/common/util/PHDFileUtil.java +++ b/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/common/util/PHDFileUtil.java @@ -174,6 +174,20 @@ public class PHDFileUtil extends AbstractLogOrReport { List> gammaEnergyList = new LinkedList<>(); List gCentroidChannel = struct.g_centroid_channel; List gEnergy = struct.g_energy; + //C to E + List gammaFittingPara = EnergySpectrumHandler.GetFileFittingPara(gCentroidChannel, gEnergy); + List gammaFittingParaStr = new LinkedList<>(); + for (Double para:gammaFittingPara) { + gammaFittingParaStr.add(String.valueOf(para)); + } + //E to C + List gammaFittingParaToUi = EnergySpectrumHandler.GetFileFittingPara(gEnergy, gCentroidChannel); + List gammaFittingParaToUiStr = new LinkedList<>(); + for (Double para:gammaFittingParaToUi) { + gammaFittingParaToUiStr.add(String.valueOf(para)); + } + betaDataFile.setGammaFittingParaOld(gammaFittingParaStr); + betaDataFile.setGammaFittingParaToUiOld(gammaFittingParaToUiStr); List gammaParam = EnergySpectrumHandler.GetFileFittingPara(gCentroidChannel, gEnergy); List gchannels = new ArrayList<>(); for (int i=0; i> betaEnergyList = new LinkedList<>(); List bChannel = struct.b_channel; List bElectronEnergy = struct.b_electron_energy; + //C to E + List betaFittingPara = EnergySpectrumHandler.GetFileFittingPara(bChannel, bElectronEnergy); + List betaFittingParaStr = new LinkedList<>(); + for (Double para:betaFittingPara) { + betaFittingParaStr.add(String.valueOf(para)); + } + //E to C + List betaFittingParaToUi = EnergySpectrumHandler.GetFileFittingPara(bElectronEnergy, bChannel); + List betaFittingParaToUiStr = new LinkedList<>(); + for (Double para:betaFittingParaToUi) { + betaFittingParaToUiStr.add(String.valueOf(para)); + } + betaDataFile.setBetaFittingParaOld(betaFittingParaStr); + betaDataFile.setBetaFittingParaToUiOld(betaFittingParaToUiStr); List betaParam = EnergySpectrumHandler.GetFileFittingPara(bChannel, bElectronEnergy); List bchannels = new ArrayList<>(); for (int i=0; i