Support transmission geometry for polarized GISAS
If a detector pixel is below the sample horizon, then the R/T computation for the scattered beam needs to be performed with reversed layer order. Currently, this is implemented in Resample/Specular/ComputeFluxScalar.cpp, but not in Resample/Specular/ComputeFluxMagnetic.cpp, using index-to-index mapping array X[i]
.
-
Move the reversal of layer indices in a separate function to make the scalar R/T computation more transparent. -
Use the same function also in the polarized case. -
Provide meaningful example for a detector crossing the horizon. -
Ditto for the polarized case.
Edited by Wuttke, Joachim