I've created a first attempt at this. I used SXD data because it's smaller and therefore easier to work with at this early stage. The sample use in this demo is NaCl which can be directly compared to the sample in SXD23767.
This first version can generate gaussian peaks in HKL space and crop the space to the instrument. Below is the output compared to some real SXD data:
In the next steps we will need to:
Modify FakeMDEventData to be able to apply a skew and rotate peaks towards the sample
It would also be useful to be able to create multiple peaks at once to prevent slow down from many, many threads.
Modify FakeMDEventData to provide a background that drops off with distance from the sample
Add support for simulating in Q space rather than HKL.
Adjust data to have correct intensity distribution, especially for peaks.
I've created a first attempt at this. I used SXD data because it's smaller and therefore easier to work with at this early stage. The sample use in this demo is NaCl which can be directly compared to the sample in SXD23767.
This first version can generate gaussian peaks in HKL space and crop the space to the instrument. Below is the output compared to some real SXD data:
In the next steps we will need to:
FakeMDEventData
to be able to apply a skew and rotate peaks towards the sampleFakeMDEventData
to provide a background that drops off with distance from the sample