ess.sans.normalization.norm_monitor_term#

ess.sans.normalization.norm_monitor_term(incident_monitor, transmission_fraction)[source]#

Compute the monitor-dependent contribution to the denominator term of I(Q).

This is basically incident_monitor * transmission_fraction.

Keeping the monitor term separate from the detector term allows us to compute the latter only once when repeatedly processing chunks of events in streamed data processing, e.g., for live data reduction.

Parameters:
  • incident_monitor (CleanMonitor[TypeVar(ScatteringRunType, ess.reduce.nexus.types.BackgroundRun (int), ess.reduce.nexus.types.SampleRun (int), ess.reduce.nexus.types.VanadiumRun (int)), ess.reduce.nexus.types.IncidentMonitor (int)]) – The incident monitor data (depends on wavelength).

  • transmission_fraction (TransmissionFraction[TypeVar(ScatteringRunType, ess.reduce.nexus.types.BackgroundRun (int), ess.reduce.nexus.types.SampleRun (int), ess.reduce.nexus.types.VanadiumRun (int))]) – The transmission fraction (depends on wavelength).

Returns:

MonitorTerm[TypeVar(ScatteringRunType, ess.reduce.nexus.types.BackgroundRun (int), ess.reduce.nexus.types.SampleRun (int), ess.reduce.nexus.types.VanadiumRun (int))] – Monitor-dependent factor of the normalization term for the SANS I(Q).