Offspecular simulation requires phi-integration over 2D detector. This option defines the exact way how the integration is done.
Various integration methods provide different speed and accuracy and have their own parameters.
simulation.options().setOffspecIntegratorOptions("IntegrationMethod",
{
par1name : value,
par2name : value,
...
})
Adaptive, provides good accuracy but may slow down the performance.
simulation.options().setOffspecIntegratorOptions("AdaptiveGaussKronrod",
{
"max_subintervals" : 200,
"abs_tolerance" : 1e-9,
"rel_tolerance" : 1e-7,
"GK_rule" : 3
});
"GK_rule"
is the integer key from 1 to 6, corresponding to
15, 21, 31, 41, 51 or 61-point Gauss-Kronrod rule.
Non-adaptive version with integration over <=87 points.
simulation.options().setOffspecIntegratorOptions("GaussKronrod",
{
"abs_tolerance" : 1e-9,
"rel_tolerance" : 1e-7
});
Semi-adaptive with iterative subdivisions
simulation.options().setOffspecIntegratorOptions("Romberg",
{
"subdivision_depth" : 5,
"abs_tolerance" : 1e-9,
"rel_tolerance" : 1e-7
});