Table of Contents
Name | Direction | Type | Default | Description |
---|---|---|---|---|
MonitorWorkspace | InOut | Workspace | Mandatory | Monitor workspace |
IncidentEnergyGuess | Input | number | -1 | Incident energy guess |
Ei | Output | number | ||
T0 | Output | number |
Get Ei and T0 on ARCS and SEQUOIA instruments. It accounts for the following:
The algorithm is doing the following:
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.
w=Load('ADARAMonitors.nxs')
LoadInstrument(Workspace=w,InstrumentName='SEQUOIA',RewriteSpectraMap='0')
AddSampleLog(Workspace=w,LogName='vChTrans',LogText='1',LogType='Number Series')
AddSampleLog(Workspace=w,LogName='EnergyRequest',LogText='20',LogType='Number Series')
res=GetEiT0atSNS(w)
print "Incident energy: %2.2f meV"%res[0]
print "T0: %2.2f microseconds"%res[1]
Output:
Incident energy: 20.09 meV
T0: 30.42 microseconds
Categories: Algorithms | PythonAlgorithms | Inelastic
Python: GetEiT0atSNS.py