1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
/********************************************************************************
*
* McStas, neutron ray-tracing package
* Copyright (C) 1997-2008, All rights reserved
* Risoe National Laboratory, Roskilde, Denmark
* Institut Laue Langevin, Grenoble, France
*
* This file was written by McStasScript, which is a
* python based McStas instrument generator written by
* Mads Bertelsen in 2019 while employed at the
* European Spallation Source Data Management and
* Software Center
*
* Instrument test_instrument
*
* %Identification
* Written by: Python McXtrace Instrument Generator
* Date: 10:17:47 on December 14, 2021
* Origin: ESS DMSC
* %INSTRUMENT_SITE: Generated_instruments
*
*
* %Parameters
*
* %End
********************************************************************************/
DEFINE INSTRUMENT test_instrument (
double theta = 1,
double has_default = 37
)
DECLARE
%{
double two_theta;
%}
INITIALIZE
%{
// Start of initialize for generated test_instrument
two_theta = 2.0*theta;
%}
TRACE
COMPONENT first_component = test_for_reading(
gauss = 1.2, test_string = a_string)
AT (0,0,0) ABSOLUTE
COMPONENT second_component = test_for_reading(
gauss = 1.4, test_string = b_string)
AT (0,0,0) ABSOLUTE
COMPONENT third_component = test_for_reading(
gauss = 1.6, test_string = c_string)
AT (0,0,0) ABSOLUTE
FINALLY
%{
// Start of finally for generated test_instrument
%}
END
|