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')
run=w.getRun()
from mantid.kernel import DateAndTime
run.setStartAndEndTime(
DateAndTime("2015-01-27T11:00:00"),
DateAndTime("2015-01-27T11:57:51")
)
LoadInstrument(Workspace=w,InstrumentName='SEQUOIA',RewriteSpectraMap=False)
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".format(res[0]))
print("T0: {:2.2f} microseconds".format(res[1]))
Output:
Incident energy: 20.09 meV
T0: 30.42 microseconds
Categories: AlgorithmIndex | Inelastic\Ei
Python: GetEiT0atSNS.py (last modified: 2019-07-10)