ess.dream.io.geant4.extract_monitor_ltotal#

ess.dream.io.geant4.extract_monitor_ltotal(monitor)[source]#

Extract Ltotal from the monitor data. TODO: This is a temporary implementation. We should instead read the positions separately from the event data, so we don’t need to re-load the positions every time new events come in while streaming live data.

Return type:

MonitorLtotal[TypeVar(RunType, ess.reduce.nexus.types.SampleRun (int), ess.reduce.nexus.types.VanadiumRun (int)), TypeVar(MonitorType, ess.reduce.nexus.types.Monitor1 (int), ess.reduce.nexus.types.Monitor2 (int))]