version 1.0.0-rc.27
This commit is contained in:
@@ -47,7 +47,7 @@ TEST_CASE("RecipToDetector_3", "[LinearAlgebra][Coord]") {
|
||||
|
||||
TEST_CASE("Phi","") {
|
||||
DiffractionExperiment x(DetectorGeometry(8, 2, 8, 36));
|
||||
x.DetectorDistance_mm(75).PhotonEnergy_keV(WVL_1A_IN_KEV);
|
||||
x.DetectorDistance_mm(75).IncidentEnergy_keV(WVL_1A_IN_KEV);
|
||||
x.BeamX_pxl(1000).BeamY_pxl(1000);
|
||||
|
||||
REQUIRE(Phi(x, 2000, 1000) == Catch::Approx(0.0));
|
||||
@@ -57,7 +57,7 @@ TEST_CASE("Phi","") {
|
||||
|
||||
TEST_CASE("Cos2Theta","") {
|
||||
DiffractionExperiment x(DetectorGeometry(8, 2, 8, 36));
|
||||
x.DetectorDistance_mm(75).PhotonEnergy_keV(WVL_1A_IN_KEV);
|
||||
x.DetectorDistance_mm(75).IncidentEnergy_keV(WVL_1A_IN_KEV);
|
||||
x.BeamX_pxl(1000).BeamY_pxl(1000);
|
||||
|
||||
// det distance == 1000 pixel
|
||||
@@ -68,7 +68,7 @@ TEST_CASE("Cos2Theta","") {
|
||||
|
||||
TEST_CASE("PxlToRes","") {
|
||||
DiffractionExperiment x(DetectorGeometry(8, 2, 8, 36));
|
||||
x.DetectorDistance_mm(75).PhotonEnergy_keV(WVL_1A_IN_KEV);
|
||||
x.DetectorDistance_mm(75).IncidentEnergy_keV(WVL_1A_IN_KEV);
|
||||
|
||||
// sin(theta) = 1/2
|
||||
// theta = 30 deg
|
||||
@@ -84,7 +84,7 @@ TEST_CASE("PxlToRes","") {
|
||||
|
||||
TEST_CASE("ResToPxl","") {
|
||||
DiffractionExperiment x(DetectorGeometry(8, 2, 8, 36));
|
||||
x.DetectorDistance_mm(75).PhotonEnergy_keV(WVL_1A_IN_KEV);
|
||||
x.DetectorDistance_mm(75).IncidentEnergy_keV(WVL_1A_IN_KEV);
|
||||
|
||||
// sin(theta) = 1/2
|
||||
// theta = 30 deg
|
||||
@@ -99,7 +99,7 @@ TEST_CASE("ResToPxl","") {
|
||||
|
||||
TEST_CASE("SolidAngleCorrection","") {
|
||||
DiffractionExperiment x;
|
||||
x.PhotonEnergy_keV(WVL_1A_IN_KEV);
|
||||
x.IncidentEnergy_keV(WVL_1A_IN_KEV);
|
||||
x.BeamX_pxl(1000).BeamY_pxl(1000).DetectorDistance_mm(75);
|
||||
|
||||
REQUIRE(CalcAzIntSolidAngleCorr(x, 0.0) == 1.0f);
|
||||
@@ -113,7 +113,7 @@ TEST_CASE("SolidAngleCorrection","") {
|
||||
|
||||
TEST_CASE("PolarizationCorrection","") {
|
||||
DiffractionExperiment x;
|
||||
x.PhotonEnergy_keV(WVL_1A_IN_KEV);
|
||||
x.IncidentEnergy_keV(WVL_1A_IN_KEV);
|
||||
x.BeamX_pxl(1000).BeamY_pxl(1000).DetectorDistance_mm(75);
|
||||
|
||||
// Circular polarization 0.5*(1+cos(2theta)^2)
|
||||
|
||||
Reference in New Issue
Block a user