HDF5 file, superblock version 0
group /
	attribute HDF5_Version = "1.14.3"
	attribute NeXus_version = "4.4.2"
	attribute creator = "Test_Source_quasi generated with McStas 3.x-dev - Sep. 28, 2024"
	attribute file_name = "1/mccode.h5"
	attribute file_time = "2024-09-29T05:20:56+01:00"
group /entry1
	attribute NX_class = "NXentry"
	attribute instrument = "Test_Source_quasi"
	attribute program_name = "McStas 3.x-dev - Sep. 28, 2024"
	attribute simulation = "1/mccode"
group /entry1/data
	attribute NX_class = "NXdetector"
group /entry1/data/emon_dat
	attribute Date = "Sun Sep 29 05:20:56 2024"
	attribute NX_class = "NXdata"
	attribute Ncount = "10000000"
	attribute Source = "Test_Source_quasi (Test_Source_quasi.instr)"
	attribute component = "emon"
	attribute filename = "emon.dat"
	attribute options = "None"
	attribute position = "0 0 1"
	attribute signal = "Min=0; Max=2.4475e-19; Mean=6.09235e-20;"
	attribute statistics = "X0=13.1639; dX=1.23173;"
	attribute target = "/entry1/instrument/components/emon/output/emon_dat"
	attribute title = "Energy monitor"
	attribute type = "array_1d(20)"
	attribute values = "1.21847e-18 3.85314e-22 1e+07"
	attribute variables = "E I I_err N"
	attribute xlabel = "Energy [meV]"
	attribute xlimits = "5 20"
	attribute xvar = "E"
	attribute ylabel = "Intensity"
	attribute yvar = "(I,I_err)"
dataset /entry1/data/emon_dat/Energy__meV_: float64, shape (20)
	attribute axis = 1
	attribute long_name = "Energy [meV]"
	attribute primary = 1
	attribute short_name = "E"
	attribute units = "E"
dataset /entry1/data/emon_dat/data: float64, shape (20)
	attribute long_name = "data 'Energy monitor'"
	attribute short_name = "emon.dat"
	attribute signal = 1
dataset /entry1/data/emon_dat/errors: float64, shape (20)
	attribute long_name = "errors 'Energy monitor'"
dataset /entry1/data/emon_dat/ncount: float64, shape (20)
	attribute long_name = "ncount 'Energy monitor'"
group /entry1/data/lmon_dat
	attribute Date = "Sun Sep 29 05:20:56 2024"
	attribute NX_class = "NXdata"
	attribute Ncount = "10000000"
	attribute Source = "Test_Source_quasi (Test_Source_quasi.instr)"
	attribute component = "lmon"
	attribute filename = "lmon.dat"
	attribute options = "None"
	attribute position = "0 0 1"
	attribute signal = "Min=0; Max=1.82975e-19; Mean=6.09235e-20;"
	attribute statistics = "X0=2.50095; dX=0.115857;"
	attribute target = "/entry1/instrument/components/lmon/output/lmon_dat"
	attribute title = "Wavelength monitor"
	attribute type = "array_1d(20)"
	attribute values = "1.21847e-18 3.85314e-22 1e+07"
	attribute variables = "L I I_err N"
	attribute xlabel = "Wavelength [AA]"
	attribute xlimits = "2 3.2"
	attribute xvar = "L"
	attribute ylabel = "Intensity"
	attribute yvar = "(I,I_err)"
dataset /entry1/data/lmon_dat/Wavelength__AA_: float64, shape (20)
	attribute axis = 1
	attribute long_name = "Wavelength [AA]"
	attribute primary = 1
	attribute short_name = "L"
	attribute units = "L"
dataset /entry1/data/lmon_dat/data: float64, shape (20)
	attribute long_name = "data 'Wavelength monitor'"
	attribute short_name = "lmon.dat"
	attribute signal = 1
dataset /entry1/data/lmon_dat/errors: float64, shape (20)
	attribute long_name = "errors 'Wavelength monitor'"
dataset /entry1/data/lmon_dat/ncount: float64, shape (20)
	attribute long_name = "ncount 'Wavelength monitor'"
group /entry1/data/psdmon_dat
	attribute Date = "Sun Sep 29 05:20:56 2024"
	attribute NX_class = "NXdata"
	attribute Ncount = "10000000"
	attribute Source = "Test_Source_quasi (Test_Source_quasi.instr)"
	attribute component = "psd"
	attribute filename = "psdmon.dat"
	attribute options = "None"
	attribute position = "0 0 4"
	attribute signal = "Min=0; Max=1.623e-22; Mean=1.19446e-22;"
	attribute statistics = "X0=-1.02947e-05; dX=0.0288684; Y0=-6.55469e-06; dY=0.0288719;"
	attribute target = "/entry1/instrument/components/psd/output/psdmon_dat"
	attribute title = "PSD monitor"
	attribute type = "array_2d(101, 101)"
	attribute values = "1.21847e-18 3.85314e-22 1e+07"
	attribute variables = "I I_err N"
	attribute xlabel = "X position [cm]"
	attribute xvar = "X "
	attribute xylimits = "-0.055 0.055 -0.055 0.055"
	attribute ylabel = "Y position [cm]"
	attribute yvar = "Y "
	attribute zlabel = "Signal per bin"
	attribute zvar = "I"
