The LAMP Application

Generated by IDLdoc

single page | use frames     summary     class     fields     routine details     file attributes

lamp_mac/TOF/

t2e.pro


FUNCTION t2e, w_in, in5multi = idet, ken = abs, id For IN4, IN5, IN6, HET and D7 data. Calls Don Kearley's old t2e for other instruments. Converts tof data in w_in to energy transfer in w_out. Includes the factor of ki/kf. KEYWORDS /in5multi : use data in IN5 multidetector - otherwise use IN5 high angle detectors (default) /ken : use Ken's expression for dEdt in t2e_tof.pro (not recommended) (id is obsolete and should not be used) DIMENSIONS w_in(nchannels,nspectra,nruns) -> w_out(nE,spectra,nruns) (multiple runs for TOF) COMMAND SYNTAX w10=t2e(w9[,/in5multi][,/norm]) KHA, JRS 7/12/07 Modified by SR to incorporate Mibemol, DCS and TOFTOF data Last modification 24/03/09 by SR Last modification 02/11/10 by SR : no special case for IN6 concerning the sample to detector distance (L2). Like other instruments, L2 read from the parameters. Therefore L2 = 2483 mm (set in P(27)). The previous special case for Inst = IN6 set L2 = 2479 mm... This will affect the spectrum at high energy transfer. Last modification 02/11/10 by SR : Write error message when negative TOF values are calculated... this happens on IN6

Routines

result = t2e_tof(w_in, idet, ken)

result = t2e_d7(w_in, abs)

result = t2e_HET(w_in)

result = t2e_don(in_wk)

result = t2e(w_in, id, in5multi=in5multi, ken=ken)

Routine details

top t2e_tof

result = t2e_tof(w_in, idet, ken)

******* ******* ** t2e for TOF

Parameters

w_in
idet
ken

top t2e_d7

result = t2e_d7(w_in, abs)

******* ****** ** t2e for D7

Parameters

w_in
abs

top t2e_HET

result = t2e_HET(w_in)

******* ******* ** t2e for HET

Parameters

w_in

top t2e_don

result = t2e_don(in_wk)

******* ******* ** t2e from Don ** ** converts array w_in to energy in w_out.....GJK 1994 ** ** Example call: w2=t2e(w1) ** convert tof spectrum in w1 to energy and output in w2

Parameters

in_wk

top t2e

result = t2e(w_in, id, in5multi=in5multi, ken=ken)

******* *** ** User callable ** t2e main entry

Parameters

w_in
id

Keywords

in5multi
ken

File attributes

Modification date: Tue Oct 1 14:39:52 2013
Lines: 624