Skip to content
Snippets Groups Projects
Commit 902f9b3b authored by Zhou, Wenduo's avatar Zhou, Wenduo
Browse files

Tried to fix warnings. Refs #11288.

parent 6e32e860
No related branches found
No related tags found
No related merge requests found
......@@ -627,8 +627,8 @@ IMDEventWorkspace_sptr ConvertSpiceDataToRealSpace::createDataMDWorkspace(
Geometry::IDetector_const_sptr det = thisWorkspace->getDetector(i);
const MantidVec &vecsignal = thisWorkspace->readY(i);
const MantidVec &vecerror = thisWorkspace->readE(i);
double signal = vecsignal[0];
double error = vecerror[0];
float signal = static_cast<float>(vecsignal[0]);
float error = static_cast<float>(vecerror[0]);
detid_t detid = det->getID() + detindex;
Kernel::V3D detPos = det->getPos();
double x = detPos.X();
......@@ -708,8 +708,10 @@ IMDEventWorkspace_sptr ConvertSpiceDataToRealSpace::createMonitorMDWorkspace(
atoi(thisWorkspace->run().getProperty("run_number")->value().c_str()));
detid_t detindex = 0;
double signal = vecmonitor[iws];
double error = sqrt(signal);
double signal = static_cast<float>(vecmonitor[iws]);
float error = 1;
if (signal > 1)
error = sqrt(signal);
size_t nHist = thisWorkspace->getNumberHistograms();
for (std::size_t i = 0; i < nHist; ++i) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment