ess.nmx.mcstas.load.mcstas_weight_to_probability_scalefactor#

ess.nmx.mcstas.load.mcstas_weight_to_probability_scalefactor(max_counts, max_probability)[source]#

Calculate the scale factor to convert McStas weights to counts.

max_counts * (probabilities / max_probability)

Parameters:
  • max_counts (types.MaximumCounts (int)) – The maximum number of counts after scaling the event counts.

  • scale_factor – The scale factor to convert McStas weights to counts

Return type:

types.McStasWeight2CountScaleFactor (scipp.Variable)