Improvements before MAX IV test

This commit is contained in:
2024-04-25 20:11:58 +02:00
parent 2c8e1fd83d
commit ea70b27e85
80 changed files with 1835 additions and 1781 deletions
+3 -3
View File
@@ -39,15 +39,15 @@ int64_t DiffractionSpot::PixelCount() const {
}
Coord DiffractionSpot::LabCoord(const DiffractionExperiment &experiment) const {
return experiment.LabCoord(x / (float)photons, y / (float)photons);
return experiment.LabCoord(x / (float)photons + 0.5f, y / (float)photons + 0.5f);
}
Coord DiffractionSpot::ReciprocalCoord(const DiffractionExperiment &experiment) const {
return DetectorToRecip(experiment, x / (float)photons, y / (float)photons);
return DetectorToRecip(experiment, x / (float)photons + 0.5f, y / (float)photons + 0.5f);
}
double DiffractionSpot::GetResolution(const DiffractionExperiment &experiment) const {
return PxlToRes(experiment, x / (float)photons, y / (float)photons);
return PxlToRes(experiment, x / (float)photons + 0.5f, y / (float)photons + 0.5f);
}
DiffractionSpot::operator SpotToSave() const {