Modifications in preparation to MAX IV experiment
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user