| 1 |
+++ |
| 2 |
title = "2d detector resolution" |
| 3 |
weight = 20 |
| 4 |
+++ |
| 5 |
|
| 6 |
### Resolution function of a two-dimensional scattering detector |
| 7 |
|
| 8 |
If a detector has a resolution function, then the simulated intensity map |
| 9 |
is blurred by convolution with that function. |
| 10 |
|
| 11 |
Currently, only Gaussian resolution functions are supported. |
| 12 |
|
| 13 |
## Gaussian distribution |
| 14 |
|
| 15 |
Create a Gaussian resolution function, and attach it to a detector, |
| 16 |
as follows: |
| 17 |
``` |
| 18 |
resol = ba.ResolutionFunction2DGaussian(horizontal_width, vertical_width) |
| 19 |
detector.setResolutionFunction(resol) |
| 20 |
``` |
| 21 |
|
| 22 |
For an example, see [resolution 2d example](/ref/instr/ex/resol/2d). |