DEFINE INSTRUMENT SimpleInstrument(E0=8.02, dE=7.9, omega=0, sigma_inc=1e-5) TRACE COMPONENT Origin = Progress_bar() AT (0, 0, 0) ABSOLUTE COMPONENT Source = Source_flat( yheight = 1e-3, xwidth = 1e-3, dist = 1, focus_xw = 1e-3, focus_yh = 1e-3, E0 = E0, dE = dE) AT (0, 0, 0) RELATIVE Origin COMPONENT samplepos = Arm() AT (0, 0, 1) RELATIVE Source COMPONENT Sample = Single_crystal(xwidth=0.001, yheight=0.001, zdepth=0.001, delta_d_d=1e-4, mosaic = 5, ax = 5.44, ay = 0, az = 0, bx = 0, by = 5.44, bz = 0, cx = 0, cy = 0, cz = 5.44, reflections="Si.lau", order=1, material_datafile="Si.txt",sigma_inc=sigma_inc) AT (0, 0, 0) RELATIVE samplepos ROTATED (0, omega, 0) RELATIVE samplepos COMPONENT Detector_4PI = PSD_monitor_4PI(radius=0.09, restore_xray=1) AT (0,0,0) RELATIVE samplepos COMPONENT beamstop = Beamstop(radius=5e-3) AT (0, 0, 0.1-1e-3) RELATIVE samplepos COMPONENT Detector = PSD_monitor( nx=200, ny=200, xwidth=0.5, yheight=0.5, filename="psd0",restore_xray=0 ) AT (0, 0, 1e-3) RELATIVE beamstop END