From a740a32b643c883d6e02cc359ffe95afc19ae2ca Mon Sep 17 00:00:00 2001 From: qiaoqinzheng Date: Fri, 10 Nov 2023 17:56:46 +0800 Subject: [PATCH] =?UTF-8?q?beta=E5=8A=9F=E8=83=BD=E7=94=9F=E6=88=90RRR?= =?UTF-8?q?=E6=8A=A5=E5=91=8A=E6=97=B6=EF=BC=8C=E5=85=AC=E5=BC=8F=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E7=9A=84=E5=86=85=E5=AE=B9=E8=BF=9B=E8=A1=8C=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E4=BB=A5=E5=8F=8A=E8=B0=83=E6=8D=A2=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/jeecg/common/util/PHDFileUtil.java | 29 +++ .../impl/SpectrumAnalysisServiceImpl.java | 225 ++++++++---------- 2 files changed, 132 insertions(+), 122 deletions(-) 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