LoadPSIMuonBin v1

../_images/LoadPSIMuonBin-v1_dlg.png

LoadPSIMuonBin dialog.

Summary

Loads a data file that is in PSI Muon Binary format into a workspace (Workspace2D class).

Properties

Name Direction Type Default Description
Filename Input string Mandatory The name of the Bin file to load. Allowed extensions: [‘.bin’]
TemperatureFilename Input string   The name of the temperature file to be loaded, this is optional as it will be automatically searched for if not provided. Allowed extensions: [‘.mon’]
OutputWorkspace Output Workspace Mandatory An output workspace.
SearchForTempFile Input boolean True If no temp file has been given decide whether the algorithm will search for the temperature file.
FirstGoodData Output number   First good data in the OutputWorkspace’s spectra
LastGoodData Output number   Last good data in the OutputWorkspace’s spectra
TimeZero Output number   The TimeZero of the OutputWorkspace
DataDeadTimeTable Output number   This property should not be set and is present to work with the Muon GUI preprocessor.
MainFieldDirection Output number   The field direction of the magnetic field on the instrument

Description

The algorithm LoadPSIMuonBin will read in a .bin file from the PSI facility, from one of the various machines that use that format. The file name can be an absolute or relative path and should have the extension .bin. The file should only be loaded if the first two bytes are “1N” representing it as the format that this will load.

LoadPSIMuonBin is capable of loading in accompanying temperature files. There are two options for achieving this. If no file is provided and the temperature file searching enabled (it is by default), then it will recursively search for the file in the current directory of the data file and up to 3 directories deeper than the file.

Any temperature data loaded in from a separate file will be available from the resultant workspace’s sample logs, as a number series that is plottable.

Errors

For errors the Poisson distribution is used.

Child Algorithms used

The ChildAlgorithms used by LoadPSIMuonBin are:

Categories: AlgorithmIndex | DataHandling\PSI

Source

C++ source: LoadPSIMuonBin.cpp (last modified: 2019-08-08)

C++ header: LoadPSIMuonBin.h (last modified: 2019-07-29)