tjlane / pypad

Intuitive, high-level interface to the CSPAD
Other
2 stars 1 forks source link

Angular average has wrong Q-scale in score #7

Closed sellberg closed 11 years ago

sellberg commented 11 years ago

When trying out score I found that the assembled output had a compressed Q-scale and that the angular average showed to high momentum transfers when using the proper sample-to-detector distance and photon energy (given in https://github.com/tjlane/pypad/blob/master/pypad/autogeom/README.md), see below compared to the output of cheetah (r0135_angavg). This results in that the scoring fails, since the Bragg peaks are in the wrong positions. There must be a bug in the internal calculation of the scattering angle and/or Q-scale in score

score

sellberg commented 11 years ago

This was a mistake by me, I used the sample sample-to-detector offset from the end of the detector stage (82.052 mm) instead of the full sample-to-detector distance (91.054 mm) for the gold example (r0135), pypad/autogeom/README.md fixed in https://github.com/tjlane/pypad/commit/bb1f38da6ee166230e82d88bde54055d89513cf6