33 lines
2.4 KiB
C++
33 lines
2.4 KiB
C++
|
|
#include "getTransmissionData.h"
|
||
|
|
#include "../../config/config.h"
|
||
|
|
#include "src/common/temperatureCalculation/extractTasTemperature.h"
|
||
|
|
#include "src/transmissionReconstruction/dataFilter/sensitivityCalculations.h"
|
||
|
|
|
||
|
|
#include "Matrix.h"
|
||
|
|
#include <cstddef>
|
||
|
|
|
||
|
|
using namespace Recon;
|
||
|
|
using namespace Aurora;
|
||
|
|
|
||
|
|
void Recon::getTransmissionData(const Aurora::Matrix& aMotorPos, const Aurora::Matrix& aMotoPosRef, const Aurora::Matrix& aSlList,
|
||
|
|
const Aurora::Matrix& aSnList, const Aurora::Matrix& aRlList, const Aurora::Matrix& aRnList,
|
||
|
|
const TempInfo& aTemp, const TempInfo& aTempRef, GeometryInfo& aGeom,
|
||
|
|
GeometryInfo& aGeomRef, const MeasurementInfo& aExpInfo, const MeasurementInfo& aExpInfoRef,
|
||
|
|
const PreComputes& aPreComputes)
|
||
|
|
{
|
||
|
|
//推测是已经完成过透射重建并从完成的透射重建读取数据,但下方读取后数据又被覆盖
|
||
|
|
//暂不考虑此逻辑运行
|
||
|
|
// if transParams.detection.forceRedetect == 0 && exist(transParams.pathSaveDetection, 'dir') && size(dir(transParams.pathSaveDetection), 1) > 2 % i.e. detection folder exists and is not empty
|
||
|
|
// % Load transmission detection data
|
||
|
|
// writeReconstructionLog('Loading transmission detection data. All available data from given motor positions are taken.', 1);
|
||
|
|
// [tofDataTotal, attDataTotal, senderList, receiverList, waterTempList, dataInfo] = loadTransmissionDetectionData(transParams.pathSaveDetection, transParams.pathData, motorPos, expInfo.rootMeasUniqueID);
|
||
|
|
TasTemps tasTemps;
|
||
|
|
tasTemps.waterTempPreCalc_rl = extractTasTemperature(aTemp.tasTemperature, aRlList, aMotorPos, aTemp.jumoTemp, transParams::minTemperature, transParams::maxTemperature);
|
||
|
|
tasTemps.waterTempPreCalc_sl = extractTasTemperature(aTemp.tasTemperature, aSlList, aMotorPos, aTemp.jumoTemp, transParams::minTemperature, transParams::maxTemperature);
|
||
|
|
tasTemps.waterTempRefPreCalc_rl = extractTasTemperature(aTempRef.tasTemperature, aRlList, aMotoPosRef, aTempRef.jumoTemp, transParams::minTemperature, transParams::maxTemperature);
|
||
|
|
tasTemps.waterTempRefPreCalc_sl = extractTasTemperature(aTempRef.tasTemperature, aSlList, aMotoPosRef, aTempRef.jumoTemp, transParams::minTemperature, transParams::maxTemperature);
|
||
|
|
|
||
|
|
aGeom.sensChar = precalcSensitivity(aSlList, aSnList, aRlList, aRnList, aMotorPos, const geo &aTASElements)
|
||
|
|
|
||
|
|
|
||
|
|
}
|