\(\renewcommand\AA{\unicode{x212B}}\)

CalculateEfficiency v1

../_images/CalculateEfficiency-v1_dlg.png

CalculateEfficiency dialog.

Summary

Calculates the detector efficiency for a SANS instrument.

Properties

Name Direction Type Default Description
InputWorkspace Input MatrixWorkspace Mandatory The workspace containing the flood data
OutputWorkspace Output MatrixWorkspace Mandatory The name of the workspace to be created as the output of the algorithm
MinEfficiency Input number Optional Minimum efficiency for a pixel to be considered (default: no minimum).
MaxEfficiency Input number Optional Maximum efficiency for a pixel to be considered (default: no maximum).
MaskedFullComponent Input string   Component Name to fully mask according to the IDF file.
MaskedEdges Input int list   Number of pixels to mask on the edges: X-low, X-high, Y-low, Y-high
MaskedComponent Input string   Component Name to mask the edges according to the IDF file.

Description

Compute the detector efficiency of SANS data. This algorithm is used by the EQSANS and HFIR SANS reduction.

The relative detector efficiency is computed the following way

\(S(x,y)=\frac{I_{flood}(x,y)}{1/N_{pixels}\sum_{i,j}I_{flood}(i,j)}\)

where \(I_{flood}(x,y)\) is the pixel count of the flood data in pixel (x,y). If a minimum and/or maximum sensitivity is given, the pixels having an efficiency outside the given limits are masked and the efficiency is recomputed without using those pixels.

Usage

Note

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

Example - Compute the detector efficiency from a BioSANS data file:

# Load your data file
workspace = LoadSpice2D('BioSANS_empty_cell.xml')

# Compute the detector efficiency
efficiency = CalculateEfficiency('workspace', MinEfficiency=0.5, MaxEfficiency=1.5, Version=1)

Categories: AlgorithmIndex | SANS | CorrectionFunctions\EfficiencyCorrections

Source

C++ header: CalculateEfficiency.h (last modified: 2020-03-25)

C++ source: CalculateEfficiency.cpp (last modified: 2020-04-07)