\(\renewcommand\AA{\unicode{x212B}}\)
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++ header: MaskBinsIf.h (last modified: 2020-03-20)
C++ source: MaskBinsIf.cpp (last modified: 2020-03-20)