Modifications in preparation to MAX IV experiment
This commit is contained in:
@@ -479,3 +479,12 @@ TEST_CASE("RawToConvertedCoordinate","[RawToConvertedGeometry]") {
|
||||
REQUIRE(x == CONVERTED_MODULE_COLS + 8 + 806); // col 800 becomes 806 due to 3 chip boundaries
|
||||
REQUIRE(y == CONVERTED_MODULE_LINES * 2 + 36 - 1 - 302); // line 300 becomes 302 due to 1 chip boundary
|
||||
}
|
||||
|
||||
TEST_CASE("RawToConvertedCoordinate_Coord","[RawToConvertedGeometry]") {
|
||||
DiffractionExperiment experiment(DetectorGeometry(4, 2, 8, 36, true));
|
||||
Coord input(800.5, 300.25, 0);
|
||||
Coord c = RawToConvertedCoordinate(experiment, 1, input);
|
||||
|
||||
REQUIRE(Approx(c.x) == CONVERTED_MODULE_COLS + 8 + 800.5 + 6); // col 800 becomes 806 due to 3 chip boundaries
|
||||
REQUIRE(Approx(c.y) == CONVERTED_MODULE_LINES * 2 + 36 - 1 - 300.25 - 2); // line 300 becomes 302 due to 1 chip boundary
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user