SaveCalFile v1

../_images/SaveCalFile-v1_dlg.png

SaveCalFile dialog.

Table of Contents

Summary

Saves a 5-column ASCII .cal file from up to 3 workspaces: a GroupingWorkspace, OffsetsWorkspace and/or MaskWorkspace.

Properties

Name Direction Type Default Description
GroupingWorkspace Input GroupingWorkspace   Optional: An GroupingWorkspace workspace giving the grouping info.
OffsetsWorkspace Input OffsetsWorkspace   Optional: An OffsetsWorkspace workspace giving the detector calibration values.
MaskWorkspace Input MaskWorkspace   Optional: An Workspace workspace giving which detectors are masked.
Filename Input string Mandatory Path to the .cal file that will be created. Allowed extensions: [‘.cal’]
OffsetPrecision Input number 7 Precision of offsets (between 7 and 11 decimal).

Description

This algorithm saves an ARIEL-style 5-column ASCII .cal file. Here is an excerpt:

# Calibration file for instrument POWGEN written on 2014-02-14T18:46:31.610072000.
# Format: number    UDET         offset    select    group
        0             -1      0.0000000       1       0
        1         110000      0.0001250       1       1
        2         110001      0.0003750       1       1
        3         110002     -0.0020000       1       1
        4         110003      0.0000000       0       1
        5         110004      0.0000000       0       1

The format is

  • number: ignored.
  • UDET: detector ID.
  • offset: calibration offset used in AlignDetectors v1. Comes from the OffsetsWorkspace, or 0.0 if none is given.
  • select: 1 if selected (use the pixel). Comes from the MaskWorkspace, or 1 if none is given.
  • group: what group to focus to in DiffractionFocussing v2. Comes from the GroupingWorkspace, or 1 if none is given.

LoadCalFile v1

Categories: Algorithms | DataHandling\Text | Diffraction\DataHandling\CalFiles

Source

C++ source: SaveCalFile.cpp (last modified: 2017-09-28)

C++ header: SaveCalFile.h (last modified: 2016-06-17)