ess.amor.normalization.mask_events_where_supermirror_does_not_cover#

ess.amor.normalization.mask_events_where_supermirror_does_not_cover(sam, ref, critical_edge, mvalue, alpha)[source]#

Mask events in regions of the detector the reference does not cover.

Regions of the detector that the reference measurement doesn’t cover cannot be used to compute reflectivity.

Preferably the reference measurement should cover the entire detector, but sometimes that is not possible, for example if the supermirror \(M\) value was too limited or because the reference was measured at too high angle.

To figure out what events need to be masked, compute the supermirror reflectivity as a function of the \(Q\) the event would have had if it had belonged to the reference measurement.

Return type:

types.Sample (scipp.DataArray)