#include "startReflectionReconstruction.h" #include "Function3D.h" #include "Matrix.h" #include "common/precalculateChannelList.h" #include "common/dataBlockCreation/getAScanBlockPreprocessed.h" #include "reflectionReconstruction/preprocessData/determineOptimalPulse.h" #include "config/config.h" #include "CudaEnvInit.h" #include #include namespace Recon { Aurora::Matrix startReflectionReconstruction(Parser* aParser, int SAFT_mode, const Aurora::Matrix &motorPos, const Aurora::Matrix &slList, const Aurora::Matrix &snList, const Aurora::Matrix &rlList, const Aurora::Matrix &rnList, const Aurora::Matrix &geom, MeasurementInfo expInfo, PreComputes preComputes) { printf("Reflection reconstruction is carried out."); printf("Preperations for reconstructions."); printf(" - reset GPUs"); for (size_t i = 0; i < reconParams::gpuSelectionList.getDataSize(); i++) { std::string msg; if (!resetGPUDevice((int)transParams::gpuSelectionList[i],msg)) { std::cerr<