mcstas simulation description file for templateDIFF.
Date:    Fri May 22 09:31:14 2026
Program:  3.99.99, git

begin instrument: templateDIFF
  File: 1/mccode
  Source: templateDIFF.instr
  Parameters:  lambda(double) DM(double) Powder(string) RV(double) L1(double) L2(double) L3(double) ALPHA1(double) ALPHA2(double) ALPHA3(double) ETA(double) verbose(double) THETA_M(double) SM(double)
  Trace_enabled: yes
  Default_main: yes
  Embedded_runtime: yes
end instrument

begin simulation: 1
  Format: McCode with text headers
  URL: http://www.mccode.org
  Creator:  3.99.99, git
  Instrument: templateDIFF.instr
  Ncount: 10000000
  Trace: no
  Gravitation: no
  Seed: 1000
  Directory: 1
  Nodes: 20
  Param: lambda=1
  Param: DM=3.355
  Param: Powder=Na2Ca3Al2F14.laz
  Param: RV=-1
  Param: L1=17
  Param: L2=3.2
  Param: L3=1.471
  Param: ALPHA1=5
  Param: ALPHA2=60
  Param: ALPHA3=5
  Param: ETA=12
  Param: verbose=1
  Param: THETA_M=0
  Param: SM=1
end simulation

begin data
  Date: Fri May 22 09:31:19 2026 (1779435079)
  type: array_2d(100, 100)
  Source: templateDIFF (templateDIFF.instr)
  component: Diff_Mono_XY
  position: 0 0 16.9
  title:  Intensity Position Position Monitor (Square) per bin
  Ncount: 10000000
  filename: Diff_Mono_XY_1779435074.x_y
  statistics: X0=-6.55217e-07; dX=0.00432165; Y0=-4.8872e-05; dY=0.0429592;
  signal: Min=0; Max=464993; Mean=61094.4;
  values: 6.10944e+08 418926 2.82876e+06
  xvar: x 
  yvar: y 
  xlabel: x [m]
  ylabel: y [m]
  zvar: I
  zlabel: Signal per bin
  xylimits: -0.05 0.05 -0.075 0.075
  variables: I I_err N
end data

begin data
  Date: Fri May 22 09:31:19 2026 (1779435079)
  type: array_1d(40)
  Source: templateDIFF (templateDIFF.instr)
  component: Diff_Mono_Lambda
  position: 0 0 16.99
  title: Wavelength [Angs] monitor
  Ncount: 10000000
  filename: Diff_Mono_Lambda_1779435074.L
  statistics: X0=1.00003; dX=0.00576982;
  signal: Min=0; Max=3.08852e+07; Mean=1.52736e+07;
  values: 6.10944e+08 418926 2.82876e+06
  xvar: L
  yvar: (I,I_err)
  xlabel: Wavelength [Angs]
  ylabel: Intensity [n/s/bin]
  xlimits: 0.985 1.025
  variables: L I I_err N
end data

begin data
  Date: Fri May 22 09:31:19 2026 (1779435079)
  type: array_1d(40)
  Source: templateDIFF (templateDIFF.instr)
  component: Diff_Sample_Lambda
  position: 0.928412 0 20.0101
  title: Wavelength [Angs] monitor
  Ncount: 10000000
  filename: Diff_Sample_Lambda_1779435074.L
  statistics: X0=1.0004; dX=0.004952;
  signal: Min=0; Max=1.73311e+07; Mean=6.26024e+06;
  values: 2.50409e+08 82613.7 1.18764e+07
  xvar: L
  yvar: (I,I_err)
  xlabel: Wavelength [Angs]
  ylabel: Intensity [n/s/bin]
  xlimits: 0.985 1.025
  variables: L I I_err N
end data

begin data
  Date: Fri May 22 09:31:19 2026 (1779435079)
  type: array_1d(340)
  Source: templateDIFF (templateDIFF.instr)
  component: Diff_BananaTheta
  position: 0.943149 0 20.0579
  title: Longitude [deg] monitor
  Ncount: 10000000
  filename: Diff_BananaTheta_1779435074.th
  statistics: X0=65.2413; dX=38.7625;
  signal: Min=24.8789; Max=2263.49; Mean=231.027;
  values: 78549.3 130.815 3.512e+06
  xvar: th
  yvar: (I,I_err)
  xlabel: Longitude [deg]
  ylabel: Intensity [n/s/bin]
  xlimits: -10 160
  variables: th I I_err N
end data

begin data
  Date: Fri May 22 09:31:19 2026 (1779435079)
  type: array_2d(170, 25)
  Source: templateDIFF (templateDIFF.instr)
  component: Diff_BananaPSD
  position: 0.943149 0 20.0579
  title:  Intensity Angle Position Monitor (Banana) [out] per bin
  Ncount: 10000000
  filename: Diff_BananaPSD_1779435074.th_y
  statistics: X0=65.132; dX=38.8987; Y0=1.31346e-05; dY=0.0861149;
  signal: Min=3.06193; Max=300.155; Mean=36.5838;
  values: 155481 184.386 6.95407e+06
  xvar: Lo
  yvar: y 
  xlabel: Longitude [deg]
  ylabel: y [m]
  zvar: I
  zlabel: Signal per bin
  xylimits: -10 160 -0.15 0.15
  variables: I I_err N
end data
