Modifications in preparation to MAX IV experiment

This commit is contained in:
2024-01-27 21:23:56 +01:00
parent 2446643489
commit f5f86d9ab6
250 changed files with 9363 additions and 3022 deletions

View File

@@ -15,7 +15,14 @@ TEST_CASE("DetectorGeometry_Regular", "[DetectorGeometry]") {
REQUIRE(geometry.GetPixel0(15) == geometry.GetWidth() * (514 * 5 + 36 * 5));
REQUIRE(geometry.GetFastDirectionStep(15) == 1);
REQUIRE(geometry.GetFastDirection(15).x == 1);
REQUIRE(geometry.GetFastDirection(15).y == 0);
REQUIRE(geometry.GetFastDirection(15).z == 0);
REQUIRE(geometry.GetSlowDirectionStep(15) == geometry.GetWidth());
REQUIRE(geometry.GetSlowDirection(15).x == 0);
REQUIRE(geometry.GetSlowDirection(15).y == 1);
REQUIRE(geometry.GetSlowDirection(15).z == 0);
}
TEST_CASE("DetectorGeometry_Regular_1Module", "[DetectorGeometry]") {
@@ -176,10 +183,29 @@ TEST_CASE("DetectorGeometry_Custom", "[DetectorGeometry]") {
CHECK(geometry.GetPixel0(2) == 5000);
CHECK(geometry.GetFastDirectionStep(0) == -1);
REQUIRE(geometry.GetFastDirection(0).x == -1);
REQUIRE(geometry.GetFastDirection(0).y == 0);
REQUIRE(geometry.GetFastDirection(0).z == 0);
CHECK(geometry.GetFastDirectionStep(1) == geometry.GetWidth());
REQUIRE(geometry.GetFastDirection(1).x == 0);
REQUIRE(geometry.GetFastDirection(1).y == 1);
REQUIRE(geometry.GetFastDirection(1).z == 0);
CHECK(geometry.GetFastDirectionStep(2) == geometry.GetWidth());
CHECK(geometry.GetSlowDirectionStep(0) == -geometry.GetWidth());
REQUIRE(geometry.GetSlowDirection(0).x == 0);
REQUIRE(geometry.GetSlowDirection(0).y == -1);
REQUIRE(geometry.GetSlowDirection(0).z == 0);
CHECK(geometry.GetSlowDirectionStep(1) == 1);
REQUIRE(geometry.GetSlowDirection(1).x == 1);
REQUIRE(geometry.GetSlowDirection(1).y == 0);
REQUIRE(geometry.GetSlowDirection(1).z == 0);
CHECK(geometry.GetSlowDirectionStep(2) == 1);
}