mcstas simulation description file for templateSANS.
Date:    Sat Aug 15 05:47:56 2026
Program:  3.99.99, git

begin instrument: templateSANS
  File: 1/mccode
  Source: templateSANS.instr
  Parameters:  lambda(double) dlambda(double) r(double) PHI(double) Delta_Rho(double) sigma_abs(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: templateSANS.instr
  Ncount: 10000000
  Trace: no
  Gravitation: no
  Seed: 1000
  Directory: 1
  Param: lambda=6
  Param: dlambda=0.05
  Param: r=100
  Param: PHI=0.001
  Param: Delta_Rho=0.6
  Param: sigma_abs=0.5
end simulation

begin data
  Date: Sat Aug 15 05:47:56 2026 (1786765676)
  type: array_2d(128, 128)
  Source: templateSANS (templateSANS.instr)
  component: detector
  position: 0 0 9.2
  title: PSD monitor
  Ncount: 10000000
  filename: PSD.dat
  statistics: X0=-0.00992134; dX=5.06006; Y0=0.00138066; dY=5.06289;
  signal: Min=0; Max=9.19769e-05; Mean=2.71193e-06;
  values: 0.0444322 8.31348e-05 4.68847e+06
  xvar: X 
  yvar: Y 
  xlabel: X position [cm]
  ylabel: Y position [cm]
  zvar: I
  zlabel: Signal per bin
  xylimits: -30 30 -30 30
  variables: I I_err N
end data

begin data
  Date: Sat Aug 15 05:47:56 2026 (1786765676)
  type: array_1d(1000)
  Source: templateSANS (templateSANS.instr)
  component: Ldetector
  position: 0 0 9.21
  title: Wavelength monitor
  Ncount: 10000000
  filename: Edet.dat
  statistics: X0=6.00031; dX=0.0288539;
  signal: Min=0; Max=0.000477052; Mean=4.44307e-05;
  values: 0.0444307 8.31348e-05 4.65767e+06
  xvar: L
  yvar: (I,I_err)
  xlabel: Wavelength [AA]
  ylabel: Intensity
  xlimits: 5.5 6.5
  variables: L I I_err N
end data

begin data
  Date: Sat Aug 15 05:47:56 2026 (1786765676)
  type: array_1d(100)
  Source: templateSANS (templateSANS.instr)
  component: PSDrad
  position: 0 0 9.22
  title: PSD monitor radial sum
  Ncount: 10000000
  filename: psd2.dat
  statistics: X0=0.0627496; dX=0.0359339;
  signal: Min=0; Max=0.00218185; Mean=0.000443752;
  values: 0.0443752 8.31348e-05 3.62998e+06
  xvar: r
  yvar: (I,I_err)
  xlabel: Radius [m]
  ylabel: Intensity
  xlimits: 0.0015 0.3015
  variables: r I I_err N
end data

begin data
  Date: Sat Aug 15 05:47:56 2026 (1786765676)
  type: array_1d(100)
  Source: templateSANS (templateSANS.instr)
  component: PSDrad
  position: 0 0 9.22
  title: PSD monitor radial average
  Ncount: 10000000
  filename: psd2_av.dat
  statistics: X0=0.0500566; dX=0.024826;
  signal: Min=0; Max=3.70736; Mean=0.484831;
  values: 48.4831 0.119521 3.62998e+06
  xvar: r
  yvar: (I,I_err)
  xlabel: Radius [m]
  ylabel: Intensity/m^2
  xlimits: 0.0015 0.3015
  variables: r I I_err N
end data
