Skip to main content

Module count_background

Module count_background 

Source
Expand description

Non-negative additive background templates for two-arm count measurements.

The neutron signal is evaluated before entering this module. A background template is an expected detector-bin shape from an independent source such as a blocked-beam or detector-only measurement. Its fitted amplitude is non-negative, and the background is added after the neutron response.

This module deliberately provides no smooth-curve generator. Fitting a flexible curve to the same residual it is meant to explain would not identify a physical background. The SAMMY transmission-level background is also a separate model with different placement and meaning.

Structs§

TwoArmBackgroundFitResult
Result of fitting fixed neutron signals plus background templates.
TwoArmBackgroundTemplate
One independently supplied detector-bin background shape.

Functions§

fit_two_arm_background_templates
Fit amplitudes of independently supplied detector-bin templates.