Table of Contents
Name | Direction | Type | Default | Description |
---|---|---|---|---|
InputWorkspace | Input | MatrixWorkspace | Mandatory | An input workspace. |
Criterion | Input | string | Masking criterion as a muparser expression; y: bin count, e: bin error, x: bin center, dx: bin center error, s: spectrum axis value. | |
OutputWorkspace | Output | MatrixWorkspace | Mandatory | An output workspace. |
This algorithm masks bins according to the criteria specified as a muparser expression. The variables entering the criteria are reserved as follows:
Example - MaskBinsIf
CreateSampleWorkspace(BankPixelWidth=100, NumBanks=1, OutputWorkspace='out')
MaskBinsIf(InputWorkspace='out', Criterion='s>10 && s<20 && x>1000 && x<2000', OutputWorkspace='out')
Categories: AlgorithmIndex | Transforms\Masking
C++ source: MaskBinsIf.cpp (last modified: 2019-07-17)
C++ header: MaskBinsIf.h (last modified: 2018-10-10)