添加conclc计算结果
This commit is contained in:
parent
f20695daee
commit
db61b4bcd5
|
@ -5183,6 +5183,7 @@ jstring Java_org_jeecg_modules_native_1jni_EnergySpectrumHandler_selfBgAnalyse(J
|
|||
/***************解析json参数*******************/
|
||||
QString jsonStr = CplusToJava::jstring2QString(env, json);
|
||||
QJsonDocument doc;
|
||||
printf("param:%s\n", jsonStr.toStdString().c_str());
|
||||
doc = QJsonDocument::fromJson(jsonStr.toUtf8());
|
||||
QJsonObject inObj = doc.object();
|
||||
/***************开始计算*******************/
|
||||
|
@ -5203,6 +5204,8 @@ jstring Java_org_jeecg_modules_native_1jni_EnergySpectrumHandler_selfBgAnalyse(J
|
|||
double halfLife = factorObj["halflife"].toString().toDouble() * (24 * 60 * 60);
|
||||
double sendOdds = factorObj["yield"].toString().toDouble() / 100.0;
|
||||
double area = factorObj["area"].toString().toDouble();
|
||||
double lcConst = factorObj["lcConst"].toString().toDouble();
|
||||
printf("lcConst:%f\n", lcConst);
|
||||
|
||||
double bgeff, geff;
|
||||
double f;
|
||||
|
@ -5242,16 +5245,25 @@ jstring Java_org_jeecg_modules_native_1jni_EnergySpectrumHandler_selfBgAnalyse(J
|
|||
double ac = (1000 * a / (vxe / 0.087)) * ac_e * ac_kc;
|
||||
|
||||
double cBaseLine = factorObj["baseline"].toString().toDouble();
|
||||
printf("cBaseLine:%f\n", cBaseLine);
|
||||
double ld = 2.71 + 4.65 * sqrt(cBaseLine);
|
||||
double mda = (ld / a_low) * kc;
|
||||
double mdc = (1000 * mda / (vxe / 0.087)) * ac_e * ac_kc;
|
||||
|
||||
double lc = lcConst * sqrt(cBaseLine);
|
||||
double conc_la = (lc / a_low) * kc;
|
||||
double conc_lc = (1000 * mda / (vxe / 0.087)) * ac_e * ac_kc;
|
||||
|
||||
QJsonObject obj;
|
||||
obj["nuclideName"] = name;
|
||||
obj["conc"] = ac;
|
||||
obj["mda"] = mda;
|
||||
obj["mdc"] = mdc;
|
||||
obj["concLa"] = conc_la;
|
||||
obj["concLc"] = conc_lc;
|
||||
obj["concErr"] = a * 0.15;
|
||||
obj["baseLineErr"] = sqrt(cBaseLine);
|
||||
obj["lc"] = lc;
|
||||
data.push_back(obj);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user