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
Routine details
top t2e_tof
result = t2e_tof(w_in, idet, ken)
******* ******* ** t2e for TOF
Parameters
- w_in
- idet
- ken
File attributes
Modification date: | Tue Oct 1 14:39:52 2013 |
Lines: | 624 |