Skip to content
Snippets Groups Projects
Commit a1e41aab authored by Owen Arnold's avatar Owen Arnold
Browse files

Check monitor positions in testing

parent 747fd76a
No related branches found
No related tags found
No related merge requests found
......@@ -94,6 +94,15 @@ public:
// z defaults to 0
Eigen::Vector3d expectedDet0Position = offset + (magnitude * unitVector);
TS_ASSERT(det0Position.isApprox(expectedDet0Position));
// Test monitor position
Mantid::detid_t monitorDetId = 1;
auto mon0Position = Kernel::toVector3d(
detectorInfo->position(detectorInfo->indexOf(monitorDetId)));
// Sanity check that this is a monitor
TS_ASSERT(detectorInfo->isMonitor(detectorInfo->indexOf(monitorDetId)));
// Check against location in file
TS_ASSERT(mon0Position.isApprox(Eigen::Vector3d{0, 0, -12.064}));
}
void test_complex_translation() {
......
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