dataset /entry1/data/psdmon_dat/X_position__cm_: float64, shape (101)
	attribute axis = 1
	attribute long_name = "X position [cm]"
	attribute primary = 1
	attribute short_name = "X "
	attribute units = "X "
dataset /entry1/data/psdmon_dat/Y_position__cm_: float64, shape (101)
	attribute axis = 2
	attribute long_name = "Y position [cm]"
	attribute primary = 1
	attribute short_name = "Y "
	attribute units = "Y "
dataset /entry1/data/psdmon_dat/data: float64, shape (101, 101)
	attribute long_name = "data 'PSD monitor'"
	attribute short_name = "psdmon.dat"
	attribute signal = 1
dataset /entry1/data/psdmon_dat/errors: float64, shape (101, 101)
	attribute long_name = "errors 'PSD monitor'"
dataset /entry1/data/psdmon_dat/ncount: float64, shape (101, 101)
	attribute long_name = "ncount 'PSD monitor'"
dataset /entry1/duration: string(1), shape (1)
	text = "0"
dataset /entry1/end_time: string(25), shape (1)
	text = "Sun Sep 29 05:20:56 2024\n"
group /entry1/instrument
	attribute Default_main = "yes"
	attribute Embedded_runtime = "yes"
	attribute NX_class = "NXinstrument"
	attribute Parameters = " SRC(double)"
	attribute Source = "Test_Source_quasi.instr"
	attribute Trace_enabled = "yes"
	attribute name = "Test_Source_quasi"
group /entry1/instrument/components
	attribute NX_class = "NXdata"
	attribute description = "Component list for instrument Test_Source_quasi"
group /entry1/instrument/components/Origin
	attribute NX_class = "NXdata"
dataset /entry1/instrument/components/Origin/Position: float64, shape (3)
dataset /entry1/instrument/components/Origin/Rotation: float64, shape (3, 3)
group /entry1/instrument/components/emon
	attribute NX_class = "NXdata"
dataset /entry1/instrument/components/emon/Position: float64, shape (3)
dataset /entry1/instrument/components/emon/Rotation: float64, shape (3, 3)
group /entry1/instrument/components/emon/output
	attribute NX_class = "NXdetector"
group or dataset /entry1/instrument/components/emon/output/emon_dat: the same object as one printed elsewhere in this listing
group /entry1/instrument/components/lmon
	attribute NX_class = "NXdata"
dataset /entry1/instrument/components/lmon/Position: float64, shape (3)
dataset /entry1/instrument/components/lmon/Rotation: float64, shape (3, 3)
group /entry1/instrument/components/lmon/output
	attribute NX_class = "NXdetector"
group or dataset /entry1/instrument/components/lmon/output/lmon_dat: the same object as one printed elsewhere in this listing
group /entry1/instrument/components/psd
	attribute NX_class = "NXdata"
dataset /entry1/instrument/components/psd/Position: float64, shape (3)
dataset /entry1/instrument/components/psd/Rotation: float64, shape (3, 3)
group /entry1/instrument/components/psd/output
	attribute NX_class = "NXdetector"
group or dataset /entry1/instrument/components/psd/output/psdmon_dat: the same object as one printed elsewhere in this listing
group /entry1/instrument/components/sd
	attribute NX_class = "NXdata"
dataset /entry1/instrument/components/sd/Position: float64, shape (3)
dataset /entry1/instrument/components/sd/Rotation: float64, shape (3, 3)
group /entry1/instrument/components/sdq
	attribute NX_class = "NXdata"
dataset /entry1/instrument/components/sdq/Position: float64, shape (3)
dataset /entry1/instrument/components/sdq/Rotation: float64, shape (3, 3)
dataset /entry1/instrument/description: string(3047), shape (1)
	attribute MCCODE_STRING = "McStas 3.x-dev - Sep. 28, 2024"
	attribute file_name = "Test_Source_quasi.instr"
	attribute file_size = "3047"
	text = (text block)
