LoadInstrumentFromRaw
From MantidProject
Summary
Attempts to load information about the instrument from a ISIS raw file. In particular attempt to read L2 and 2-theta detector position values and add detectors which are positioned relative to the sample in spherical coordinates as (r,theta,phi)=(L2,2-theta,0.0). Also adds dummy source and samplepos components to instrument.
If the L1 source - sample distance is not available in the file then it may be read from the mantid properties file using the key instrument.L1, as a final fallback a default distance of 10m will be used.
Properties
| Order | Name | Direction | Type | Default | Description |
|---|---|---|---|---|---|
| 1 | Workspace | InOut | Workspace | Mandatory | The name of the workspace in which to store the imported instrument. |
| 2 | Filename | Input | string | Mandatory | The filename (including its full or relative path) of an ISIS RAW file. The file extension must either be .raw or .s?? file. |
Source Code
Header LoadInstrumentFromRaw.h
Source LoadInstrumentFromRaw.cpp
