Compare commits
No commits in common. "06f733365a8a62cf2b4e015a795ac94f39d95ba7" and "ce7ca4f5697078e5d848fc2537f3e2a771cbfd60" have entirely different histories.
06f733365a
...
ce7ca4f569
|
@ -776,7 +776,7 @@ public class SelfBaseUtil extends AbstractLogOrReport {
|
||||||
String mapKey = "";
|
String mapKey = "";
|
||||||
// 遍历roiLimit
|
// 遍历roiLimit
|
||||||
for (int g = 0; g < gStart.size(); g++) {
|
for (int g = 0; g < gStart.size(); g++) {
|
||||||
List<PeakInfo> vPeak = phdFiles[g].getVPeak();
|
List<PeakInfo> vPeak = phdFiles[g].getVPeak();;
|
||||||
HashMap<String, Object> nuclideParam = Maps.newHashMap();
|
HashMap<String, Object> nuclideParam = Maps.newHashMap();
|
||||||
String nuclideName = "";
|
String nuclideName = "";
|
||||||
switch (g) {
|
switch (g) {
|
||||||
|
@ -820,43 +820,7 @@ public class SelfBaseUtil extends AbstractLogOrReport {
|
||||||
}
|
}
|
||||||
// 没有峰信息 核素=未识别 不计算活度浓度
|
// 没有峰信息 核素=未识别 不计算活度浓度
|
||||||
if (!nuclideParam.containsKey("area")) {
|
if (!nuclideParam.containsKey("area")) {
|
||||||
double left = 0, right = 0;
|
nuclideParam.put("area", "0");
|
||||||
List<Long> counts = null;
|
|
||||||
// 固定能量范围,半高宽
|
|
||||||
switch (nuclideName) {
|
|
||||||
case "Xe131M":
|
|
||||||
left = 29.7 - (0.737 * 1.25);
|
|
||||||
right = 29.7 + (0.737 * 1.25);
|
|
||||||
counts = phdFiles[0].getSpec().getCounts();
|
|
||||||
break;
|
|
||||||
case "Xe133M":
|
|
||||||
left = 29.7 - (0.737 * 1.25);
|
|
||||||
right = 29.7 + (0.737 * 1.25);
|
|
||||||
counts = phdFiles[1].getSpec().getCounts();
|
|
||||||
break;
|
|
||||||
case "Xe133":
|
|
||||||
left = 81 - (0.781 * 1.25);
|
|
||||||
right = 81 + (0.781 * 1.25);
|
|
||||||
counts = phdFiles[2].getSpec().getCounts();
|
|
||||||
break;
|
|
||||||
case "Xe135":
|
|
||||||
left = 249.8 - (0.916 * 1.25);
|
|
||||||
right = 249.8 + (0.916 * 1.25);
|
|
||||||
counts = phdFiles[3].getSpec().getCounts();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
// 能量转化为道址
|
|
||||||
// 通过道址将这个范围的计数求和
|
|
||||||
List<Double> gFittingPara = EnergySpectrumHandler.GetFileFittingPara(phdFiles[0].getUsedEnerKD().getG_energy(),
|
|
||||||
phdFiles[0].getUsedEnerKD().getCentroid_channel());
|
|
||||||
double lc = gFittingPara.get(0) + gFittingPara.get(1) * left + gFittingPara.get(2) * Math.sqrt(left);
|
|
||||||
double rc = gFittingPara.get(0) + gFittingPara.get(1) * right + gFittingPara.get(2) * Math.sqrt(right);
|
|
||||||
// 面积=计数总和:通过能量卡一个范围,将范围内的计数加和
|
|
||||||
int area = 0;
|
|
||||||
for (int i = (int)lc; i <= (int) rc; i++) {
|
|
||||||
area += counts.get(i);
|
|
||||||
}
|
|
||||||
nuclideParam.put("area", area+"");
|
|
||||||
}
|
}
|
||||||
param.put(mapKey, nuclideParam);
|
param.put(mapKey, nuclideParam);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1138,9 +1138,9 @@ public class SelfStationServiceImpl extends AbstractLogOrReport implements ISelf
|
||||||
// 根据ROI卡Gamma能谱数据
|
// 根据ROI卡Gamma能谱数据
|
||||||
selfStationUtil.getGammaByROI("sample", roiBBoundaryStart, roiBBoundaryStop, selfStationData);
|
selfStationUtil.getGammaByROI("sample", roiBBoundaryStart, roiBBoundaryStop, selfStationData);
|
||||||
SelfStationVueData sampleData = selfStationData.getSampleVueData();
|
SelfStationVueData sampleData = selfStationData.getSampleVueData();
|
||||||
String path = StrUtil.subBefore(selfStationData.getSampleTmpPath(), StringPool.SLASH, true);
|
String path = StrUtil.subBefore(selfStationData.getSampleFilePathName(), StringPool.SLASH, true);
|
||||||
// 生成gamma数据
|
// 生成gamma数据
|
||||||
selfStationUtil.createGamma(path, selfStationData.getSampleFilePathName(), struct, sampleData);
|
selfStationUtil.createGamma(path, selfStationData.getSampleFileName(), struct, sampleData);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue
Block a user