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
+5
View File
@@ -2,6 +2,7 @@
#include <catch2/catch.hpp>
#include "../common/DiffractionGeometry.h"
#include <iostream>
TEST_CASE("RecipToDetector_1", "[LinearAlgebra][Coord]") {
DiffractionExperiment x(DetectorGeometry(8, 2));
@@ -68,6 +69,10 @@ TEST_CASE("PxlToRes","") {
DiffractionExperiment x(DetectorGeometry(8, 2, 8, 36));
x.DetectorDistance_mm(75).PhotonEnergy_keV(WVL_1A_IN_KEV);
std::cout << x.GetWavelength_A() << std::endl;
std::cout << x.GetDetectorDistance_mm() << std::endl;
std::cout << 1000 * sqrt(3) << std::endl;
// sin(theta) = 1/2
// theta = 30 deg
// tan(2 * theta) = sqrt(3)