| /*******************************************************************************
| *         McXtrace instrument definition URL=http://www.mcxtrace.org
| *
| * Instrument: test (rename also the example and DEFINE lines below)
| *
| * %Identification
| * Written by: Erik B Knudsen (erkn@fysik.dtu.dk)
| * Date: Feb 1st 2013
| * Origin: DTU Fysik
| * Release: McXtrace 1.1
| * Version: 1.0
| * %INSTRUMENT_SITE: Tests_sources
| *
| * Test instrument to show that the quasi-stcohastic source component works
| *
| * %Description
| * This instrument is a unit test for the quasi-stochastic source component.
| *
| * %Example: Test_Source_quasi.instr SRC=0 Detector: psd_I=1.21847E-18
| * %Example: Test_Source_quasi.instr SRC=1 Detector: psd_I=1.21847E-18
| *
| * %Parameters
| * SRC: [ ] Integer parameter picks a source model. 0 normal Source_div, Quasi-stochastic
| *
| * %End
| *******************************************************************************/
| 
| /* Change name of instrument and input parameters with default values */
| DEFINE INSTRUMENT Test_Source_quasi(SRC=1)
| 
| /* The DECLARE section allows us to declare variables or  small      */
| /* functions in C syntax. These may be used in the whole instrument. */
| DECLARE
| %{
| %}
| 
| /* The INITIALIZE section is executed when the simulation starts     */
| /* (C code). You may use them as component parameter values.         */
| INITIALIZE
| %{
| %}
| 
| /* Here comes the TRACE section, where the actual      */
| /* instrument is defined as a sequence of components.  */
| TRACE
| 
| /* The Arm() class component defines reference points and orientations  */
| /* in 3D space. Every component instance must have a unique name. Here, */
| /* Origin is used. This Arm() component is set to define the origin of  */
| /* our global coordinate system (AT (0,0,0) ABSOLUTE). It may be used   */
| /* for further RELATIVE reference, Other useful keywords are : ROTATED  */
| /* EXTEND GROUP PREVIOUS. Also think about adding a neutron source !    */
| /* Progress_bar is an Arm displaying simulation progress.               */
| COMPONENT Origin = Progress_bar()
|   AT (0,0,0) ABSOLUTE
| 
| COMPONENT sd = Source_div(
|     xwidth=1e-3, yheight=1e-3, focus_aw=1e-6, focus_ah=1e-6, lambda0=2.5, dlambda=0.2, gauss=0
| )
| WHEN (SRC==0) AT (0,0,0) RELATIVE Origin
| 
| COMPONENT sdq = Source_div_quasi(
|     xwidth=1e-3, yheight=1e-3, focus_aw=1e-6, focus_ah=1e-6, lambda0=2.5, dlambda=0.2, gauss=0
| )
| WHEN (SRC==1) AT (0,0,0) RELATIVE Origin
| 
| 
| 
| 
| COMPONENT lmon= L_monitor(
|    restore_neutron=1, xwidth=0.02, yheight=0.02,Lmin=2,Lmax=3.2,filename="lmon.dat")
| AT(0,0,1) RELATIVE Origin
| 
| COMPONENT emon= E_monitor(
|    restore_neutron=1, xwidth=0.02, yheight=0.02,Emin=5,Emax=20,filename="emon.dat")
| AT(0,0,1) RELATIVE Origin
| 
| COMPONENT psd= PSD_monitor(
|    restore_neutron=1, xwidth=0.0011, yheight=0.0011,nx=101, ny=101,filename="psdmon.dat")
| AT(0,0,4) RELATIVE Origin
| 
| 
| 
| /* This section is executed when the simulation ends (C code). Other    */
| /* optional sections are : SAVE                                         */
| FINALLY
| %{
| %}
| /* The END token marks the instrument definition end */
| END
dataset /entry1/instrument/instrument_source: string(55), shape (1)
	text = "Test_Source_quasi McStas neutron Monte Carlo simulation"
dataset /entry1/instrument/name: string(17), shape (1)
	text = "Test_Source_quasi"
dataset /entry1/program_name: string(30), shape (1)
	text = "McStas 3.x-dev - Sep. 28, 2024"
group /entry1/simulation
	attribute Directory = "1"
	attribute Format = "NeXus"
	attribute Gravitation = "no"
	attribute Instrument = "Test_Source_quasi.instr"
	attribute NX_class = "NXnote"
	attribute Seed = "1000"
	attribute Trace = "no"
	attribute URL = "http://www.mccode.org"
	attribute name = "1/mccode"
	attribute program = "McStas 3.x-dev - Sep. 28, 2024"
dataset /entry1/simulation/Nodes: string(2), shape (1)
	text = "16"
group /entry1/simulation/Param
	attribute NX_class = "NXparameters"
	attribute SRC = "0"
dataset /entry1/simulation/Param/SRC: string(1), shape (1)
	text = "0"
dataset /entry1/simulation/name: string(6), shape (1)
	text = "mccode"
dataset /entry1/start_time: string(25), shape (1)
	text = "Sun Sep 29 05:20:56 2024\n"
dataset /entry1/title: string(61), shape (1)
	text = "1/mccode simulation generated by instrument Test_Source_quasi"