Table of Contents
Name | Direction | Type | Default | Description |
---|---|---|---|---|
InputWorkspace | Input | MatrixWorkspace | Mandatory | The name of the input 2D workspace. |
OutputWorkspace | Output | MatrixWorkspace | Mandatory | The name of the output 2D workspace. |
Spectra | Input | int list | The workspace indices to remove the exponential decay from. |
This algorithm removes the exponential time decay from a specified muon spectra. By default, all the spectra in a workspace will be corrected.
The formula for removing the exponential decay is given by:
where is the muon lifetime (2.197019e-6 seconds). is a fitted normalisation constant.
Example - Removing exponential decay:
y = [100, 150, 50, 10, 5]
x = [1,2,3,4,5,6]
input = CreateWorkspace(x,y)
output = RemoveExpDecay(input)
print "Exp. decay removed:", output.readY(0)
Output:
Exp. decay removed: [-0.24271091 0.79071878 -0.05901962 -0.70332224 -0.76615428]
Categories: Algorithms | Muon