ConvertDiffCal v1

../_images/ConvertDiffCal-v1_dlg.png

ConvertDiffCal dialog.

Summary

Convert diffraction calibration from old to new style

Properties

Name Direction Type Default Description
OffsetsWorkspace Input OffsetsWorkspace Mandatory OffsetsWorkspace containing the calibration offsets.
OutputWorkspace Output TableWorkspace Mandatory An output workspace.

Description

This algorithm converts diffraction OffsetsWorkspaces to calibration table. It uses the geometry of the OffsetsWorkspace to based the values of DIFC on. The effective DIFC is calculated as

DIFC = \frac{1}{1+offset}\frac{2m_N}{h} L_{tot} sin \theta

Usage

Note

To run these usage examples please first download the usage data, and add these to your path. In MantidPlot this is done using Manage User Directories.

Example - ConvertDiffCal

The file needed for this example are not present in our standard usage data download due to its size. It be downloaded from pg3_mantid_det.cal.

LoadCalFile(InstrumentName="PG3",
            CalFilename="pg3_mantid_det.cal",
            MakeGroupingWorkspace=False,
            MakeOffsetsWorkspace=True,
            MakeMaskWorkspace=False,
            WorkspaceName="PG3")
PG3_cal=ConvertDiffCal(OffsetsWorkspace="PG3_offsets",
                       OutputWorkspace="PG3_cal")

Categories: AlgorithmIndex | Diffraction\Utility

Source

C++ source: ConvertDiffCal.cpp (last modified: 2019-06-04)

C++ header: ConvertDiffCal.h (last modified: 2018-10-05)