Table of Contents
Name | Direction | Type | Default | Description |
---|---|---|---|---|
AnalysisMode | Input | string | PointDetectorAnalysis | Analysis Mode to Choose. Allowed values: [‘PointDetectorAnalysis’, ‘MultiDetectorAnalysis’] |
FirstTransmissionRun | Input | MatrixWorkspace | Mandatory | Input workspace. |
SecondTransmissionRun | Input | MatrixWorkspace | Second transmission run workspace in TOF. | |
OutputWorkspace | Output | MatrixWorkspace | Mandatory | Output transmission workspace in wavelength. |
Params | Input | dbl list | A comma separated list of first bin boundary, width, last bin boundary. These parameters are used for stitching together transmission runs. Values are in wavelength (angstroms). This input is only needed if a SecondTransmission run is provided. | |
StartOverlap | Input | number | Optional | Start wavelength for stitching transmission runs together |
EndOverlap | Input | number | Optional | End wavelength (angstroms) for stitching transmission runs together |
I0MonitorIndex | Input | number | Optional | I0 monitor index |
ProcessingInstructions | Input | string | Grouping pattern on workspace indexes to yield only the detectors of interest. See GroupDetectors for details. | |
WavelengthMin | Input | number | Optional | Wavelength Min in angstroms |
WavelengthMax | Input | number | Optional | Wavelength Max in angstroms |
WavelengthStep | Input | number | Optional | Wavelength step in angstroms |
MonitorBackgroundWavelengthMin | Input | number | Optional | Monitor wavelength background min in angstroms |
MonitorBackgroundWavelengthMax | Input | number | Optional | Monitor wavelength background max in angstroms |
MonitorIntegrationWavelengthMin | Input | number | Optional | Monitor integral min in angstroms |
MonitorIntegrationWavelengthMax | Input | number | Optional | Monitor integral max in angstroms |
Facade over CreateTransmissionWorkspace v1. Pulls numeric parameters out of the instrument parameters where possible. You can override any of these automatically applied defaults by providing your own value for the input.
If ProcessingInstructions is not set its value is inferred from other properties:
See CreateTransmissionWorkspace v1 for more information on the wrapped algorithm.
Note
To run these usage examples please first download the usage data, and add these to your path. In MantidPlot this is done using Manage User Directories.
Example - Create a transmission run
trans = Load(Filename='INTER00013463.nxs')
# Reduction overriding the default values for MonitorBackgroundWavelengthMin and MonitorBackgroundWavelengthMax which would otherwise be retirieved from the workspace
transWS = CreateTransmissionWorkspaceAuto(FirstTransmissionRun=trans)
print "The first four transWS Y values are:"
for i in range (4):
print "%.4f" % transWS.readY(0)[i]
Output:
The first four transWS Y values are:
0.0223
0.0602
0.1020
0.1207
Example - Create a transmission run, overloading default parameters
trans = Load(Filename='INTER00013463.nxs')
# Reduction overriding the default values for MonitorBackgroundWavelengthMin and MonitorBackgroundWavelengthMax which would otherwise be retirieved from the workspace
transWS = CreateTransmissionWorkspaceAuto(FirstTransmissionRun=trans, MonitorBackgroundWavelengthMin=0.0, MonitorBackgroundWavelengthMax=1.0)
print "The first four transWS Y values are:"
for i in range (4):
print "%.4f" % transWS.readY(0)[i]
Output:
The first four transWS Y values are:
0.0221
0.0598
0.1013
0.1198
Example - Create a transmission run from two runs
trans1 = Load(Filename='INTER00013463.nxs')
trans2 = Load(Filename='INTER00013464.nxs')
# Reduction overriding the default values for MonitorBackgroundWavelengthMin and MonitorBackgroundWavelengthMax which would otherwise be retirieved from the workspace
transWS = CreateTransmissionWorkspaceAuto(FirstTransmissionRun=trans1, SecondTransmissionRun=trans2, Params=[1.5,0.02,17], StartOverlap=10.0, EndOverlap=12.0)
print "The first four transWS Y values are:"
for i in range (4):
print "%.4f" % transWS.readY(0)[i]
Output:
The first four transWS Y values are:
0.0567
0.0575
0.0577
0.0580
Categories: Algorithms | Reflectometry\ISIS
C++ source: CreateTransmissionWorkspaceAuto.cpp
C++ header: CreateTransmissionWorkspaceAuto.h