v1.0.0-rc.36
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
#include "../common/DiffractionGeometry.h"
|
||||
#include "../common/DiffractionExperiment.h"
|
||||
TEST_CASE("RecipToDetector_1", "[LinearAlgebra][Coord]") {
|
||||
DiffractionExperiment x(DetectorGeometry(8, 2));
|
||||
DiffractionExperiment x(DetJF(8, 2));
|
||||
x.BeamX_pxl(1024).BeamY_pxl(1024).DetectorDistance_mm(120);
|
||||
DiffractionGeometry geom = x.GetDiffractionGeometry();
|
||||
|
||||
@@ -22,7 +22,7 @@ TEST_CASE("RecipToDetector_1", "[LinearAlgebra][Coord]") {
|
||||
}
|
||||
|
||||
TEST_CASE("RecipToDetector_2", "[LinearAlgebra][Coord]") {
|
||||
DiffractionExperiment x(DetectorGeometry(8, 2));
|
||||
DiffractionExperiment x(DetJF(8, 2));
|
||||
x.BeamX_pxl(1024).BeamY_pxl(1024).DetectorDistance_mm(120);
|
||||
float pos_x = 1023, pos_y = 1023;
|
||||
DiffractionGeometry geom = x.GetDiffractionGeometry();
|
||||
@@ -36,7 +36,7 @@ TEST_CASE("RecipToDetector_2", "[LinearAlgebra][Coord]") {
|
||||
}
|
||||
|
||||
TEST_CASE("RecipToDetector_3", "[LinearAlgebra][Coord]") {
|
||||
DiffractionExperiment x(DetectorGeometry(8, 2));
|
||||
DiffractionExperiment x(DetJF(8, 2));
|
||||
x.BeamX_pxl(1024).BeamY_pxl(1024).DetectorDistance_mm(120);
|
||||
float pos_x = 30, pos_y = 30;
|
||||
DiffractionGeometry geom = x.GetDiffractionGeometry();
|
||||
@@ -50,7 +50,7 @@ TEST_CASE("RecipToDetector_3", "[LinearAlgebra][Coord]") {
|
||||
}
|
||||
|
||||
TEST_CASE("Phi","") {
|
||||
DiffractionExperiment x(DetectorGeometry(8, 2, 8, 36));
|
||||
DiffractionExperiment x(DetJF4M());
|
||||
x.DetectorDistance_mm(75).IncidentEnergy_keV(WVL_1A_IN_KEV);
|
||||
x.BeamX_pxl(1000).BeamY_pxl(1000);
|
||||
DiffractionGeometry geom = x.GetDiffractionGeometry();
|
||||
@@ -61,7 +61,7 @@ TEST_CASE("Phi","") {
|
||||
}
|
||||
|
||||
TEST_CASE("Cos2Theta","") {
|
||||
DiffractionExperiment x(DetectorGeometry(8, 2, 8, 36));
|
||||
DiffractionExperiment x(DetJF4M());
|
||||
x.DetectorDistance_mm(75).IncidentEnergy_keV(WVL_1A_IN_KEV);
|
||||
x.BeamX_pxl(1000).BeamY_pxl(1000);
|
||||
DiffractionGeometry geom = x.GetDiffractionGeometry();
|
||||
@@ -73,7 +73,7 @@ TEST_CASE("Cos2Theta","") {
|
||||
}
|
||||
|
||||
TEST_CASE("PxlToRes","") {
|
||||
DiffractionExperiment x(DetectorGeometry(8, 2, 8, 36));
|
||||
DiffractionExperiment x(DetJF4M());
|
||||
x.DetectorDistance_mm(75).IncidentEnergy_keV(WVL_1A_IN_KEV);
|
||||
DiffractionGeometry geom = x.GetDiffractionGeometry();
|
||||
|
||||
@@ -91,7 +91,7 @@ TEST_CASE("PxlToRes","") {
|
||||
|
||||
|
||||
TEST_CASE("ResToPxl","") {
|
||||
DiffractionExperiment x(DetectorGeometry(8, 2, 8, 36));
|
||||
DiffractionExperiment x(DetJF4M());
|
||||
x.DetectorDistance_mm(75).IncidentEnergy_keV(WVL_1A_IN_KEV);
|
||||
DiffractionGeometry geom = x.GetDiffractionGeometry();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user