ess.beer.mcstas.load#

Loaders and helpers for BEER McStas simulation data.

Functions

chopper_mode_from_mcstas_mode(mode)

Return the BEER chopper mode matching a McStas mode value.

load_beer_mcstas(filename, bank)

Load a detector bank from a BEER McStas file.

load_beer_mcstas_geometry(filename, bank)

Load detector geometry from a BEER McStas file without loading events.

load_beer_mcstas_monitor(filename)

Load the BEER McStas wavelength monitor.

mcstas_choppers(da, source_position)

Return BEER choppers for the McStas mode in the data.

mcstas_detector_ltotal(detector, ...)

Return moderator-to-detector flight path lengths for BEER McStas data.

mcstas_sample_position(fname)

Return the sample position from a BEER McStas file.

mcstas_source_position(fname, sample_position)

Return the effective source position for the McStas geometry.