Commit c73d3903 authored by Mathieu Tillet's avatar Mathieu Tillet
Browse files

Move D11B and D22B to the correct distance when loading

parent 5f4b0bf9
......@@ -151,11 +151,28 @@ void LoadILLSANS::exec() {
initWorkSpaceD11B(firstEntry, instrumentPath);
progress.report("Loading the instrument " + m_instrumentName);
runLoadInstrument();
double distance =
firstEntry.getFloat(instrumentPath + "/detector/det_calc") / 1000.;
moveDetectorDistance(distance, "detector_center");
distance =
firstEntry.getFloat(instrumentPath + "/detectorLeft/det_calc") / 1000.;
moveDetectorDistance(distance, "detector_left");
distance =
firstEntry.getFloat(instrumentPath + "/detectorRight/det_calc") / 1000.;
moveDetectorDistance(distance, "detector_right");
} else if (m_instrumentName == "D22B") {
initWorkSpaceD22B(firstEntry, instrumentPath);
progress.report("Loading the instrument " + m_instrumentName);
runLoadInstrument();
double distance =
firstEntry.getFloat(instrumentPath + "/Detector/det_calc");
moveDetectorDistance(distance, "detector");
distance = firstEntry.getFloat(instrumentPath + "/RightDetector/det_calc");
moveDetectorDistance(distance, "detector_right");
} else {
initWorkSpace(firstEntry, instrumentPath);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment