SpotToSave: Include phi angle of the spot

This commit is contained in:
2026-02-05 11:18:19 +01:00
parent a40e4118e6
commit f9cc99f3c0
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -68,9 +68,15 @@ void DiffractionSpot::ConvertToImageCoordinates(const DiffractionExperiment &exp
SpotToSave DiffractionSpot::Export(const DiffractionGeometry &geometry, int64_t image_num) const {
auto d = geometry.PxlToRes(x / (float) photons, y / (float) photons);
float phi = 0.0f;
if (geometry.GetRotation()) {
phi = geometry.GetRotation()->GetIncrement_deg() * image_num + geometry.GetRotation()->GetWedge_deg();
}
return {
.x = x / static_cast<float>(photons),
.y = y / static_cast<float>(photons),
.phi = phi,
.intensity = static_cast<float>(photons),
.maxc = max_photons,
.d_A = d,
+1
View File
@@ -9,6 +9,7 @@
struct SpotToSave {
float x = 0;
float y = 0;
float phi = 0;
float intensity = 0;
int64_t maxc = 0;
float d_A = 0.0;