To add a Poisson background to a Simulation
instance, use
bg = ba.PoissonBackground()
simulation.setBackground(bg)
In this case, the output intensity is randomly distributed around the exact value with discrete Poisson statistics.
The lower the intensity of the probing beam, the lower the signal-to-noise ratio.
To add a constant background to a Simulation
instance, use
bg = ba.ConstantBackground(1e3)
simulation.setBackground(bg)
Background is applied before the specular simulation is normalized, so the threshold value will also be divided by the probe beam intensity.
The script below shows how to add a constant background in the context of a GISAXS simulation of an air-substrate bilayer with cylindrical particles embedded.
|
|