ess.freia.mcstas#

Adapters for FREIA McStas files.

Functions

load_mcstas(filename[, detector_name, ...])

Load weighted detector events and pixel geometry.

load_mcstas_monitor(filename, monitor_name)

Read a selected one-dimensional McStas L_monitor histogram.

load_mcstas_provider(filename, ...)

Load detector events using the workflow's pixel geometry.

mcstas_detector_geometry(filename, detector_name)

Provide detector geometry to the generic flight-path calculation.

mcstas_sample_position(filename)

Load the sample position from the simulation geometry.

mcstas_sample_surface_normal(filename)

Load the sample surface normal in global coordinates.

mcstas_source_position(filename)

Load the moderator position from the simulation geometry.

mcstas_wavelength_monitor(filename, monitor_name)

Provide the explicitly selected incident wavelength histogram.

non_wfm_choppers()

Construct the non-WFM cascade with only the three bandwidth choppers.

wfm_choppers()

Construct the fixed WFM cascade used by the initial FREIA simulations.