Skip to content
Snippets Groups Projects
Commit f492f68c authored by Pospelov, Gennady's avatar Pospelov, Gennady
Browse files

New standard simulation with intensity set to simplify converging of fitting functional tests

parent 2e5a41f4
No related branches found
No related tags found
No related merge requests found
......@@ -158,4 +158,9 @@ SimulationFactory::SimulationFactory()
registerItem("BasicDepthProbe",
StandardSimulations::BasicDepthProbe,
"Basic 20x20 depth probe simulation with [0, 1] deg angle and [-100, 100] z span");
registerItem("MiniGISASFit",
StandardSimulations::MiniGISASFit,
"GISAS simulation with small 25x25 detector and phi[-2,2], theta[0,2]. "
"Beam intensity is set");
}
......@@ -488,3 +488,15 @@ DepthProbeSimulation* StandardSimulations::BasicDepthProbe()
return result.release();
}
//! Simulation with fitting.
//! Beam intensity set to provide reasonably large values in detector channels.
GISASSimulation* StandardSimulations::MiniGISASFit()
{
GISASSimulation* result = new GISASSimulation();
result->setDetectorParameters(25, -2.0*Units::degree, 2.0*Units::degree,
25, 0.0*Units::degree, 2.0*Units::degree);
result->setBeamParameters(1.0*Units::angstrom, 0.2*Units::degree, 0.0*Units::degree);
result->setBeamIntensity(1e6);
return result;
}
......@@ -54,6 +54,7 @@ BA_CORE_API_ GISASSimulation* MiniGISASMonteCarlo();
BA_CORE_API_ GISASSimulation* SphericalDetWithRoi();
BA_CORE_API_ GISASSimulation* RectDetWithRoi();
BA_CORE_API_ GISASSimulation* ConstantBackgroundGISAS();
BA_CORE_API_ GISASSimulation* MiniGISASFit();
// Specular simulation tests:
BA_CORE_API_ SpecularSimulation* BasicSpecular();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment