Setpar()

GENIE-V2 style T-O-F parameter setting for the Units() command.

SETPAR wksp=Workspace [l1=Real] [l2=Real] [tt=Real] [em=Integer] [ef=Real] [d=Real] [t=String] Set time of flight parameters
[/R]   Take angles to be values in radians

example:

	# Set a value of two-theta that was not in the raw data file
	>> w = s(1)
	>> Setpar w tt=50.0
	>> wd = Units:d(w)

Note: Could probably be done more easily by assignment (i.e. w.twotheta = 50.0)

Setpar

The Setpar() command emulates the GENIE-V2 command which set Time-of-Flight parameters for a workspace so that the Units() command could be used. Open GENIE behaves differently, in that it will read the parameters from a data file automatically when reading spectra. Setpar() can be used however to fix parameters which had an incorrect or default value in the raw file. Note that the problem is trivial in Open GENIE anyway because the correct values can simply be assigned to the appropriate workspace field by using GCL (as in the note above).

Parameters:

/R

Interpret the two theta angle as a value given in radians.

L1 (Real)

Primary flight path (m)

L2 (Real)

Secondary flight path (m)

Tt (Real)

Two theta angle in degrees by default.

Em (Integer)

Selects the energy mode of the instrument affects how the "Ef" fixed energy parameter is interpreted by the Units() command.

0 = Elastic
1 = Inelastic (Direct geometry)
2 = Inelastic (Indirect geometry)

Ef (Real)

Fixed energy value (meV)

D (Real)

The hold off time (delta) in microseconds.

T (String)

Workspace title string.