Option: offspecular detector phi-integration

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, 
						...
						})
  1. The default integrator is “AdaptiveGaussKronrod”

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.

  1. “GaussKronrod”

Non-adaptive version with integration over <=87 points.

simulation.options().setOffspecIntegratorOptions("GaussKronrod",
						{
						"abs_tolerance" : 1e-9,
						"rel_tolerance" : 1e-7
						});
  1. “Romberg”

Semi-adaptive with iterative subdivisions

simulation.options().setOffspecIntegratorOptions("Romberg",
						{
						"subdivision_depth" : 5,
						"abs_tolerance" : 1e-9,
						"rel_tolerance" : 1e-7
						});