ess.nmx.reduction.proton_charge_from_event_counts#

ess.nmx.reduction.proton_charge_from_event_counts(da)[source]#

Make up the proton charge from the event counts.

Proton charge is proportional to the number of neutrons, which is proportional to the number of events. The scale factor is manually chosen based on previous results to be convenient for data manipulation in the next steps. It is derived this way since the protons are not part of McStas simulation, and the number of neutrons is not included in the result.

Parameters:

event_da – The event data

Return type:

types.ProtonCharge (scipp.Variable)