|
19 | 19 | * %Example: Ei=3.7 res=HR Detector: sample_PSDmon_I=8835.3 |
20 | 20 | * |
21 | 21 | * %P |
22 | | -* Ei: [meV] Centre energy for moderator |
23 | | -* dE: [] Multiplier for energy spread: Emin = Ei/dE, Emax = Ei*dE |
24 | | -* Ch3_speed: [Hz] Chopper 3 frequency |
25 | | -* Ch5_speed: [Hz] Chopper 5 frequency |
26 | | -* Ch2_phase: [mus] Chopper 2 phase setting |
27 | | -* pha_offset: [mus] Offset in time for moderator focus |
28 | | -* res: [string] "HF" - High Flux, "HR" - High Resolution, "I" - Intermediate |
29 | | -* snout: [string] "in" or "out" |
| 22 | +* Ei: [meV] Centre energy for moderator |
| 23 | +* dE: [] Multiplier for energy spread: Emin = Ei/dE, Emax = Ei*dE |
| 24 | +* Ch3_speed: [Hz] Chopper 3 frequency |
| 25 | +* Ch5_speed: [Hz] Chopper 5 frequency |
| 26 | +* Ch2_phase: [mus] Chopper 2 phase setting |
| 27 | +* pha_offset: [mus] Offset in time for moderator focus |
| 28 | +* res: [string] "HF" - High Flux, "HR" - High Resolution, "I" - Intermediate |
| 29 | +* snout: [string] "in" or "out" |
| 30 | +* monitors_on: [1] Flag to enable/disable TOF monitors in primary optics |
| 31 | +* movable_monitors: [1] Flag to enable/disable PSDs and Div monitors in primary optics |
30 | 32 | * |
31 | 33 | * %L |
32 | 34 | * %E |
33 | 35 | *******************************************************************************/ |
34 | 36 |
|
35 | 37 | DEFINE INSTRUMENT ISIS_LET(Ei = 3.7, dE=1.1, Ch3_speed=100, Ch5_speed=200, Ch2_phase=95000, |
36 | | - pha_offset=80e-6, string res="HF", string snout = "out") |
| 38 | + pha_offset=80e-6, string res="HF", string snout = "out", int monitor_on=0, int movable_monitors=0) |
37 | 39 |
|
38 | 40 | DECLARE |
39 | 41 | %{ |
40 | 42 | double SE2K, v_foc, emin, emax, lam_min, lam_max, jitter=7e-7; |
41 | 43 | double Ch1_speed, Ch2_speed=10, Ch2_offset=14500, Ch4_speed, Ch5_slit, snout_length; |
42 | 44 | double L_Ch1=7.833, L_Ch2=8.200, L_Ch3=11.749, L_Ch4=15.664, L_Ch5=23.499; |
43 | 45 | double L_sample=25, L2=3.5, Ch1_5_halfgap=0.005, smidge = 0.001; |
44 | | -int monitors_on=0, movable_monitors=0; |
45 | 46 | %} |
46 | 47 |
|
47 | 48 | INITIALIZE |
|
0 commit comments