Skip to content
Snippets Groups Projects
Commit 53c29083 authored by Joe Ramsay's avatar Joe Ramsay
Browse files

Re #22526 Add MAUD and GSAS calib params to gem object

parent 6eb8053b
No related branches found
No related tags found
No related merge requests found
......@@ -685,6 +685,54 @@ On GEM this is set to the following:
# texture_mode = True
grouping_file_name: "offsets_xie_test_2.cal"
.. _gsas_calib_filename_gem_isis-powder-diffraction-ref:
gsas_calib_filename
^^^^^^^^^^^^^^^^^^^
The name of the GSAS calibration file used to generate MAUD input
files when running a focus in :ref:`texture_mode_isis-powder-diffraction-ref`.
on GEM this is set to the following (this file is distributed with Mantid):
.. code-block:: python
gsas_calib_filename: "GEM_PF1_PROFILE.IPF"
.. _maud_grouping_scheme_gem_isis-powder-diffraction-ref:
maud_grouping_scheme
^^^^^^^^^^^^^^^^^^^^
When saving MAUD files (typically only done when running in
:ref:`texture_mode_isis-powder-diffraction-ref`), there are too many banks to have
calibration parameters for each bank. Instead, the normal 6-bank calibration file is used
(see :ref:`gsas_calib_filename_gem_isis-powder-diffraction-ref`), and each of the 160
texture banks is assigned the calibration parameters of one of the 6 banks in the file.
This parameter associates each of the 160 banks to one of the big banks. It is a list of bank IDs,
where the value at element ``i`` is a number between 1 and 6, indicating which of the 6 banks to
associate texture bank ``i`` with.
On GEM this is set to the following:
.. code-block:: python
maud_grouping_scheme: [1] * 3 + [2] * 8 + [3] * 20 + [4] * 42 + [5] * 52 + [6] * 35
.. _maud_template_filename_gem_isis-powder-diffraction-ref:
maud_template_filename
^^^^^^^^^^^^^^^^^^^^^^
The name of the template to use when generating a MAUD calibration file.
This has quite a specific format due to the behaviour of
:ref:`SaveGEMMAUDParamFile <algm-SaveGEMMAUDParamFile>`, so you should consult
the development team before changing this to make sure all the boxes are filled.
On GEM this is set to the following (this file is distributed with Mantid):
.. code-block:: python
maud_template_filename: "maud_param_template.maud"
.. _raw_tof_cropping_values_gem_isis-powder-diffraction-ref:
raw_tof_cropping_values
......
COMM GEM84145
INS BANK 6
INS HTYPE PNTR
INS 1 ICONS 746.96 -0.24 -9.78
INS 1BNKPAR 2.3696 9.39 0.00 .00000 .3000 1 1
INS 1I ITYP 0 1.000 25.000
INS 1PRCF 1 12 0.00100
INS 1PRCF 1 0.000000E+00 0.163590E+00 0.265000E-01 0.210800E-01
INS 1PRCF 2 0.000000E+00 0.900816E+02 0.000000E+00 0.000000E+00
INS 1PRCF 3 0.000000E+00 0.000000E+00 0.000000E+00 0.000000E+00
INS 2 ICONS 1468.19 4.82 8.95 AZ
INS 2BNKPAR 1.7714 17.98 0.00 .00000 .3000 1 1
INS 2I ITYP 0 1.000 21.000 2
INS 2PRCF 1 12 0.00100
INS 2PRCF 1 0.000000E+00 0.163590E+00 0.265000E-01 0.210800E-01
INS 2PRCF 2 0.000000E+00 0.151242E+03 0.103200E+02 0.000000E+00
INS 2PRCF 3 0.000000E+00 0.000000E+00 0.000000E+00 0.000000E+00
INS 3 ICONS 2788.34 10.26 16.12 AZ
INS 3BNKPAR 1.4450 34.96 0.00 .00000 .3000 1 1
INS 3I ITYP 0 1.000 20.000 2
INS 3PRCF 1 12 0.00100
INS 3PRCF 1 0.000000E+00 0.163590E+00 0.265000E-01 0.210800E-01
INS 3PRCF 2 0.000000E+00 0.278117E+03 0.136300E+02 0.000000E+00
INS 3PRCF 3 0.000000E+00 0.000000E+00 0.000000E+00 0.971175E+01
INS 4 ICONS 4831.68 4.53 -0.20 AZ
INS 4BNKPAR 1.2212 63.62 0.00 .00000 .3000 1 1
INS 4I ITYP 0 1.000 20.000 2
INS 4PRCF 1 12 0.00100
INS 4PRCF 1 0.000000E+00 0.163590E+00 0.265000E-01 0.210800E-01
INS 4PRCF 2 0.000000E+00 0.378750E+03 0.936647E+01 0.000000E+00
INS 4PRCF 3 0.000000E+00 0.000000E+00 0.000000E+00 0.335290E+01
INS 5 ICONS 6651.56 3.12 2.43 AZ
INS 5BNKPAR 1.3793 91.37 0.00 .00000 .3000 1 1
INS 5I ITYP 0 1.000 18.000 2
INS 5PRCF 1 12 0.00100
INS 5PRCF 1 0.000000E+00 0.163590E+00 0.265000E-01 0.210800E-01
INS 5PRCF 2 0.000000E+00 0.230028E+03 0.175737E+01 0.000000E+00
INS 5PRCF 3 0.000000E+00 0.000000E+00 0.000000E+00 0.000000E+00
INS 6 ICONS 9074.19 -1.44 1.35
INS 6BNKPAR 1.3554 154.46 0.00 .00000 .3000 1 1
INS 6I ITYP 0 1.000 16.000 2
INS 6PRCF 1 12 0.00100
INS 6PRCF 1 0.000000E+00 0.163590E+00 0.222225E-01 0.828203E-02
INS 6PRCF 2 0.000000E+00 0.649465E+02 -0.160800E+02 0.000000E+00
INS 6PRCF 3 0.000000E+00 0.000000E+00 0.000000E+00 0.160800E+02
......@@ -90,6 +90,9 @@ texture_vanadium_cropping_values = [(75, 34933), (65, 22887), (65, 22230), (73,
(100, 19993), (100, 20034), (100, 20026), (100, 20033)]
all_adv_variables = {
"gsas_calib_filename": "GEM_PF1_PROFILE.IPF",
"maud_grouping_scheme": [1] * 3 + [2] * 8 + [3] * 20 + [4] * 42 + [5] * 52 + [6] * 35,
"maud_template_filename": "maud_param_template.maud",
"raw_tof_cropping_values": gem_adv_config_params
}
......
......@@ -15,7 +15,10 @@ attr_mapping = \
ParamMapEntry(ext_name="first_cycle_run_no", int_name="run_in_range"),
ParamMapEntry(ext_name="focused_cropping_values", int_name="focused_cropping_values"),
ParamMapEntry(ext_name="grouping_file_name", int_name="grouping_file_name"),
ParamMapEntry(ext_name="gsas_calib_filename", int_name="gsas_calib_filename"),
ParamMapEntry(ext_name="input_mode", int_name="input_batching", enum_class=INPUT_BATCHING),
ParamMapEntry(ext_name="maud_grouping_scheme", int_name="maud_grouping_scheme"),
ParamMapEntry(ext_name="maud_template_filename", int_name="maud_template_filename"),
ParamMapEntry(ext_name="mode", int_name="mode", enum_class=GEM_CHOPPER_MODES),
ParamMapEntry(ext_name="multiple_scattering", int_name="multiple_scattering"),
ParamMapEntry(ext_name="raw_tof_cropping_values", int_name="raw_tof_cropping_values"),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment